odb / Client / associate_iam_role_to_resource

associate_iam_role_to_resource

odb.Client.associate_iam_role_to_resource(**kwargs)

Associates an Amazon Web Services Identity and Access Management (IAM) service role with a specified resource to enable Amazon Web Services service integration.

See also: AWS API Documentation

Request Syntax

response = client.associate_iam_role_to_resource(
    iamRoleArn='string',
    awsIntegration='KmsTde',
    resourceArn='string'
)
Parameters:
  • iamRoleArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the IAM service role to associate with the resource.

  • awsIntegration (string) –

    [REQUIRED]

    The Amazon Web Services integration configuration settings for the IAM service role association.

  • resourceArn (string) –

    [REQUIRED]

    The Amazon Resource Name (ARN) of the target resource to associate with the IAM service role.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions

  • odb.Client.exceptions.ThrottlingException

  • odb.Client.exceptions.ValidationException

  • odb.Client.exceptions.ConflictException

  • odb.Client.exceptions.AccessDeniedException

  • odb.Client.exceptions.InternalServerException

  • odb.Client.exceptions.ResourceNotFoundException