VPCLattice / Client / update_resource_configuration

update_resource_configuration#

VPCLattice.Client.update_resource_configuration(**kwargs)#

Updates the specified resource configuration.

See also: AWS API Documentation

Request Syntax

response = client.update_resource_configuration(
    allowAssociationToShareableServiceNetwork=True|False,
    portRanges=[
        'string',
    ],
    resourceConfigurationDefinition={
        'arnResource': {
            'arn': 'string'
        },
        'dnsResource': {
            'domainName': 'string',
            'ipAddressType': 'IPV4'|'IPV6'|'DUALSTACK'
        },
        'ipResource': {
            'ipAddress': 'string'
        }
    },
    resourceConfigurationIdentifier='string'
)
Parameters:
  • allowAssociationToShareableServiceNetwork (boolean) – Indicates whether to add the resource configuration to service networks that are shared with other accounts.

  • portRanges (list) –

    The TCP port ranges that a consumer can use to access a resource configuration. You can separate port ranges with a comma. Example: 1-65535 or 1,2,22-30

    • (string) –

  • resourceConfigurationDefinition (dict) –

    The resource configuration.

    Note

    This is a Tagged Union structure. Only one of the following top level keys can be set: arnResource, dnsResource, ipResource.

    • arnResource (dict) –

      The Amazon Resource Name (ARN) of the resource.

      • arn (string) –

        The Amazon Resource Name (ARN) of the resource.

    • dnsResource (dict) –

      The DNS name of the resource.

      • domainName (string) –

        The domain name of the resource.

      • ipAddressType (string) –

        The type of IP address.

    • ipResource (dict) –

      The IP resource.

      • ipAddress (string) –

        The IP address of the IP resource.

  • resourceConfigurationIdentifier (string) –

    [REQUIRED]

    The ID of the resource configuration.

Return type:

dict

Returns:

Response Syntax

{
    'allowAssociationToShareableServiceNetwork': True|False,
    'arn': 'string',
    'id': 'string',
    'name': 'string',
    'portRanges': [
        'string',
    ],
    'protocol': 'TCP',
    'resourceConfigurationDefinition': {
        'arnResource': {
            'arn': 'string'
        },
        'dnsResource': {
            'domainName': 'string',
            'ipAddressType': 'IPV4'|'IPV6'|'DUALSTACK'
        },
        'ipResource': {
            'ipAddress': 'string'
        }
    },
    'resourceConfigurationGroupId': 'string',
    'resourceGatewayId': 'string',
    'status': 'ACTIVE'|'CREATE_IN_PROGRESS'|'UPDATE_IN_PROGRESS'|'DELETE_IN_PROGRESS'|'CREATE_FAILED'|'UPDATE_FAILED'|'DELETE_FAILED',
    'type': 'GROUP'|'CHILD'|'SINGLE'|'ARN'
}

Response Structure

  • (dict) –

    • allowAssociationToShareableServiceNetwork (boolean) –

      Indicates whether to add the resource configuration to service networks that are shared with other accounts.

    • arn (string) –

      The Amazon Resource Name (ARN) of the resource configuration.

    • id (string) –

      The ID of the resource configuration.

    • name (string) –

      The name of the resource configuration.

    • portRanges (list) –

      The TCP port ranges that a consumer can use to access a resource configuration. You can separate port ranges with a comma. Example: 1-65535 or 1,2,22-30

      • (string) –

    • protocol (string) –

      The TCP protocol accepted by the specified resource configuration.

    • resourceConfigurationDefinition (dict) –

      The resource configuration.

      Note

      This is a Tagged Union structure. Only one of the following top level keys will be set: arnResource, dnsResource, ipResource. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

      'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
      
      • arnResource (dict) –

        The Amazon Resource Name (ARN) of the resource.

        • arn (string) –

          The Amazon Resource Name (ARN) of the resource.

      • dnsResource (dict) –

        The DNS name of the resource.

        • domainName (string) –

          The domain name of the resource.

        • ipAddressType (string) –

          The type of IP address.

      • ipResource (dict) –

        The IP resource.

        • ipAddress (string) –

          The IP address of the IP resource.

    • resourceConfigurationGroupId (string) –

      The ID of the group resource configuration.

    • resourceGatewayId (string) –

      The ID of the resource gateway associated with the resource configuration.

    • status (string) –

      The status of the resource configuration.

    • type (string) –

      The type of resource configuration.

      • SINGLE - A single resource.

      • GROUP - A group of resources.

      • CHILD - A single resource that is part of a group resource configuration.

      • ARN - An Amazon Web Services resource.

Exceptions