Skip to main content

connector_profiles

Creates, updates, deletes or gets a connector_profile resource or lists connector_profiles in a region

Overview

Nameconnector_profiles
TypeResource
DescriptionResource Type definition for AWS::AppFlow::ConnectorProfile
Idawscc.appflow.connector_profiles

Fields

NameDatatypeDescription
connector_profile_arnstringUnique identifier for connector profile resources
connector_labelstringThe label of the connector. The label is unique for each ConnectorRegistration in your AWS account. Only needed if calling for CUSTOMCONNECTOR connector type/.
connector_profile_namestringThe maximum number of items to retrieve in a single batch.
kms_arnstringThe ARN of the AWS Key Management Service (AWS KMS) key that's used to encrypt your function's environment variables. If it's not provided, AWS Lambda uses a default service key.
connector_typestringList of Saas providers that need connector profile to be created
connection_modestringMode in which data transfer should be enabled. Private connection mode is currently enabled for Salesforce, Snowflake, Trendmicro and Singular
connector_profile_configobjectConnector specific configurations needed to create connector profile
credentials_arnstringA unique Arn for Connector-Profile resource
regionstringAWS region.

For more information, see AWS::AppFlow::ConnectorProfile.

Methods

NameResourceAccessible byRequired Params
create_resourceconnector_profilesINSERTConnectorProfileName, ConnectionMode, ConnectorType, region
delete_resourceconnector_profilesDELETEIdentifier, region
update_resourceconnector_profilesUPDATEIdentifier, PatchDocument, region
list_resourcesconnector_profiles_list_onlySELECTregion
get_resourceconnector_profilesSELECTIdentifier, region

SELECT examples

Gets all properties from an individual connector_profile.

SELECT
region,
connector_profile_arn,
connector_label,
connector_profile_name,
kms_arn,
connector_type,
connection_mode,
connector_profile_config,
credentials_arn
FROM awscc.appflow.connector_profiles
WHERE
region = '{{ region }}' AND
Identifier = '{{ connector_profile_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new connector_profile resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.appflow.connector_profiles (
ConnectorProfileName,
ConnectorType,
ConnectionMode,
region
)
SELECT
'{{ connector_profile_name }}',
'{{ connector_type }}',
'{{ connection_mode }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

Use the following StackQL query and manifest file to update a connector_profile resource, using stack-deploy.

/*+ update */
UPDATE awscc.appflow.connector_profiles
SET PatchDocument = string('{{ {
"KMSArn": kms_arn,
"ConnectionMode": connection_mode,
"ConnectorProfileConfig": connector_profile_config
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ connector_profile_name }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.appflow.connector_profiles
WHERE
Identifier = '{{ connector_profile_name }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the connector_profiles resource, the following permissions are required:

appflow:CreateConnectorProfile,
kms:ListKeys,
kms:DescribeKey,
kms:ListAliases,
kms:CreateGrant,
kms:ListGrants,
iam:PassRole,
secretsmanager:CreateSecret,
secretsmanager:GetSecretValue,
secretsmanager:PutResourcePolicy