Amazon Elastic Compute Cloud

2024/06/12 - Amazon Elastic Compute Cloud - 1 new13 updated api methods

Changes  Tagging support for Traffic Mirroring FilterRule resource

DescribeTrafficMirrorFilterRules (new) Link ¶

Describe traffic mirror filters that determine the traffic that is mirrored.

See also: AWS API Documentation

Request Syntax

client.describe_traffic_mirror_filter_rules(
    TrafficMirrorFilterRuleIds=[
        'string',
    ],
    TrafficMirrorFilterId='string',
    DryRun=True|False,
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxResults=123,
    NextToken='string'
)
type TrafficMirrorFilterRuleIds:

list

param TrafficMirrorFilterRuleIds:

Traffic filter rule IDs.

  • (string) --

type TrafficMirrorFilterId:

string

param TrafficMirrorFilterId:

Traffic filter ID.

type DryRun:

boolean

param DryRun:

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

type Filters:

list

param Filters:

Traffic mirror filters.

  • traffic-mirror-filter-rule-id: The ID of the Traffic Mirror rule.

  • traffic-mirror-filter-id: The ID of the filter that this rule is associated with.

  • rule-number: The number of the Traffic Mirror rule.

  • rule-action: The action taken on the filtered traffic. Possible actions are accept and reject.

  • traffic-direction: The traffic direction. Possible directions are ingress and egress.

  • protocol: The protocol, for example UDP, assigned to the Traffic Mirror rule.

  • source-cidr-block: The source CIDR block assigned to the Traffic Mirror rule.

  • destination-cidr-block: The destination CIDR block assigned to the Traffic Mirror rule.

  • description: The description of the Traffic Mirror rule.

  • (dict) --

    A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    If you specify multiple filters, the filters are joined with an AND, and the request returns only results that match all of the specified filters.

    • Name (string) --

      The name of the filter. Filter names are case-sensitive.

    • Values (list) --

      The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

      • (string) --

type MaxResults:

integer

param MaxResults:

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

type NextToken:

string

param NextToken:

The token for the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'TrafficMirrorFilterRules': [
        {
            'TrafficMirrorFilterRuleId': 'string',
            'TrafficMirrorFilterId': 'string',
            'TrafficDirection': 'ingress'|'egress',
            'RuleNumber': 123,
            'RuleAction': 'accept'|'reject',
            'Protocol': 123,
            'DestinationPortRange': {
                'FromPort': 123,
                'ToPort': 123
            },
            'SourcePortRange': {
                'FromPort': 123,
                'ToPort': 123
            },
            'DestinationCidrBlock': 'string',
            'SourceCidrBlock': 'string',
            'Description': 'string',
            'Tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • TrafficMirrorFilterRules (list) --

      Traffic mirror rules.

      • (dict) --

        Describes the Traffic Mirror rule.

        • TrafficMirrorFilterRuleId (string) --

          The ID of the Traffic Mirror rule.

        • TrafficMirrorFilterId (string) --

          The ID of the Traffic Mirror filter that the rule is associated with.

        • TrafficDirection (string) --

          The traffic direction assigned to the Traffic Mirror rule.

        • RuleNumber (integer) --

          The rule number of the Traffic Mirror rule.

        • RuleAction (string) --

          The action assigned to the Traffic Mirror rule.

        • Protocol (integer) --

          The protocol assigned to the Traffic Mirror rule.

        • DestinationPortRange (dict) --

          The destination port range assigned to the Traffic Mirror rule.

          • FromPort (integer) --

            The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

          • ToPort (integer) --

            The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

        • SourcePortRange (dict) --

          The source port range assigned to the Traffic Mirror rule.

          • FromPort (integer) --

            The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

          • ToPort (integer) --

            The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

        • DestinationCidrBlock (string) --

          The destination CIDR block assigned to the Traffic Mirror rule.

        • SourceCidrBlock (string) --

          The source CIDR block assigned to the Traffic Mirror rule.

        • Description (string) --

          The description of the Traffic Mirror rule.

        • Tags (list) --

          Tags on Traffic Mirroring filter rules.

          • (dict) --

            Describes a tag.

            • Key (string) --

              The key of the tag.

              Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

            • Value (string) --

              The value of the tag.

              Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

    • NextToken (string) --

      The token to use to retrieve the next page of results. The value is null when there are no more results to return.

CreateLaunchTemplate (updated) Link ¶
Changes (request)
{'LaunchTemplateData': {'TagSpecifications': {'ResourceType': {'vpc-encryption-control'}}}}
CreateLaunchTemplateVersion (updated) Link ¶
Changes (request, response)
Request
{'LaunchTemplateData': {'TagSpecifications': {'ResourceType': {'vpc-encryption-control'}}}}
Response
{'LaunchTemplateVersion': {'LaunchTemplateData': {'TagSpecifications': {'ResourceType': {'vpc-encryption-control'}}}}}
CreateTrafficMirrorFilter (updated) Link ¶
Changes (response)
{'TrafficMirrorFilter': {'EgressFilterRules': {'Tags': [{'Key': 'string',
                                                         'Value': 'string'}]},
                         'IngressFilterRules': {'Tags': [{'Key': 'string',
                                                          'Value': 'string'}]}}}

Creates a Traffic Mirror filter.

A Traffic Mirror filter is a set of rules that defines the traffic to mirror.

By default, no traffic is mirrored. To mirror traffic, use CreateTrafficMirrorFilterRule to add Traffic Mirror rules to the filter. The rules you add define what traffic gets mirrored. You can also use ModifyTrafficMirrorFilterNetworkServices to mirror supported network services.

See also: AWS API Documentation

Request Syntax

client.create_traffic_mirror_filter(
    Description='string',
    TagSpecifications=[
        {
            'ResourceType': 'capacity-reservation'|'client-vpn-endpoint'|'customer-gateway'|'carrier-gateway'|'coip-pool'|'dedicated-host'|'dhcp-options'|'egress-only-internet-gateway'|'elastic-ip'|'elastic-gpu'|'export-image-task'|'export-instance-task'|'fleet'|'fpga-image'|'host-reservation'|'image'|'import-image-task'|'import-snapshot-task'|'instance'|'instance-event-window'|'internet-gateway'|'ipam'|'ipam-pool'|'ipam-scope'|'ipv4pool-ec2'|'ipv6pool-ec2'|'key-pair'|'launch-template'|'local-gateway'|'local-gateway-route-table'|'local-gateway-virtual-interface'|'local-gateway-virtual-interface-group'|'local-gateway-route-table-vpc-association'|'local-gateway-route-table-virtual-interface-group-association'|'natgateway'|'network-acl'|'network-interface'|'network-insights-analysis'|'network-insights-path'|'network-insights-access-scope'|'network-insights-access-scope-analysis'|'placement-group'|'prefix-list'|'replace-root-volume-task'|'reserved-instances'|'route-table'|'security-group'|'security-group-rule'|'snapshot'|'spot-fleet-request'|'spot-instances-request'|'subnet'|'subnet-cidr-reservation'|'traffic-mirror-filter'|'traffic-mirror-session'|'traffic-mirror-target'|'transit-gateway'|'transit-gateway-attachment'|'transit-gateway-connect-peer'|'transit-gateway-multicast-domain'|'transit-gateway-policy-table'|'transit-gateway-route-table'|'transit-gateway-route-table-announcement'|'volume'|'vpc'|'vpc-endpoint'|'vpc-endpoint-connection'|'vpc-endpoint-service'|'vpc-endpoint-service-permission'|'vpc-peering-connection'|'vpn-connection'|'vpn-gateway'|'vpc-flow-log'|'capacity-reservation-fleet'|'traffic-mirror-filter-rule'|'vpc-endpoint-connection-device-type'|'verified-access-instance'|'verified-access-group'|'verified-access-endpoint'|'verified-access-policy'|'verified-access-trust-provider'|'vpn-connection-device-type'|'vpc-block-public-access-exclusion'|'vpc-encryption-control'|'ipam-resource-discovery'|'ipam-resource-discovery-association'|'instance-connect-endpoint',
            'Tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ]
        },
    ],
    DryRun=True|False,
    ClientToken='string'
)
type Description:

string

param Description:

The description of the Traffic Mirror filter.

type TagSpecifications:

list

param TagSpecifications:

The tags to assign to a Traffic Mirror filter.

  • (dict) --

    The tags to apply to a resource when the resource is being created. When you specify a tag, you must specify the resource type to tag, otherwise the request will fail.

    • ResourceType (string) --

      The type of resource to tag on creation.

    • Tags (list) --

      The tags to apply to the resource.

      • (dict) --

        Describes a tag.

        • Key (string) --

          The key of the tag.

          Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

        • Value (string) --

          The value of the tag.

          Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

type DryRun:

boolean

param DryRun:

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

type ClientToken:

string

param ClientToken:

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'TrafficMirrorFilter': {
        'TrafficMirrorFilterId': 'string',
        'IngressFilterRules': [
            {
                'TrafficMirrorFilterRuleId': 'string',
                'TrafficMirrorFilterId': 'string',
                'TrafficDirection': 'ingress'|'egress',
                'RuleNumber': 123,
                'RuleAction': 'accept'|'reject',
                'Protocol': 123,
                'DestinationPortRange': {
                    'FromPort': 123,
                    'ToPort': 123
                },
                'SourcePortRange': {
                    'FromPort': 123,
                    'ToPort': 123
                },
                'DestinationCidrBlock': 'string',
                'SourceCidrBlock': 'string',
                'Description': 'string',
                'Tags': [
                    {
                        'Key': 'string',
                        'Value': 'string'
                    },
                ]
            },
        ],
        'EgressFilterRules': [
            {
                'TrafficMirrorFilterRuleId': 'string',
                'TrafficMirrorFilterId': 'string',
                'TrafficDirection': 'ingress'|'egress',
                'RuleNumber': 123,
                'RuleAction': 'accept'|'reject',
                'Protocol': 123,
                'DestinationPortRange': {
                    'FromPort': 123,
                    'ToPort': 123
                },
                'SourcePortRange': {
                    'FromPort': 123,
                    'ToPort': 123
                },
                'DestinationCidrBlock': 'string',
                'SourceCidrBlock': 'string',
                'Description': 'string',
                'Tags': [
                    {
                        'Key': 'string',
                        'Value': 'string'
                    },
                ]
            },
        ],
        'NetworkServices': [
            'amazon-dns',
        ],
        'Description': 'string',
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    },
    'ClientToken': 'string'
}

Response Structure

  • (dict) --

    • TrafficMirrorFilter (dict) --

      Information about the Traffic Mirror filter.

      • TrafficMirrorFilterId (string) --

        The ID of the Traffic Mirror filter.

      • IngressFilterRules (list) --

        Information about the ingress rules that are associated with the Traffic Mirror filter.

        • (dict) --

          Describes the Traffic Mirror rule.

          • TrafficMirrorFilterRuleId (string) --

            The ID of the Traffic Mirror rule.

          • TrafficMirrorFilterId (string) --

            The ID of the Traffic Mirror filter that the rule is associated with.

          • TrafficDirection (string) --

            The traffic direction assigned to the Traffic Mirror rule.

          • RuleNumber (integer) --

            The rule number of the Traffic Mirror rule.

          • RuleAction (string) --

            The action assigned to the Traffic Mirror rule.

          • Protocol (integer) --

            The protocol assigned to the Traffic Mirror rule.

          • DestinationPortRange (dict) --

            The destination port range assigned to the Traffic Mirror rule.

            • FromPort (integer) --

              The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • ToPort (integer) --

              The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

          • SourcePortRange (dict) --

            The source port range assigned to the Traffic Mirror rule.

            • FromPort (integer) --

              The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • ToPort (integer) --

              The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

          • DestinationCidrBlock (string) --

            The destination CIDR block assigned to the Traffic Mirror rule.

          • SourceCidrBlock (string) --

            The source CIDR block assigned to the Traffic Mirror rule.

          • Description (string) --

            The description of the Traffic Mirror rule.

          • Tags (list) --

            Tags on Traffic Mirroring filter rules.

            • (dict) --

              Describes a tag.

              • Key (string) --

                The key of the tag.

                Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

              • Value (string) --

                The value of the tag.

                Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

      • EgressFilterRules (list) --

        Information about the egress rules that are associated with the Traffic Mirror filter.

        • (dict) --

          Describes the Traffic Mirror rule.

          • TrafficMirrorFilterRuleId (string) --

            The ID of the Traffic Mirror rule.

          • TrafficMirrorFilterId (string) --

            The ID of the Traffic Mirror filter that the rule is associated with.

          • TrafficDirection (string) --

            The traffic direction assigned to the Traffic Mirror rule.

          • RuleNumber (integer) --

            The rule number of the Traffic Mirror rule.

          • RuleAction (string) --

            The action assigned to the Traffic Mirror rule.

          • Protocol (integer) --

            The protocol assigned to the Traffic Mirror rule.

          • DestinationPortRange (dict) --

            The destination port range assigned to the Traffic Mirror rule.

            • FromPort (integer) --

              The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • ToPort (integer) --

              The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

          • SourcePortRange (dict) --

            The source port range assigned to the Traffic Mirror rule.

            • FromPort (integer) --

              The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • ToPort (integer) --

              The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

          • DestinationCidrBlock (string) --

            The destination CIDR block assigned to the Traffic Mirror rule.

          • SourceCidrBlock (string) --

            The source CIDR block assigned to the Traffic Mirror rule.

          • Description (string) --

            The description of the Traffic Mirror rule.

          • Tags (list) --

            Tags on Traffic Mirroring filter rules.

            • (dict) --

              Describes a tag.

              • Key (string) --

                The key of the tag.

                Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

              • Value (string) --

                The value of the tag.

                Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

      • NetworkServices (list) --

        The network service traffic that is associated with the Traffic Mirror filter.

        • (string) --

      • Description (string) --

        The description of the Traffic Mirror filter.

      • Tags (list) --

        The tags assigned to the Traffic Mirror filter.

        • (dict) --

          Describes a tag.

          • Key (string) --

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

          • Value (string) --

            The value of the tag.

            Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

    • ClientToken (string) --

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

CreateTrafficMirrorFilterRule (updated) Link ¶
Changes (response)
{'TrafficMirrorFilterRule': {'Tags': [{'Key': 'string', 'Value': 'string'}]}}

Creates a Traffic Mirror filter rule.

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

See also: AWS API Documentation

Request Syntax

client.create_traffic_mirror_filter_rule(
    TrafficMirrorFilterId='string',
    TrafficDirection='ingress'|'egress',
    RuleNumber=123,
    RuleAction='accept'|'reject',
    DestinationPortRange={
        'FromPort': 123,
        'ToPort': 123
    },
    SourcePortRange={
        'FromPort': 123,
        'ToPort': 123
    },
    Protocol=123,
    DestinationCidrBlock='string',
    SourceCidrBlock='string',
    Description='string',
    DryRun=True|False,
    ClientToken='string',
    TagSpecifications=[
        {
            'ResourceType': 'capacity-reservation'|'client-vpn-endpoint'|'customer-gateway'|'carrier-gateway'|'coip-pool'|'dedicated-host'|'dhcp-options'|'egress-only-internet-gateway'|'elastic-ip'|'elastic-gpu'|'export-image-task'|'export-instance-task'|'fleet'|'fpga-image'|'host-reservation'|'image'|'import-image-task'|'import-snapshot-task'|'instance'|'instance-event-window'|'internet-gateway'|'ipam'|'ipam-pool'|'ipam-scope'|'ipv4pool-ec2'|'ipv6pool-ec2'|'key-pair'|'launch-template'|'local-gateway'|'local-gateway-route-table'|'local-gateway-virtual-interface'|'local-gateway-virtual-interface-group'|'local-gateway-route-table-vpc-association'|'local-gateway-route-table-virtual-interface-group-association'|'natgateway'|'network-acl'|'network-interface'|'network-insights-analysis'|'network-insights-path'|'network-insights-access-scope'|'network-insights-access-scope-analysis'|'placement-group'|'prefix-list'|'replace-root-volume-task'|'reserved-instances'|'route-table'|'security-group'|'security-group-rule'|'snapshot'|'spot-fleet-request'|'spot-instances-request'|'subnet'|'subnet-cidr-reservation'|'traffic-mirror-filter'|'traffic-mirror-session'|'traffic-mirror-target'|'transit-gateway'|'transit-gateway-attachment'|'transit-gateway-connect-peer'|'transit-gateway-multicast-domain'|'transit-gateway-policy-table'|'transit-gateway-route-table'|'transit-gateway-route-table-announcement'|'volume'|'vpc'|'vpc-endpoint'|'vpc-endpoint-connection'|'vpc-endpoint-service'|'vpc-endpoint-service-permission'|'vpc-peering-connection'|'vpn-connection'|'vpn-gateway'|'vpc-flow-log'|'capacity-reservation-fleet'|'traffic-mirror-filter-rule'|'vpc-endpoint-connection-device-type'|'verified-access-instance'|'verified-access-group'|'verified-access-endpoint'|'verified-access-policy'|'verified-access-trust-provider'|'vpn-connection-device-type'|'vpc-block-public-access-exclusion'|'vpc-encryption-control'|'ipam-resource-discovery'|'ipam-resource-discovery-association'|'instance-connect-endpoint',
            'Tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ]
        },
    ]
)
type TrafficMirrorFilterId:

string

param TrafficMirrorFilterId:

[REQUIRED]

The ID of the filter that this rule is associated with.

type TrafficDirection:

string

param TrafficDirection:

[REQUIRED]

The type of traffic.

type RuleNumber:

integer

param RuleNumber:

[REQUIRED]

The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.

type RuleAction:

string

param RuleAction:

[REQUIRED]

The action to take on the filtered traffic.

type DestinationPortRange:

dict

param DestinationPortRange:

The destination port range.

  • FromPort (integer) --

    The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

  • ToPort (integer) --

    The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

type SourcePortRange:

dict

param SourcePortRange:

The source port range.

  • FromPort (integer) --

    The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

  • ToPort (integer) --

    The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

type Protocol:

integer

param Protocol:

The protocol, for example UDP, to assign to the Traffic Mirror rule.

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

type DestinationCidrBlock:

string

param DestinationCidrBlock:

[REQUIRED]

The destination CIDR block to assign to the Traffic Mirror rule.

type SourceCidrBlock:

string

param SourceCidrBlock:

[REQUIRED]

The source CIDR block to assign to the Traffic Mirror rule.

type Description:

string

param Description:

The description of the Traffic Mirror rule.

type DryRun:

boolean

param DryRun:

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

type ClientToken:

string

param ClientToken:

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

This field is autopopulated if not provided.

type TagSpecifications:

list

param TagSpecifications:

Traffic Mirroring tags specifications.

  • (dict) --

    The tags to apply to a resource when the resource is being created. When you specify a tag, you must specify the resource type to tag, otherwise the request will fail.

    • ResourceType (string) --

      The type of resource to tag on creation.

    • Tags (list) --

      The tags to apply to the resource.

      • (dict) --

        Describes a tag.

        • Key (string) --

          The key of the tag.

          Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

        • Value (string) --

          The value of the tag.

          Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

rtype:

dict

returns:

Response Syntax

{
    'TrafficMirrorFilterRule': {
        'TrafficMirrorFilterRuleId': 'string',
        'TrafficMirrorFilterId': 'string',
        'TrafficDirection': 'ingress'|'egress',
        'RuleNumber': 123,
        'RuleAction': 'accept'|'reject',
        'Protocol': 123,
        'DestinationPortRange': {
            'FromPort': 123,
            'ToPort': 123
        },
        'SourcePortRange': {
            'FromPort': 123,
            'ToPort': 123
        },
        'DestinationCidrBlock': 'string',
        'SourceCidrBlock': 'string',
        'Description': 'string',
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    },
    'ClientToken': 'string'
}

Response Structure

  • (dict) --

    • TrafficMirrorFilterRule (dict) --

      The Traffic Mirror rule.

      • TrafficMirrorFilterRuleId (string) --

        The ID of the Traffic Mirror rule.

      • TrafficMirrorFilterId (string) --

        The ID of the Traffic Mirror filter that the rule is associated with.

      • TrafficDirection (string) --

        The traffic direction assigned to the Traffic Mirror rule.

      • RuleNumber (integer) --

        The rule number of the Traffic Mirror rule.

      • RuleAction (string) --

        The action assigned to the Traffic Mirror rule.

      • Protocol (integer) --

        The protocol assigned to the Traffic Mirror rule.

      • DestinationPortRange (dict) --

        The destination port range assigned to the Traffic Mirror rule.

        • FromPort (integer) --

          The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

        • ToPort (integer) --

          The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

      • SourcePortRange (dict) --

        The source port range assigned to the Traffic Mirror rule.

        • FromPort (integer) --

          The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

        • ToPort (integer) --

          The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

      • DestinationCidrBlock (string) --

        The destination CIDR block assigned to the Traffic Mirror rule.

      • SourceCidrBlock (string) --

        The source CIDR block assigned to the Traffic Mirror rule.

      • Description (string) --

        The description of the Traffic Mirror rule.

      • Tags (list) --

        Tags on Traffic Mirroring filter rules.

        • (dict) --

          Describes a tag.

          • Key (string) --

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

          • Value (string) --

            The value of the tag.

            Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

    • ClientToken (string) --

      Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

DescribeLaunchTemplateVersions (updated) Link ¶
Changes (response)
{'LaunchTemplateVersions': {'LaunchTemplateData': {'TagSpecifications': {'ResourceType': {'vpc-encryption-control'}}}}}
DescribeSpotFleetRequests (updated) Link ¶
Changes (response)
{'SpotFleetRequestConfigs': {'SpotFleetRequestConfig': {'LaunchSpecifications': {'TagSpecifications': {'ResourceType': {'vpc-encryption-control'}}},
                                                        'TagSpecifications': {'ResourceType': {'vpc-encryption-control'}}}}}
DescribeTags (updated) Link ¶
Changes (response)
{'Tags': {'ResourceType': {'vpc-encryption-control'}}}

Describes the specified tags for your EC2 resources.

For more information about tags, see Tag your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide.

See also: AWS API Documentation

Request Syntax

client.describe_tags(
    DryRun=True|False,
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxResults=123,
    NextToken='string'
)
type DryRun:

boolean

param DryRun:

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

type Filters:

list

param Filters:

The filters.

  • key - The tag key.

  • resource-id - The ID of the resource.

  • resource-type - The resource type. For a list of possible values, see TagSpecification.

  • tag:<key> - The key/value combination of the tag. For example, specify "tag:Owner" for the filter name and "TeamA" for the filter value to find resources with the tag "Owner=TeamA".

  • value - The tag value.

  • (dict) --

    A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    If you specify multiple filters, the filters are joined with an AND, and the request returns only results that match all of the specified filters.

    • Name (string) --

      The name of the filter. Filter names are case-sensitive.

    • Values (list) --

      The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

      • (string) --

type MaxResults:

integer

param MaxResults:

The maximum number of items to return for this request. This value can be between 5 and 1000. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.

type NextToken:

string

param NextToken:

The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.

rtype:

dict

returns:

Response Syntax

{
    'NextToken': 'string',
    'Tags': [
        {
            'Key': 'string',
            'ResourceId': 'string',
            'ResourceType': 'capacity-reservation'|'client-vpn-endpoint'|'customer-gateway'|'carrier-gateway'|'coip-pool'|'dedicated-host'|'dhcp-options'|'egress-only-internet-gateway'|'elastic-ip'|'elastic-gpu'|'export-image-task'|'export-instance-task'|'fleet'|'fpga-image'|'host-reservation'|'image'|'import-image-task'|'import-snapshot-task'|'instance'|'instance-event-window'|'internet-gateway'|'ipam'|'ipam-pool'|'ipam-scope'|'ipv4pool-ec2'|'ipv6pool-ec2'|'key-pair'|'launch-template'|'local-gateway'|'local-gateway-route-table'|'local-gateway-virtual-interface'|'local-gateway-virtual-interface-group'|'local-gateway-route-table-vpc-association'|'local-gateway-route-table-virtual-interface-group-association'|'natgateway'|'network-acl'|'network-interface'|'network-insights-analysis'|'network-insights-path'|'network-insights-access-scope'|'network-insights-access-scope-analysis'|'placement-group'|'prefix-list'|'replace-root-volume-task'|'reserved-instances'|'route-table'|'security-group'|'security-group-rule'|'snapshot'|'spot-fleet-request'|'spot-instances-request'|'subnet'|'subnet-cidr-reservation'|'traffic-mirror-filter'|'traffic-mirror-session'|'traffic-mirror-target'|'transit-gateway'|'transit-gateway-attachment'|'transit-gateway-connect-peer'|'transit-gateway-multicast-domain'|'transit-gateway-policy-table'|'transit-gateway-route-table'|'transit-gateway-route-table-announcement'|'volume'|'vpc'|'vpc-endpoint'|'vpc-endpoint-connection'|'vpc-endpoint-service'|'vpc-endpoint-service-permission'|'vpc-peering-connection'|'vpn-connection'|'vpn-gateway'|'vpc-flow-log'|'capacity-reservation-fleet'|'traffic-mirror-filter-rule'|'vpc-endpoint-connection-device-type'|'verified-access-instance'|'verified-access-group'|'verified-access-endpoint'|'verified-access-policy'|'verified-access-trust-provider'|'vpn-connection-device-type'|'vpc-block-public-access-exclusion'|'vpc-encryption-control'|'ipam-resource-discovery'|'ipam-resource-discovery-association'|'instance-connect-endpoint',
            'Value': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    • NextToken (string) --

      The token to include in another request to get the next page of items. This value is null when there are no more items to return.

    • Tags (list) --

      The tags.

      • (dict) --

        Describes a tag.

        • Key (string) --

          The tag key.

        • ResourceId (string) --

          The ID of the resource.

        • ResourceType (string) --

          The resource type.

        • Value (string) --

          The tag value.

DescribeTrafficMirrorFilters (updated) Link ¶
Changes (response)
{'TrafficMirrorFilters': {'EgressFilterRules': {'Tags': [{'Key': 'string',
                                                          'Value': 'string'}]},
                          'IngressFilterRules': {'Tags': [{'Key': 'string',
                                                           'Value': 'string'}]}}}

Describes one or more Traffic Mirror filters.

See also: AWS API Documentation

Request Syntax

client.describe_traffic_mirror_filters(
    TrafficMirrorFilterIds=[
        'string',
    ],
    DryRun=True|False,
    Filters=[
        {
            'Name': 'string',
            'Values': [
                'string',
            ]
        },
    ],
    MaxResults=123,
    NextToken='string'
)
type TrafficMirrorFilterIds:

list

param TrafficMirrorFilterIds:

The ID of the Traffic Mirror filter.

  • (string) --

type DryRun:

boolean

param DryRun:

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

type Filters:

list

param Filters:

One or more filters. The possible values are:

  • description: The Traffic Mirror filter description.

  • traffic-mirror-filter-id: The ID of the Traffic Mirror filter.

  • (dict) --

    A filter name and value pair that is used to return a more specific list of results from a describe operation. Filters can be used to match a set of resources by specific criteria, such as tags, attributes, or IDs.

    If you specify multiple filters, the filters are joined with an AND, and the request returns only results that match all of the specified filters.

    • Name (string) --

      The name of the filter. Filter names are case-sensitive.

    • Values (list) --

      The filter values. Filter values are case-sensitive. If you specify multiple values for a filter, the values are joined with an OR, and the request returns all results that match any of the specified values.

      • (string) --

type MaxResults:

integer

param MaxResults:

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

type NextToken:

string

param NextToken:

The token for the next page of results.

rtype:

dict

returns:

Response Syntax

{
    'TrafficMirrorFilters': [
        {
            'TrafficMirrorFilterId': 'string',
            'IngressFilterRules': [
                {
                    'TrafficMirrorFilterRuleId': 'string',
                    'TrafficMirrorFilterId': 'string',
                    'TrafficDirection': 'ingress'|'egress',
                    'RuleNumber': 123,
                    'RuleAction': 'accept'|'reject',
                    'Protocol': 123,
                    'DestinationPortRange': {
                        'FromPort': 123,
                        'ToPort': 123
                    },
                    'SourcePortRange': {
                        'FromPort': 123,
                        'ToPort': 123
                    },
                    'DestinationCidrBlock': 'string',
                    'SourceCidrBlock': 'string',
                    'Description': 'string',
                    'Tags': [
                        {
                            'Key': 'string',
                            'Value': 'string'
                        },
                    ]
                },
            ],
            'EgressFilterRules': [
                {
                    'TrafficMirrorFilterRuleId': 'string',
                    'TrafficMirrorFilterId': 'string',
                    'TrafficDirection': 'ingress'|'egress',
                    'RuleNumber': 123,
                    'RuleAction': 'accept'|'reject',
                    'Protocol': 123,
                    'DestinationPortRange': {
                        'FromPort': 123,
                        'ToPort': 123
                    },
                    'SourcePortRange': {
                        'FromPort': 123,
                        'ToPort': 123
                    },
                    'DestinationCidrBlock': 'string',
                    'SourceCidrBlock': 'string',
                    'Description': 'string',
                    'Tags': [
                        {
                            'Key': 'string',
                            'Value': 'string'
                        },
                    ]
                },
            ],
            'NetworkServices': [
                'amazon-dns',
            ],
            'Description': 'string',
            'Tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • TrafficMirrorFilters (list) --

      Information about one or more Traffic Mirror filters.

      • (dict) --

        Describes the Traffic Mirror filter.

        • TrafficMirrorFilterId (string) --

          The ID of the Traffic Mirror filter.

        • IngressFilterRules (list) --

          Information about the ingress rules that are associated with the Traffic Mirror filter.

          • (dict) --

            Describes the Traffic Mirror rule.

            • TrafficMirrorFilterRuleId (string) --

              The ID of the Traffic Mirror rule.

            • TrafficMirrorFilterId (string) --

              The ID of the Traffic Mirror filter that the rule is associated with.

            • TrafficDirection (string) --

              The traffic direction assigned to the Traffic Mirror rule.

            • RuleNumber (integer) --

              The rule number of the Traffic Mirror rule.

            • RuleAction (string) --

              The action assigned to the Traffic Mirror rule.

            • Protocol (integer) --

              The protocol assigned to the Traffic Mirror rule.

            • DestinationPortRange (dict) --

              The destination port range assigned to the Traffic Mirror rule.

              • FromPort (integer) --

                The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

              • ToPort (integer) --

                The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • SourcePortRange (dict) --

              The source port range assigned to the Traffic Mirror rule.

              • FromPort (integer) --

                The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

              • ToPort (integer) --

                The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • DestinationCidrBlock (string) --

              The destination CIDR block assigned to the Traffic Mirror rule.

            • SourceCidrBlock (string) --

              The source CIDR block assigned to the Traffic Mirror rule.

            • Description (string) --

              The description of the Traffic Mirror rule.

            • Tags (list) --

              Tags on Traffic Mirroring filter rules.

              • (dict) --

                Describes a tag.

                • Key (string) --

                  The key of the tag.

                  Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

                • Value (string) --

                  The value of the tag.

                  Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

        • EgressFilterRules (list) --

          Information about the egress rules that are associated with the Traffic Mirror filter.

          • (dict) --

            Describes the Traffic Mirror rule.

            • TrafficMirrorFilterRuleId (string) --

              The ID of the Traffic Mirror rule.

            • TrafficMirrorFilterId (string) --

              The ID of the Traffic Mirror filter that the rule is associated with.

            • TrafficDirection (string) --

              The traffic direction assigned to the Traffic Mirror rule.

            • RuleNumber (integer) --

              The rule number of the Traffic Mirror rule.

            • RuleAction (string) --

              The action assigned to the Traffic Mirror rule.

            • Protocol (integer) --

              The protocol assigned to the Traffic Mirror rule.

            • DestinationPortRange (dict) --

              The destination port range assigned to the Traffic Mirror rule.

              • FromPort (integer) --

                The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

              • ToPort (integer) --

                The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • SourcePortRange (dict) --

              The source port range assigned to the Traffic Mirror rule.

              • FromPort (integer) --

                The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

              • ToPort (integer) --

                The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • DestinationCidrBlock (string) --

              The destination CIDR block assigned to the Traffic Mirror rule.

            • SourceCidrBlock (string) --

              The source CIDR block assigned to the Traffic Mirror rule.

            • Description (string) --

              The description of the Traffic Mirror rule.

            • Tags (list) --

              Tags on Traffic Mirroring filter rules.

              • (dict) --

                Describes a tag.

                • Key (string) --

                  The key of the tag.

                  Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

                • Value (string) --

                  The value of the tag.

                  Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

        • NetworkServices (list) --

          The network service traffic that is associated with the Traffic Mirror filter.

          • (string) --

        • Description (string) --

          The description of the Traffic Mirror filter.

        • Tags (list) --

          The tags assigned to the Traffic Mirror filter.

          • (dict) --

            Describes a tag.

            • Key (string) --

              The key of the tag.

              Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

            • Value (string) --

              The value of the tag.

              Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

    • NextToken (string) --

      The token to use to retrieve the next page of results. The value is null when there are no more results to return.

GetLaunchTemplateData (updated) Link ¶
Changes (response)
{'LaunchTemplateData': {'TagSpecifications': {'ResourceType': {'vpc-encryption-control'}}}}
ModifyTrafficMirrorFilterNetworkServices (updated) Link ¶
Changes (response)
{'TrafficMirrorFilter': {'EgressFilterRules': {'Tags': [{'Key': 'string',
                                                         'Value': 'string'}]},
                         'IngressFilterRules': {'Tags': [{'Key': 'string',
                                                          'Value': 'string'}]}}}

Allows or restricts mirroring network services.

By default, Amazon DNS network services are not eligible for Traffic Mirror. Use AddNetworkServices to add network services to a Traffic Mirror filter. When a network service is added to the Traffic Mirror filter, all traffic related to that network service will be mirrored. When you no longer want to mirror network services, use RemoveNetworkServices to remove the network services from the Traffic Mirror filter.

See also: AWS API Documentation

Request Syntax

client.modify_traffic_mirror_filter_network_services(
    TrafficMirrorFilterId='string',
    AddNetworkServices=[
        'amazon-dns',
    ],
    RemoveNetworkServices=[
        'amazon-dns',
    ],
    DryRun=True|False
)
type TrafficMirrorFilterId:

string

param TrafficMirrorFilterId:

[REQUIRED]

The ID of the Traffic Mirror filter.

type AddNetworkServices:

list

param AddNetworkServices:

The network service, for example Amazon DNS, that you want to mirror.

  • (string) --

type RemoveNetworkServices:

list

param RemoveNetworkServices:

The network service, for example Amazon DNS, that you no longer want to mirror.

  • (string) --

type DryRun:

boolean

param DryRun:

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

rtype:

dict

returns:

Response Syntax

{
    'TrafficMirrorFilter': {
        'TrafficMirrorFilterId': 'string',
        'IngressFilterRules': [
            {
                'TrafficMirrorFilterRuleId': 'string',
                'TrafficMirrorFilterId': 'string',
                'TrafficDirection': 'ingress'|'egress',
                'RuleNumber': 123,
                'RuleAction': 'accept'|'reject',
                'Protocol': 123,
                'DestinationPortRange': {
                    'FromPort': 123,
                    'ToPort': 123
                },
                'SourcePortRange': {
                    'FromPort': 123,
                    'ToPort': 123
                },
                'DestinationCidrBlock': 'string',
                'SourceCidrBlock': 'string',
                'Description': 'string',
                'Tags': [
                    {
                        'Key': 'string',
                        'Value': 'string'
                    },
                ]
            },
        ],
        'EgressFilterRules': [
            {
                'TrafficMirrorFilterRuleId': 'string',
                'TrafficMirrorFilterId': 'string',
                'TrafficDirection': 'ingress'|'egress',
                'RuleNumber': 123,
                'RuleAction': 'accept'|'reject',
                'Protocol': 123,
                'DestinationPortRange': {
                    'FromPort': 123,
                    'ToPort': 123
                },
                'SourcePortRange': {
                    'FromPort': 123,
                    'ToPort': 123
                },
                'DestinationCidrBlock': 'string',
                'SourceCidrBlock': 'string',
                'Description': 'string',
                'Tags': [
                    {
                        'Key': 'string',
                        'Value': 'string'
                    },
                ]
            },
        ],
        'NetworkServices': [
            'amazon-dns',
        ],
        'Description': 'string',
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • TrafficMirrorFilter (dict) --

      The Traffic Mirror filter that the network service is associated with.

      • TrafficMirrorFilterId (string) --

        The ID of the Traffic Mirror filter.

      • IngressFilterRules (list) --

        Information about the ingress rules that are associated with the Traffic Mirror filter.

        • (dict) --

          Describes the Traffic Mirror rule.

          • TrafficMirrorFilterRuleId (string) --

            The ID of the Traffic Mirror rule.

          • TrafficMirrorFilterId (string) --

            The ID of the Traffic Mirror filter that the rule is associated with.

          • TrafficDirection (string) --

            The traffic direction assigned to the Traffic Mirror rule.

          • RuleNumber (integer) --

            The rule number of the Traffic Mirror rule.

          • RuleAction (string) --

            The action assigned to the Traffic Mirror rule.

          • Protocol (integer) --

            The protocol assigned to the Traffic Mirror rule.

          • DestinationPortRange (dict) --

            The destination port range assigned to the Traffic Mirror rule.

            • FromPort (integer) --

              The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • ToPort (integer) --

              The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

          • SourcePortRange (dict) --

            The source port range assigned to the Traffic Mirror rule.

            • FromPort (integer) --

              The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • ToPort (integer) --

              The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

          • DestinationCidrBlock (string) --

            The destination CIDR block assigned to the Traffic Mirror rule.

          • SourceCidrBlock (string) --

            The source CIDR block assigned to the Traffic Mirror rule.

          • Description (string) --

            The description of the Traffic Mirror rule.

          • Tags (list) --

            Tags on Traffic Mirroring filter rules.

            • (dict) --

              Describes a tag.

              • Key (string) --

                The key of the tag.

                Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

              • Value (string) --

                The value of the tag.

                Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

      • EgressFilterRules (list) --

        Information about the egress rules that are associated with the Traffic Mirror filter.

        • (dict) --

          Describes the Traffic Mirror rule.

          • TrafficMirrorFilterRuleId (string) --

            The ID of the Traffic Mirror rule.

          • TrafficMirrorFilterId (string) --

            The ID of the Traffic Mirror filter that the rule is associated with.

          • TrafficDirection (string) --

            The traffic direction assigned to the Traffic Mirror rule.

          • RuleNumber (integer) --

            The rule number of the Traffic Mirror rule.

          • RuleAction (string) --

            The action assigned to the Traffic Mirror rule.

          • Protocol (integer) --

            The protocol assigned to the Traffic Mirror rule.

          • DestinationPortRange (dict) --

            The destination port range assigned to the Traffic Mirror rule.

            • FromPort (integer) --

              The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • ToPort (integer) --

              The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

          • SourcePortRange (dict) --

            The source port range assigned to the Traffic Mirror rule.

            • FromPort (integer) --

              The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

            • ToPort (integer) --

              The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

          • DestinationCidrBlock (string) --

            The destination CIDR block assigned to the Traffic Mirror rule.

          • SourceCidrBlock (string) --

            The source CIDR block assigned to the Traffic Mirror rule.

          • Description (string) --

            The description of the Traffic Mirror rule.

          • Tags (list) --

            Tags on Traffic Mirroring filter rules.

            • (dict) --

              Describes a tag.

              • Key (string) --

                The key of the tag.

                Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

              • Value (string) --

                The value of the tag.

                Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

      • NetworkServices (list) --

        The network service traffic that is associated with the Traffic Mirror filter.

        • (string) --

      • Description (string) --

        The description of the Traffic Mirror filter.

      • Tags (list) --

        The tags assigned to the Traffic Mirror filter.

        • (dict) --

          Describes a tag.

          • Key (string) --

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

          • Value (string) --

            The value of the tag.

            Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

ModifyTrafficMirrorFilterRule (updated) Link ¶
Changes (response)
{'TrafficMirrorFilterRule': {'Tags': [{'Key': 'string', 'Value': 'string'}]}}

Modifies the specified Traffic Mirror rule.

DestinationCidrBlock and SourceCidrBlock must both be an IPv4 range or an IPv6 range.

See also: AWS API Documentation

Request Syntax

client.modify_traffic_mirror_filter_rule(
    TrafficMirrorFilterRuleId='string',
    TrafficDirection='ingress'|'egress',
    RuleNumber=123,
    RuleAction='accept'|'reject',
    DestinationPortRange={
        'FromPort': 123,
        'ToPort': 123
    },
    SourcePortRange={
        'FromPort': 123,
        'ToPort': 123
    },
    Protocol=123,
    DestinationCidrBlock='string',
    SourceCidrBlock='string',
    Description='string',
    RemoveFields=[
        'destination-port-range'|'source-port-range'|'protocol'|'description',
    ],
    DryRun=True|False
)
type TrafficMirrorFilterRuleId:

string

param TrafficMirrorFilterRuleId:

[REQUIRED]

The ID of the Traffic Mirror rule.

type TrafficDirection:

string

param TrafficDirection:

The type of traffic to assign to the rule.

type RuleNumber:

integer

param RuleNumber:

The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.

type RuleAction:

string

param RuleAction:

The action to assign to the rule.

type DestinationPortRange:

dict

param DestinationPortRange:

The destination ports that are associated with the Traffic Mirror rule.

  • FromPort (integer) --

    The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

  • ToPort (integer) --

    The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

type SourcePortRange:

dict

param SourcePortRange:

The port range to assign to the Traffic Mirror rule.

  • FromPort (integer) --

    The first port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

  • ToPort (integer) --

    The last port in the Traffic Mirror port range. This applies to the TCP and UDP protocols.

type Protocol:

integer

param Protocol:

The protocol, for example TCP, to assign to the Traffic Mirror rule.

type DestinationCidrBlock:

string

param DestinationCidrBlock:

The destination CIDR block to assign to the Traffic Mirror rule.

type SourceCidrBlock:

string

param SourceCidrBlock:

The source CIDR block to assign to the Traffic Mirror rule.

type Description:

string

param Description:

The description to assign to the Traffic Mirror rule.

type RemoveFields:

list

param RemoveFields:

The properties that you want to remove from the Traffic Mirror filter rule.

When you remove a property from a Traffic Mirror filter rule, the property is set to the default.

  • (string) --

type DryRun:

boolean

param DryRun:

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

rtype:

dict

returns:

Response Syntax

{
    'TrafficMirrorFilterRule': {
        'TrafficMirrorFilterRuleId': 'string',
        'TrafficMirrorFilterId': 'string',
        'TrafficDirection': 'ingress'|'egress',
        'RuleNumber': 123,
        'RuleAction': 'accept'|'reject',
        'Protocol': 123,
        'DestinationPortRange': {
            'FromPort': 123,
            'ToPort': 123
        },
        'SourcePortRange': {
            'FromPort': 123,
            'ToPort': 123
        },
        'DestinationCidrBlock': 'string',
        'SourceCidrBlock': 'string',
        'Description': 'string',
        'Tags': [
            {
                'Key': 'string',
                'Value': 'string'
            },
        ]
    }
}

Response Structure

  • (dict) --

    • TrafficMirrorFilterRule (dict) --

      A Traffic Mirror rule.

      • TrafficMirrorFilterRuleId (string) --

        The ID of the Traffic Mirror rule.

      • TrafficMirrorFilterId (string) --

        The ID of the Traffic Mirror filter that the rule is associated with.

      • TrafficDirection (string) --

        The traffic direction assigned to the Traffic Mirror rule.

      • RuleNumber (integer) --

        The rule number of the Traffic Mirror rule.

      • RuleAction (string) --

        The action assigned to the Traffic Mirror rule.

      • Protocol (integer) --

        The protocol assigned to the Traffic Mirror rule.

      • DestinationPortRange (dict) --

        The destination port range assigned to the Traffic Mirror rule.

        • FromPort (integer) --

          The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

        • ToPort (integer) --

          The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

      • SourcePortRange (dict) --

        The source port range assigned to the Traffic Mirror rule.

        • FromPort (integer) --

          The start of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

        • ToPort (integer) --

          The end of the Traffic Mirror port range. This applies to the TCP and UDP protocols.

      • DestinationCidrBlock (string) --

        The destination CIDR block assigned to the Traffic Mirror rule.

      • SourceCidrBlock (string) --

        The source CIDR block assigned to the Traffic Mirror rule.

      • Description (string) --

        The description of the Traffic Mirror rule.

      • Tags (list) --

        Tags on Traffic Mirroring filter rules.

        • (dict) --

          Describes a tag.

          • Key (string) --

            The key of the tag.

            Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

          • Value (string) --

            The value of the tag.

            Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

ProvisionByoipCidr (updated) Link ¶
Changes (request)
{'PoolTagSpecifications': {'ResourceType': {'vpc-encryption-control'}}}

Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.

Amazon Web Services verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring your own IP addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.

Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from pending-provision to provisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.

See also: AWS API Documentation

Request Syntax

client.provision_byoip_cidr(
    Cidr='string',
    CidrAuthorizationContext={
        'Message': 'string',
        'Signature': 'string'
    },
    PubliclyAdvertisable=True|False,
    Description='string',
    DryRun=True|False,
    PoolTagSpecifications=[
        {
            'ResourceType': 'capacity-reservation'|'client-vpn-endpoint'|'customer-gateway'|'carrier-gateway'|'coip-pool'|'dedicated-host'|'dhcp-options'|'egress-only-internet-gateway'|'elastic-ip'|'elastic-gpu'|'export-image-task'|'export-instance-task'|'fleet'|'fpga-image'|'host-reservation'|'image'|'import-image-task'|'import-snapshot-task'|'instance'|'instance-event-window'|'internet-gateway'|'ipam'|'ipam-pool'|'ipam-scope'|'ipv4pool-ec2'|'ipv6pool-ec2'|'key-pair'|'launch-template'|'local-gateway'|'local-gateway-route-table'|'local-gateway-virtual-interface'|'local-gateway-virtual-interface-group'|'local-gateway-route-table-vpc-association'|'local-gateway-route-table-virtual-interface-group-association'|'natgateway'|'network-acl'|'network-interface'|'network-insights-analysis'|'network-insights-path'|'network-insights-access-scope'|'network-insights-access-scope-analysis'|'placement-group'|'prefix-list'|'replace-root-volume-task'|'reserved-instances'|'route-table'|'security-group'|'security-group-rule'|'snapshot'|'spot-fleet-request'|'spot-instances-request'|'subnet'|'subnet-cidr-reservation'|'traffic-mirror-filter'|'traffic-mirror-session'|'traffic-mirror-target'|'transit-gateway'|'transit-gateway-attachment'|'transit-gateway-connect-peer'|'transit-gateway-multicast-domain'|'transit-gateway-policy-table'|'transit-gateway-route-table'|'transit-gateway-route-table-announcement'|'volume'|'vpc'|'vpc-endpoint'|'vpc-endpoint-connection'|'vpc-endpoint-service'|'vpc-endpoint-service-permission'|'vpc-peering-connection'|'vpn-connection'|'vpn-gateway'|'vpc-flow-log'|'capacity-reservation-fleet'|'traffic-mirror-filter-rule'|'vpc-endpoint-connection-device-type'|'verified-access-instance'|'verified-access-group'|'verified-access-endpoint'|'verified-access-policy'|'verified-access-trust-provider'|'vpn-connection-device-type'|'vpc-block-public-access-exclusion'|'vpc-encryption-control'|'ipam-resource-discovery'|'ipam-resource-discovery-association'|'instance-connect-endpoint',
            'Tags': [
                {
                    'Key': 'string',
                    'Value': 'string'
                },
            ]
        },
    ],
    MultiRegion=True|False,
    NetworkBorderGroup='string'
)
type Cidr:

string

param Cidr:

[REQUIRED]

The public IPv4 or IPv6 address range, in CIDR notation. The most specific IPv4 prefix that you can specify is /24. The most specific IPv6 address range that you can bring is /48 for CIDRs that are publicly advertisable and /56 for CIDRs that are not publicly advertisable. The address range cannot overlap with another address range that you've brought to this or another Region.

type CidrAuthorizationContext:

dict

param CidrAuthorizationContext:

A signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP.

  • Message (string) -- [REQUIRED]

    The plain-text authorization message for the prefix and account.

  • Signature (string) -- [REQUIRED]

    The signed authorization message for the prefix and account.

type PubliclyAdvertisable:

boolean

param PubliclyAdvertisable:

(IPv6 only) Indicate whether the address range will be publicly advertised to the internet.

Default: true

type Description:

string

param Description:

A description for the address range and the address pool.

type DryRun:

boolean

param DryRun:

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

type PoolTagSpecifications:

list

param PoolTagSpecifications:

The tags to apply to the address pool.

  • (dict) --

    The tags to apply to a resource when the resource is being created. When you specify a tag, you must specify the resource type to tag, otherwise the request will fail.

    • ResourceType (string) --

      The type of resource to tag on creation.

    • Tags (list) --

      The tags to apply to the resource.

      • (dict) --

        Describes a tag.

        • Key (string) --

          The key of the tag.

          Constraints: Tag keys are case-sensitive and accept a maximum of 127 Unicode characters. May not begin with aws:.

        • Value (string) --

          The value of the tag.

          Constraints: Tag values are case-sensitive and accept a maximum of 256 Unicode characters.

type MultiRegion:

boolean

param MultiRegion:

Reserved.

type NetworkBorderGroup:

string

param NetworkBorderGroup:

If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. Choose the network border group carefully as the EIP and the Amazon Web Services resource it is associated with must reside in the same network border group.

You can provision BYOIP address ranges to and advertise them in the following Local Zone network border groups:

  • us-east-1-dfw-2

  • us-west-2-lax-1

  • us-west-2-phx-2

rtype:

dict

returns:

Response Syntax

{
    'ByoipCidr': {
        'Cidr': 'string',
        'Description': 'string',
        'AsnAssociations': [
            {
                'Asn': 'string',
                'Cidr': 'string',
                'StatusMessage': 'string',
                'State': 'disassociated'|'failed-disassociation'|'failed-association'|'pending-disassociation'|'pending-association'|'associated'
            },
        ],
        'StatusMessage': 'string',
        'State': 'advertised'|'deprovisioned'|'failed-deprovision'|'failed-provision'|'pending-deprovision'|'pending-provision'|'provisioned'|'provisioned-not-publicly-advertisable',
        'NetworkBorderGroup': 'string'
    }
}

Response Structure

  • (dict) --

    • ByoipCidr (dict) --

      Information about the address range.

      • Cidr (string) --

        The address range, in CIDR notation.

      • Description (string) --

        The description of the address range.

      • AsnAssociations (list) --

        The BYOIP CIDR associations with ASNs.

        • (dict) --

          An Autonomous System Number (ASN) and BYOIP CIDR association.

          • Asn (string) --

            The association's ASN.

          • Cidr (string) --

            The association's CIDR.

          • StatusMessage (string) --

            The association's status message.

          • State (string) --

            The association's state.

      • StatusMessage (string) --

        Upon success, contains the ID of the address pool. Otherwise, contains an error message.

      • State (string) --

        The state of the address pool.

      • NetworkBorderGroup (string) --

        If you have Local Zones enabled, you can choose a network border group for Local Zones when you provision and advertise a BYOIPv4 CIDR. Choose the network border group carefully as the EIP and the Amazon Web Services resource it is associated with must reside in the same network border group.

        You can provision BYOIP address ranges to and advertise them in the following Local Zone network border groups:

        • us-east-1-dfw-2

        • us-west-2-lax-1

        • us-west-2-phx-2

RequestSpotFleet (updated) Link ¶
Changes (request)
{'SpotFleetRequestConfig': {'LaunchSpecifications': {'TagSpecifications': {'ResourceType': {'vpc-encryption-control'}}},
                            'TagSpecifications': {'ResourceType': {'vpc-encryption-control'}}}}