AmplifyGen3 / Client / create_integration_configuration
create_integration_configuration¶
- AmplifyGen3.Client.create_integration_configuration(**kwargs)¶
Creates an integration configuration that makes an external resource available to app environments. Amplify Gen 3 handles IAM permissions and credential management automatically, so there are no role assumptions in your application code.
See also: AWS API Documentation
Request Syntax
response = client.create_integration_configuration( IntegrationName='string', IntegrationTypeId='string', ResourceConfiguration={ 'S3': { 'BucketArn': 'string' }, 'Dsql': { 'ClusterArn': 'string', 'DatabaseUser': 'string' }, 'Bedrock': { 'RegionName': 'string', 'ModelId': 'string' }, 'Custom': { 'ResourceArn': 'string' } }, Tags={ 'string': 'string' }, EnvironmentVariables=[ { 'Key': 'string', 'KeyOverride': 'string', 'Value': 'string', 'Type': 'PLAINTEXT'|'SENSITIVE' }, ] )
- Parameters:
IntegrationName (string) –
[REQUIRED]
The name of the integration.
IntegrationTypeId (string) –
[REQUIRED]
The ID of the integration type.
ResourceConfiguration (dict) –
The resource configuration for the integration.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set:
S3,Dsql,Bedrock,Custom.S3 (dict) –
The Amazon S3 integration resource configuration.
BucketArn (string) – [REQUIRED]
The Amazon Resource Name (ARN) of the Amazon S3 bucket.
Dsql (dict) –
The Amazon Aurora DSQL integration resource configuration.
ClusterArn (string) – [REQUIRED]
The Amazon Resource Name (ARN) of the Amazon Aurora DSQL cluster.
DatabaseUser (string) – [REQUIRED]
The database user to connect as.
Bedrock (dict) –
The Amazon Bedrock integration resource configuration.
RegionName (string) – [REQUIRED]
The AWS Region of the resource.
ModelId (string) –
The ID of the Amazon Bedrock model.
Custom (dict) –
The custom integration resource configuration.
ResourceArn (string) –
The Amazon Resource Name (ARN) of the resource.
Tags (dict) –
The tags to apply to the resource.
(string) –
(string) –
EnvironmentVariables (list) –
The environment variables.
(dict) –
An environment variable to set for an integration.
Key (string) – [REQUIRED]
The key of the environment variable.
KeyOverride (string) –
An alternate key to expose the environment variable under in your environment.
Value (string) –
The value of the environment variable.
Type (string) –
The type of the environment variable.
- Return type:
dict
- Returns:
Response Syntax
{ 'IntegrationArn': 'string' }
Response Structure
(dict) –
IntegrationArn (string) –
The Amazon Resource Name (ARN) of the integration configuration.
Exceptions
AmplifyGen3.Client.exceptions.ServiceQuotaExceededExceptionAmplifyGen3.Client.exceptions.ThrottlingExceptionAmplifyGen3.Client.exceptions.AccessDeniedExceptionAmplifyGen3.Client.exceptions.ValidationExceptionAmplifyGen3.Client.exceptions.ConflictExceptionAmplifyGen3.Client.exceptions.InternalServerException