How to use provision_byoip_cidr method in localstack

Best Python code snippet using localstack_python

globalaccelerator.py

Source:globalaccelerator.py Github

copy

Full Screen

...504 :type ListenerArn: string505 :param ListenerArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the listener.\n506 """507 pass508def deprovision_byoip_cidr(Cidr=None):509 """510 Releases the specified address range that you provisioned to use with your AWS resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool. To see an AWS CLI example of deprovisioning an address range, scroll down to Example .511 Before you can release an address range, you must stop advertising it by using WithdrawByoipCidr and you must not have any accelerators that are using static IP addresses allocated from its address range.512 For more information, see Bring Your Own IP Addresses (BYOIP) in the AWS Global Accelerator Developer Guide .513 See also: AWS API Documentation514 515 Exceptions516 517 :example: response = client.deprovision_byoip_cidr(518 Cidr='string'519 )520 521 522 :type Cidr: string523 :param Cidr: [REQUIRED]\nThe address range, in CIDR notation. The prefix must be the same prefix that you specified when you provisioned the address range.\n524 :rtype: dict525ReturnsResponse Syntax{526 'ByoipCidr': {527 'Cidr': 'string',528 'State': 'PENDING_PROVISIONING'|'READY'|'PENDING_ADVERTISING'|'ADVERTISING'|'PENDING_WITHDRAWING'|'PENDING_DEPROVISIONING'|'DEPROVISIONED'|'FAILED_PROVISION'|'FAILED_ADVERTISING'|'FAILED_WITHDRAW'|'FAILED_DEPROVISION',529 'Events': [530 {531 'Message': 'string',532 'Timestamp': datetime(2015, 1, 1)533 },534 ]535 }536}537Response Structure538(dict) --539ByoipCidr (dict) --Information about the address range.540Cidr (string) --The address range, in CIDR notation.541State (string) --The state of the address pool.542Events (list) --A history of status changes for an IP address range that that you bring to AWS Global Accelerator through bring your own IP address (BYOIP).543(dict) --A complex type that contains a Message and a Timestamp value for changes that you make in the status an IP address range that you bring to AWS Global Accelerator through bring your own IP address (BYOIP).544Message (string) --A string that contains an Event message describing changes that you make in the status of an IP address range that you bring to AWS Global Accelerator through bring your own IP address (BYOIP).545Timestamp (datetime) --A timestamp when you make a status change for an IP address range that you bring to AWS Global Accelerator through bring your own IP address (BYOIP).546Exceptions547GlobalAccelerator.Client.exceptions.InternalServiceErrorException548GlobalAccelerator.Client.exceptions.InvalidArgumentException549GlobalAccelerator.Client.exceptions.AccessDeniedException550GlobalAccelerator.Client.exceptions.ByoipCidrNotFoundException551GlobalAccelerator.Client.exceptions.IncorrectCidrStateException552 :return: {553 'ByoipCidr': {554 'Cidr': 'string',555 'State': 'PENDING_PROVISIONING'|'READY'|'PENDING_ADVERTISING'|'ADVERTISING'|'PENDING_WITHDRAWING'|'PENDING_DEPROVISIONING'|'DEPROVISIONED'|'FAILED_PROVISION'|'FAILED_ADVERTISING'|'FAILED_WITHDRAW'|'FAILED_DEPROVISION',556 'Events': [557 {558 'Message': 'string',559 'Timestamp': datetime(2015, 1, 1)560 },561 ]562 }563 }564 565 566 """567 pass568def describe_accelerator(AcceleratorArn=None):569 """570 Describe an accelerator. To see an AWS CLI example of describing an accelerator, scroll down to Example .571 See also: AWS API Documentation572 573 Exceptions574 575 :example: response = client.describe_accelerator(576 AcceleratorArn='string'577 )578 579 580 :type AcceleratorArn: string581 :param AcceleratorArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the accelerator to describe.\n582 :rtype: dict583ReturnsResponse Syntax{584 'Accelerator': {585 'AcceleratorArn': 'string',586 'Name': 'string',587 'IpAddressType': 'IPV4',588 'Enabled': True|False,589 'IpSets': [590 {591 'IpFamily': 'string',592 'IpAddresses': [593 'string',594 ]595 },596 ],597 'DnsName': 'string',598 'Status': 'DEPLOYED'|'IN_PROGRESS',599 'CreatedTime': datetime(2015, 1, 1),600 'LastModifiedTime': datetime(2015, 1, 1)601 }602}603Response Structure604(dict) --605Accelerator (dict) --The description of the accelerator.606AcceleratorArn (string) --The Amazon Resource Name (ARN) of the accelerator.607Name (string) --The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.608IpAddressType (string) --The value for the address type must be IPv4.609Enabled (boolean) --Indicates whether the accelerator is enabled. The value is true or false. The default value is true.610If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.611IpSets (list) --The static IP addresses that Global Accelerator associates with the accelerator.612(dict) --A complex type for the set of IP addresses for an accelerator.613IpFamily (string) --The types of IP addresses included in this IP set.614IpAddresses (list) --The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.615(string) --616DnsName (string) --The Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator\'s static IP addresses.617The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.618For more information about the default DNS name, see Support for DNS Addressing in Global Accelerator in the AWS Global Accelerator Developer Guide .619Status (string) --Describes the deployment status of the accelerator.620CreatedTime (datetime) --The date and time that the accelerator was created.621LastModifiedTime (datetime) --The date and time that the accelerator was last modified.622Exceptions623GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException624GlobalAccelerator.Client.exceptions.InternalServiceErrorException625GlobalAccelerator.Client.exceptions.InvalidArgumentException626 :return: {627 'Accelerator': {628 'AcceleratorArn': 'string',629 'Name': 'string',630 'IpAddressType': 'IPV4',631 'Enabled': True|False,632 'IpSets': [633 {634 'IpFamily': 'string',635 'IpAddresses': [636 'string',637 ]638 },639 ],640 'DnsName': 'string',641 'Status': 'DEPLOYED'|'IN_PROGRESS',642 'CreatedTime': datetime(2015, 1, 1),643 'LastModifiedTime': datetime(2015, 1, 1)644 }645 }646 647 648 :returns: 649 GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException650 GlobalAccelerator.Client.exceptions.InternalServiceErrorException651 GlobalAccelerator.Client.exceptions.InvalidArgumentException652 653 """654 pass655def describe_accelerator_attributes(AcceleratorArn=None):656 """657 Describe the attributes of an accelerator. To see an AWS CLI example of describing the attributes of an accelerator, scroll down to Example .658 See also: AWS API Documentation659 660 Exceptions661 662 :example: response = client.describe_accelerator_attributes(663 AcceleratorArn='string'664 )665 666 667 :type AcceleratorArn: string668 :param AcceleratorArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the accelerator with the attributes that you want to describe.\n669 :rtype: dict670ReturnsResponse Syntax{671 'AcceleratorAttributes': {672 'FlowLogsEnabled': True|False,673 'FlowLogsS3Bucket': 'string',674 'FlowLogsS3Prefix': 'string'675 }676}677Response Structure678(dict) --679AcceleratorAttributes (dict) --The attributes of the accelerator.680FlowLogsEnabled (boolean) --Indicates whether flow logs are enabled. The default value is false. If the value is true, FlowLogsS3Bucket and FlowLogsS3Prefix must be specified.681For more information, see Flow Logs in the AWS Global Accelerator Developer Guide .682FlowLogsS3Bucket (string) --The name of the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is true . The bucket must exist and have a bucket policy that grants AWS Global Accelerator permission to write to the bucket.683FlowLogsS3Prefix (string) --The prefix for the location in the Amazon S3 bucket for the flow logs. Attribute is required if FlowLogsEnabled is true .684If you don\xe2\x80\x99t specify a prefix, the flow logs are stored in the root of the bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket folder structure will include a double slash (//), like the following:685s3-bucket_name//AWSLogs/aws_account_id686Exceptions687GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException688GlobalAccelerator.Client.exceptions.InternalServiceErrorException689GlobalAccelerator.Client.exceptions.InvalidArgumentException690 :return: {691 'AcceleratorAttributes': {692 'FlowLogsEnabled': True|False,693 'FlowLogsS3Bucket': 'string',694 'FlowLogsS3Prefix': 'string'695 }696 }697 698 699 """700 pass701def describe_endpoint_group(EndpointGroupArn=None):702 """703 Describe an endpoint group. To see an AWS CLI example of describing an endpoint group, scroll down to Example .704 See also: AWS API Documentation705 706 Exceptions707 708 :example: response = client.describe_endpoint_group(709 EndpointGroupArn='string'710 )711 712 713 :type EndpointGroupArn: string714 :param EndpointGroupArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the endpoint group to describe.\n715 :rtype: dict716ReturnsResponse Syntax{717 'EndpointGroup': {718 'EndpointGroupArn': 'string',719 'EndpointGroupRegion': 'string',720 'EndpointDescriptions': [721 {722 'EndpointId': 'string',723 'Weight': 123,724 'HealthState': 'INITIAL'|'HEALTHY'|'UNHEALTHY',725 'HealthReason': 'string',726 'ClientIPPreservationEnabled': True|False727 },728 ],729 'TrafficDialPercentage': ...,730 'HealthCheckPort': 123,731 'HealthCheckProtocol': 'TCP'|'HTTP'|'HTTPS',732 'HealthCheckPath': 'string',733 'HealthCheckIntervalSeconds': 123,734 'ThresholdCount': 123735 }736}737Response Structure738(dict) --739EndpointGroup (dict) --The description of an endpoint group.740EndpointGroupArn (string) --The Amazon Resource Name (ARN) of the endpoint group.741EndpointGroupRegion (string) --The AWS Region that this endpoint group belongs.742EndpointDescriptions (list) --The list of endpoint objects.743(dict) --A complex type for an endpoint. Each endpoint group can include one or more endpoints, such as load balancers.744EndpointId (string) --An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For EC2 instances, this is the EC2 instance ID.745An Application Load Balancer can be either internal or internet-facing.746Weight (integer) --The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint Weights in the AWS Global Accelerator Developer Guide .747HealthState (string) --The health status of the endpoint.748HealthReason (string) --The reason code associated with why the endpoint is not healthy. If the endpoint state is healthy, a reason code is not provided.749If the endpoint state is unhealthy , the reason code can be one of the following values:750Timeout : The health check requests to the endpoint are timing out before returning a status.751Failed : The health check failed, for example because the endpoint response was invalid (malformed).752If the endpoint state is initial , the reason code can be one of the following values:753ProvisioningInProgress : The endpoint is in the process of being provisioned.754InitialHealthChecking : Global Accelerator is still setting up the minimum number of health checks for the endpoint that are required to determine its health status.755ClientIPPreservationEnabled (boolean) --Indicates whether client IP address preservation is enabled for an Application Load Balancer endpoint. The value is true or false. The default value is true for new accelerators.756If the value is set to true, the client\'s IP address is preserved in the X-Forwarded-For request header as traffic travels to applications on the Application Load Balancer endpoint fronted by the accelerator.757For more information, see Viewing Client IP Addresses in AWS Global Accelerator in the AWS Global Accelerator Developer Guide .758TrafficDialPercentage (float) --The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener.759Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.760The default value is 100.761HealthCheckPort (integer) --The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.762The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.763HealthCheckProtocol (string) --The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default value is TCP.764HealthCheckPath (string) --If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).765HealthCheckIntervalSeconds (integer) --The time\xe2\x80\x9410 seconds or 30 seconds\xe2\x80\x94between health checks for each endpoint. The default value is 30.766ThresholdCount (integer) --The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.767Exceptions768GlobalAccelerator.Client.exceptions.InvalidArgumentException769GlobalAccelerator.Client.exceptions.EndpointGroupNotFoundException770GlobalAccelerator.Client.exceptions.InternalServiceErrorException771 :return: {772 'EndpointGroup': {773 'EndpointGroupArn': 'string',774 'EndpointGroupRegion': 'string',775 'EndpointDescriptions': [776 {777 'EndpointId': 'string',778 'Weight': 123,779 'HealthState': 'INITIAL'|'HEALTHY'|'UNHEALTHY',780 'HealthReason': 'string',781 'ClientIPPreservationEnabled': True|False782 },783 ],784 'TrafficDialPercentage': ...,785 'HealthCheckPort': 123,786 'HealthCheckProtocol': 'TCP'|'HTTP'|'HTTPS',787 'HealthCheckPath': 'string',788 'HealthCheckIntervalSeconds': 123,789 'ThresholdCount': 123790 }791 }792 793 794 :returns: 795 ProvisioningInProgress : The endpoint is in the process of being provisioned.796 InitialHealthChecking : Global Accelerator is still setting up the minimum number of health checks for the endpoint that are required to determine its health status.797 798 """799 pass800def describe_listener(ListenerArn=None):801 """802 Describe a listener. To see an AWS CLI example of describing a listener, scroll down to Example .803 See also: AWS API Documentation804 805 Exceptions806 807 :example: response = client.describe_listener(808 ListenerArn='string'809 )810 811 812 :type ListenerArn: string813 :param ListenerArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the listener to describe.\n814 :rtype: dict815ReturnsResponse Syntax{816 'Listener': {817 'ListenerArn': 'string',818 'PortRanges': [819 {820 'FromPort': 123,821 'ToPort': 123822 },823 ],824 'Protocol': 'TCP'|'UDP',825 'ClientAffinity': 'NONE'|'SOURCE_IP'826 }827}828Response Structure829(dict) --830Listener (dict) --The description of a listener.831ListenerArn (string) --The Amazon Resource Name (ARN) of the listener.832PortRanges (list) --The list of port ranges for the connections from clients to the accelerator.833(dict) --A complex type for a range of ports for a listener.834FromPort (integer) --The first port in the range of ports, inclusive.835ToPort (integer) --The last port in the range of ports, inclusive.836Protocol (string) --The protocol for the connections from clients to the accelerator.837ClientAffinity (string) --Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Clienty affinity gives you control over whether to always route each client to the same specific endpoint.838AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE , Global Accelerator uses the "five-tuple" (5-tuple) properties\xe2\x80\x94source IP address, source port, destination IP address, destination port, and protocol\xe2\x80\x94to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.839If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP instead. When you use the SOURCE_IP setting, Global Accelerator uses the "two-tuple" (2-tuple) properties\xe2\x80\x94 source (client) IP address and destination IP address\xe2\x80\x94to select the hash value.840The default value is NONE .841Exceptions842GlobalAccelerator.Client.exceptions.InvalidArgumentException843GlobalAccelerator.Client.exceptions.ListenerNotFoundException844GlobalAccelerator.Client.exceptions.InternalServiceErrorException845 :return: {846 'Listener': {847 'ListenerArn': 'string',848 'PortRanges': [849 {850 'FromPort': 123,851 'ToPort': 123852 },853 ],854 'Protocol': 'TCP'|'UDP',855 'ClientAffinity': 'NONE'|'SOURCE_IP'856 }857 }858 859 860 """861 pass862def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None):863 """864 Generate a presigned url given a client, its method, and arguments865 866 :type ClientMethod: string867 :param ClientMethod: The client method to presign for868 :type Params: dict869 :param Params: The parameters normally passed to\nClientMethod.870 :type ExpiresIn: int871 :param ExpiresIn: The number of seconds the presigned url is valid\nfor. By default it expires in an hour (3600 seconds)872 :type HttpMethod: string873 :param HttpMethod: The http method to use on the generated url. By\ndefault, the http method is whatever is used in the method\'s model.874 """875 pass876def get_paginator(operation_name=None):877 """878 Create a paginator for an operation.879 880 :type operation_name: string881 :param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo').882 :rtype: L{botocore.paginate.Paginator}883ReturnsA paginator object.884 """885 pass886def get_waiter(waiter_name=None):887 """888 Returns an object that can wait for some condition.889 890 :type waiter_name: str891 :param waiter_name: The name of the waiter to get. See the waiters\nsection of the service docs for a list of available waiters.892 :rtype: botocore.waiter.Waiter893 """894 pass895def list_accelerators(MaxResults=None, NextToken=None):896 """897 List the accelerators for an AWS account. To see an AWS CLI example of listing the accelerators for an AWS account, scroll down to Example .898 See also: AWS API Documentation899 900 Exceptions901 902 :example: response = client.list_accelerators(903 MaxResults=123,904 NextToken='string'905 )906 907 908 :type MaxResults: integer909 :param MaxResults: The number of Global Accelerator objects that you want to return with this call. The default value is 10.910 :type NextToken: string911 :param NextToken: The token for the next set of results. You receive this token from a previous call.912 :rtype: dict913ReturnsResponse Syntax914{915 'Accelerators': [916 {917 'AcceleratorArn': 'string',918 'Name': 'string',919 'IpAddressType': 'IPV4',920 'Enabled': True|False,921 'IpSets': [922 {923 'IpFamily': 'string',924 'IpAddresses': [925 'string',926 ]927 },928 ],929 'DnsName': 'string',930 'Status': 'DEPLOYED'|'IN_PROGRESS',931 'CreatedTime': datetime(2015, 1, 1),932 'LastModifiedTime': datetime(2015, 1, 1)933 },934 ],935 'NextToken': 'string'936}937Response Structure938(dict) --939Accelerators (list) --940The list of accelerators for a customer account.941(dict) --942An accelerator is a complex type that includes one or more listeners that process inbound connections and then direct traffic to one or more endpoint groups, each of which includes endpoints, such as load balancers.943AcceleratorArn (string) --944The Amazon Resource Name (ARN) of the accelerator.945Name (string) --946The name of the accelerator. The name must contain only alphanumeric characters or hyphens (-), and must not begin or end with a hyphen.947IpAddressType (string) --948The value for the address type must be IPv4.949Enabled (boolean) --950Indicates whether the accelerator is enabled. The value is true or false. The default value is true.951If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.952IpSets (list) --953The static IP addresses that Global Accelerator associates with the accelerator.954(dict) --955A complex type for the set of IP addresses for an accelerator.956IpFamily (string) --957The types of IP addresses included in this IP set.958IpAddresses (list) --959The array of IP addresses in the IP address set. An IP address set can have a maximum of two IP addresses.960(string) --961DnsName (string) --962The Domain Name System (DNS) name that Global Accelerator creates that points to your accelerator\'s static IP addresses.963The naming convention for the DNS name is the following: A lowercase letter a, followed by a 16-bit random hex string, followed by .awsglobalaccelerator.com. For example: a1234567890abcdef.awsglobalaccelerator.com.964For more information about the default DNS name, see Support for DNS Addressing in Global Accelerator in the AWS Global Accelerator Developer Guide .965Status (string) --966Describes the deployment status of the accelerator.967CreatedTime (datetime) --968The date and time that the accelerator was created.969LastModifiedTime (datetime) --970The date and time that the accelerator was last modified.971NextToken (string) --972The token for the next set of results. You receive this token from a previous call.973Exceptions974GlobalAccelerator.Client.exceptions.InvalidArgumentException975GlobalAccelerator.Client.exceptions.InvalidNextTokenException976GlobalAccelerator.Client.exceptions.InternalServiceErrorException977 :return: {978 'Accelerators': [979 {980 'AcceleratorArn': 'string',981 'Name': 'string',982 'IpAddressType': 'IPV4',983 'Enabled': True|False,984 'IpSets': [985 {986 'IpFamily': 'string',987 'IpAddresses': [988 'string',989 ]990 },991 ],992 'DnsName': 'string',993 'Status': 'DEPLOYED'|'IN_PROGRESS',994 'CreatedTime': datetime(2015, 1, 1),995 'LastModifiedTime': datetime(2015, 1, 1)996 },997 ],998 'NextToken': 'string'999 }1000 1001 1002 :returns: 1003 (string) --1004 1005 """1006 pass1007def list_byoip_cidrs(MaxResults=None, NextToken=None):1008 """1009 Lists the IP address ranges that were specified in calls to ProvisionByoipCidr , including the current state and a history of state changes.1010 To see an AWS CLI example of listing BYOIP CIDR addresses, scroll down to Example .1011 See also: AWS API Documentation1012 1013 Exceptions1014 1015 :example: response = client.list_byoip_cidrs(1016 MaxResults=123,1017 NextToken='string'1018 )1019 1020 1021 :type MaxResults: integer1022 :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.1023 :type NextToken: string1024 :param NextToken: The token for the next page of results.1025 :rtype: dict1026ReturnsResponse Syntax1027{1028 'ByoipCidrs': [1029 {1030 'Cidr': 'string',1031 'State': 'PENDING_PROVISIONING'|'READY'|'PENDING_ADVERTISING'|'ADVERTISING'|'PENDING_WITHDRAWING'|'PENDING_DEPROVISIONING'|'DEPROVISIONED'|'FAILED_PROVISION'|'FAILED_ADVERTISING'|'FAILED_WITHDRAW'|'FAILED_DEPROVISION',1032 'Events': [1033 {1034 'Message': 'string',1035 'Timestamp': datetime(2015, 1, 1)1036 },1037 ]1038 },1039 ],1040 'NextToken': 'string'1041}1042Response Structure1043(dict) --1044ByoipCidrs (list) --1045Information about your address ranges.1046(dict) --1047Information about an IP address range that is provisioned for use with your AWS resources through bring your own IP address (BYOIP).1048The following describes each BYOIP State that your IP address range can be in.1049PENDING_PROVISIONING \xe2\x80\x94 You\xe2\x80\x99ve submitted a request to provision an IP address range but it is not yet provisioned with AWS Global Accelerator.1050READY \xe2\x80\x94 The address range is provisioned with AWS Global Accelerator and can be advertised.1051PENDING_ADVERTISING \xe2\x80\x94 You\xe2\x80\x99ve submitted a request for AWS Global Accelerator to advertise an address range but it is not yet being advertised.1052ADVERTISING \xe2\x80\x94 The address range is being advertised by AWS Global Accelerator.1053PENDING_WITHDRAWING \xe2\x80\x94 You\xe2\x80\x99ve submitted a request to withdraw an address range from being advertised but it is still being advertised by AWS Global Accelerator.1054PENDING_DEPROVISIONING \xe2\x80\x94 You\xe2\x80\x99ve submitted a request to deprovision an address range from AWS Global Accelerator but it is still provisioned.1055DEPROVISIONED \xe2\x80\x94 The address range is deprovisioned from AWS Global Accelerator.1056FAILED_PROVISION \xe2\x80\x94 The request to provision the address range from AWS Global Accelerator was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact AWS support.1057FAILED_ADVERTISING \xe2\x80\x94 The request for AWS Global Accelerator to advertise the address range was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact AWS support.1058FAILED_WITHDRAW \xe2\x80\x94 The request to withdraw the address range from advertising by AWS Global Accelerator was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact AWS support.1059FAILED_DEPROVISION \xe2\x80\x94 The request to deprovision the address range from AWS Global Accelerator was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact AWS support.1060Cidr (string) --1061The address range, in CIDR notation.1062State (string) --1063The state of the address pool.1064Events (list) --1065A history of status changes for an IP address range that that you bring to AWS Global Accelerator through bring your own IP address (BYOIP).1066(dict) --1067A complex type that contains a Message and a Timestamp value for changes that you make in the status an IP address range that you bring to AWS Global Accelerator through bring your own IP address (BYOIP).1068Message (string) --1069A string that contains an Event message describing changes that you make in the status of an IP address range that you bring to AWS Global Accelerator through bring your own IP address (BYOIP).1070Timestamp (datetime) --1071A timestamp when you make a status change for an IP address range that you bring to AWS Global Accelerator through bring your own IP address (BYOIP).1072NextToken (string) --1073The token for the next page of results.1074Exceptions1075GlobalAccelerator.Client.exceptions.InternalServiceErrorException1076GlobalAccelerator.Client.exceptions.InvalidArgumentException1077GlobalAccelerator.Client.exceptions.AccessDeniedException1078GlobalAccelerator.Client.exceptions.InvalidNextTokenException1079 :return: {1080 'ByoipCidrs': [1081 {1082 'Cidr': 'string',1083 'State': 'PENDING_PROVISIONING'|'READY'|'PENDING_ADVERTISING'|'ADVERTISING'|'PENDING_WITHDRAWING'|'PENDING_DEPROVISIONING'|'DEPROVISIONED'|'FAILED_PROVISION'|'FAILED_ADVERTISING'|'FAILED_WITHDRAW'|'FAILED_DEPROVISION',1084 'Events': [1085 {1086 'Message': 'string',1087 'Timestamp': datetime(2015, 1, 1)1088 },1089 ]1090 },1091 ],1092 'NextToken': 'string'1093 }1094 1095 1096 :returns: 1097 PENDING_PROVISIONING \xe2\x80\x94 You\xe2\x80\x99ve submitted a request to provision an IP address range but it is not yet provisioned with AWS Global Accelerator.1098 READY \xe2\x80\x94 The address range is provisioned with AWS Global Accelerator and can be advertised.1099 PENDING_ADVERTISING \xe2\x80\x94 You\xe2\x80\x99ve submitted a request for AWS Global Accelerator to advertise an address range but it is not yet being advertised.1100 ADVERTISING \xe2\x80\x94 The address range is being advertised by AWS Global Accelerator.1101 PENDING_WITHDRAWING \xe2\x80\x94 You\xe2\x80\x99ve submitted a request to withdraw an address range from being advertised but it is still being advertised by AWS Global Accelerator.1102 PENDING_DEPROVISIONING \xe2\x80\x94 You\xe2\x80\x99ve submitted a request to deprovision an address range from AWS Global Accelerator but it is still provisioned.1103 DEPROVISIONED \xe2\x80\x94 The address range is deprovisioned from AWS Global Accelerator.1104 FAILED_PROVISION \xe2\x80\x94 The request to provision the address range from AWS Global Accelerator was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact AWS support.1105 FAILED_ADVERTISING \xe2\x80\x94 The request for AWS Global Accelerator to advertise the address range was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact AWS support.1106 FAILED_WITHDRAW \xe2\x80\x94 The request to withdraw the address range from advertising by AWS Global Accelerator was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact AWS support.1107 FAILED_DEPROVISION \xe2\x80\x94 The request to deprovision the address range from AWS Global Accelerator was not successful. Please make sure that you provide all of the correct information, and try again. If the request fails a second time, contact AWS support.1108 1109 """1110 pass1111def list_endpoint_groups(ListenerArn=None, MaxResults=None, NextToken=None):1112 """1113 List the endpoint groups that are associated with a listener. To see an AWS CLI example of listing the endpoint groups for listener, scroll down to Example .1114 See also: AWS API Documentation1115 1116 Exceptions1117 1118 :example: response = client.list_endpoint_groups(1119 ListenerArn='string',1120 MaxResults=123,1121 NextToken='string'1122 )1123 1124 1125 :type ListenerArn: string1126 :param ListenerArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the listener.\n1127 :type MaxResults: integer1128 :param MaxResults: The number of endpoint group objects that you want to return with this call. The default value is 10.1129 :type NextToken: string1130 :param NextToken: The token for the next set of results. You receive this token from a previous call.1131 :rtype: dict1132ReturnsResponse Syntax1133{1134 'EndpointGroups': [1135 {1136 'EndpointGroupArn': 'string',1137 'EndpointGroupRegion': 'string',1138 'EndpointDescriptions': [1139 {1140 'EndpointId': 'string',1141 'Weight': 123,1142 'HealthState': 'INITIAL'|'HEALTHY'|'UNHEALTHY',1143 'HealthReason': 'string',1144 'ClientIPPreservationEnabled': True|False1145 },1146 ],1147 'TrafficDialPercentage': ...,1148 'HealthCheckPort': 123,1149 'HealthCheckProtocol': 'TCP'|'HTTP'|'HTTPS',1150 'HealthCheckPath': 'string',1151 'HealthCheckIntervalSeconds': 123,1152 'ThresholdCount': 1231153 },1154 ],1155 'NextToken': 'string'1156}1157Response Structure1158(dict) --1159EndpointGroups (list) --1160The list of the endpoint groups associated with a listener.1161(dict) --1162A complex type for the endpoint group. An AWS Region can have only one endpoint group for a specific listener.1163EndpointGroupArn (string) --1164The Amazon Resource Name (ARN) of the endpoint group.1165EndpointGroupRegion (string) --1166The AWS Region that this endpoint group belongs.1167EndpointDescriptions (list) --1168The list of endpoint objects.1169(dict) --1170A complex type for an endpoint. Each endpoint group can include one or more endpoints, such as load balancers.1171EndpointId (string) --1172An ID for the endpoint. If the endpoint is a Network Load Balancer or Application Load Balancer, this is the Amazon Resource Name (ARN) of the resource. If the endpoint is an Elastic IP address, this is the Elastic IP address allocation ID. For EC2 instances, this is the EC2 instance ID.1173An Application Load Balancer can be either internal or internet-facing.1174Weight (integer) --1175The weight associated with the endpoint. When you add weights to endpoints, you configure AWS Global Accelerator to route traffic based on proportions that you specify. For example, you might specify endpoint weights of 4, 5, 5, and 6 (sum=20). The result is that 4/20 of your traffic, on average, is routed to the first endpoint, 5/20 is routed both to the second and third endpoints, and 6/20 is routed to the last endpoint. For more information, see Endpoint Weights in the AWS Global Accelerator Developer Guide .1176HealthState (string) --1177The health status of the endpoint.1178HealthReason (string) --1179The reason code associated with why the endpoint is not healthy. If the endpoint state is healthy, a reason code is not provided.1180If the endpoint state is unhealthy , the reason code can be one of the following values:1181Timeout : The health check requests to the endpoint are timing out before returning a status.1182Failed : The health check failed, for example because the endpoint response was invalid (malformed).1183If the endpoint state is initial , the reason code can be one of the following values:1184ProvisioningInProgress : The endpoint is in the process of being provisioned.1185InitialHealthChecking : Global Accelerator is still setting up the minimum number of health checks for the endpoint that are required to determine its health status.1186ClientIPPreservationEnabled (boolean) --1187Indicates whether client IP address preservation is enabled for an Application Load Balancer endpoint. The value is true or false. The default value is true for new accelerators.1188If the value is set to true, the client\'s IP address is preserved in the X-Forwarded-For request header as traffic travels to applications on the Application Load Balancer endpoint fronted by the accelerator.1189For more information, see Viewing Client IP Addresses in AWS Global Accelerator in the AWS Global Accelerator Developer Guide .1190TrafficDialPercentage (float) --1191The percentage of traffic to send to an AWS Region. Additional traffic is distributed to other endpoint groups for this listener.1192Use this action to increase (dial up) or decrease (dial down) traffic to a specific Region. The percentage is applied to the traffic that would otherwise have been routed to the Region based on optimal routing.1193The default value is 100.1194HealthCheckPort (integer) --1195The port that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group.1196The default port is the port for the listener that this endpoint group is associated with. If the listener port is a list, Global Accelerator uses the first specified port in the list of ports.1197HealthCheckProtocol (string) --1198The protocol that Global Accelerator uses to perform health checks on endpoints that are part of this endpoint group. The default value is TCP.1199HealthCheckPath (string) --1200If the protocol is HTTP/S, then this value provides the ping path that Global Accelerator uses for the destination on the endpoints for health checks. The default is slash (/).1201HealthCheckIntervalSeconds (integer) --1202The time\xe2\x80\x9410 seconds or 30 seconds\xe2\x80\x94between health checks for each endpoint. The default value is 30.1203ThresholdCount (integer) --1204The number of consecutive health checks required to set the state of a healthy endpoint to unhealthy, or to set an unhealthy endpoint to healthy. The default value is 3.1205NextToken (string) --1206The token for the next set of results. You receive this token from a previous call.1207Exceptions1208GlobalAccelerator.Client.exceptions.ListenerNotFoundException1209GlobalAccelerator.Client.exceptions.InvalidNextTokenException1210GlobalAccelerator.Client.exceptions.InvalidArgumentException1211GlobalAccelerator.Client.exceptions.InternalServiceErrorException1212 :return: {1213 'EndpointGroups': [1214 {1215 'EndpointGroupArn': 'string',1216 'EndpointGroupRegion': 'string',1217 'EndpointDescriptions': [1218 {1219 'EndpointId': 'string',1220 'Weight': 123,1221 'HealthState': 'INITIAL'|'HEALTHY'|'UNHEALTHY',1222 'HealthReason': 'string',1223 'ClientIPPreservationEnabled': True|False1224 },1225 ],1226 'TrafficDialPercentage': ...,1227 'HealthCheckPort': 123,1228 'HealthCheckProtocol': 'TCP'|'HTTP'|'HTTPS',1229 'HealthCheckPath': 'string',1230 'HealthCheckIntervalSeconds': 123,1231 'ThresholdCount': 1231232 },1233 ],1234 'NextToken': 'string'1235 }1236 1237 1238 :returns: 1239 Timeout : The health check requests to the endpoint are timing out before returning a status.1240 Failed : The health check failed, for example because the endpoint response was invalid (malformed).1241 1242 """1243 pass1244def list_listeners(AcceleratorArn=None, MaxResults=None, NextToken=None):1245 """1246 List the listeners for an accelerator. To see an AWS CLI example of listing the listeners for an accelerator, scroll down to Example .1247 See also: AWS API Documentation1248 1249 Exceptions1250 1251 :example: response = client.list_listeners(1252 AcceleratorArn='string',1253 MaxResults=123,1254 NextToken='string'1255 )1256 1257 1258 :type AcceleratorArn: string1259 :param AcceleratorArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the accelerator for which you want to list listener objects.\n1260 :type MaxResults: integer1261 :param MaxResults: The number of listener objects that you want to return with this call. The default value is 10.1262 :type NextToken: string1263 :param NextToken: The token for the next set of results. You receive this token from a previous call.1264 :rtype: dict1265ReturnsResponse Syntax1266{1267 'Listeners': [1268 {1269 'ListenerArn': 'string',1270 'PortRanges': [1271 {1272 'FromPort': 123,1273 'ToPort': 1231274 },1275 ],1276 'Protocol': 'TCP'|'UDP',1277 'ClientAffinity': 'NONE'|'SOURCE_IP'1278 },1279 ],1280 'NextToken': 'string'1281}1282Response Structure1283(dict) --1284Listeners (list) --1285The list of listeners for an accelerator.1286(dict) --1287A complex type for a listener.1288ListenerArn (string) --1289The Amazon Resource Name (ARN) of the listener.1290PortRanges (list) --1291The list of port ranges for the connections from clients to the accelerator.1292(dict) --1293A complex type for a range of ports for a listener.1294FromPort (integer) --1295The first port in the range of ports, inclusive.1296ToPort (integer) --1297The last port in the range of ports, inclusive.1298Protocol (string) --1299The protocol for the connections from clients to the accelerator.1300ClientAffinity (string) --1301Client affinity lets you direct all requests from a user to the same endpoint, if you have stateful applications, regardless of the port and protocol of the client request. Clienty affinity gives you control over whether to always route each client to the same specific endpoint.1302AWS Global Accelerator uses a consistent-flow hashing algorithm to choose the optimal endpoint for a connection. If client affinity is NONE , Global Accelerator uses the "five-tuple" (5-tuple) properties\xe2\x80\x94source IP address, source port, destination IP address, destination port, and protocol\xe2\x80\x94to select the hash value, and then chooses the best endpoint. However, with this setting, if someone uses different ports to connect to Global Accelerator, their connections might not be always routed to the same endpoint because the hash value changes.1303If you want a given client to always be routed to the same endpoint, set client affinity to SOURCE_IP instead. When you use the SOURCE_IP setting, Global Accelerator uses the "two-tuple" (2-tuple) properties\xe2\x80\x94 source (client) IP address and destination IP address\xe2\x80\x94to select the hash value.1304The default value is NONE .1305NextToken (string) --1306The token for the next set of results. You receive this token from a previous call.1307Exceptions1308GlobalAccelerator.Client.exceptions.InvalidArgumentException1309GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException1310GlobalAccelerator.Client.exceptions.InvalidNextTokenException1311GlobalAccelerator.Client.exceptions.InternalServiceErrorException1312 :return: {1313 'Listeners': [1314 {1315 'ListenerArn': 'string',1316 'PortRanges': [1317 {1318 'FromPort': 123,1319 'ToPort': 1231320 },1321 ],1322 'Protocol': 'TCP'|'UDP',1323 'ClientAffinity': 'NONE'|'SOURCE_IP'1324 },1325 ],1326 'NextToken': 'string'1327 }1328 1329 1330 :returns: 1331 GlobalAccelerator.Client.exceptions.InvalidArgumentException1332 GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException1333 GlobalAccelerator.Client.exceptions.InvalidNextTokenException1334 GlobalAccelerator.Client.exceptions.InternalServiceErrorException1335 1336 """1337 pass1338def list_tags_for_resource(ResourceArn=None):1339 """1340 List all tags for an accelerator. To see an AWS CLI example of listing tags for an accelerator, scroll down to Example .1341 For more information, see Tagging in AWS Global Accelerator in the AWS Global Accelerator Developer Guide .1342 See also: AWS API Documentation1343 1344 Exceptions1345 1346 :example: response = client.list_tags_for_resource(1347 ResourceArn='string'1348 )1349 1350 1351 :type ResourceArn: string1352 :param ResourceArn: [REQUIRED]\nThe Amazon Resource Name (ARN) of the accelerator to list tags for. An ARN uniquely identifies an accelerator.\n1353 :rtype: dict1354ReturnsResponse Syntax{1355 'Tags': [1356 {1357 'Key': 'string',1358 'Value': 'string'1359 },1360 ]1361}1362Response Structure1363(dict) --1364Tags (list) --Root level tag for the Tags parameters.1365(dict) --A complex type that contains a Tag key and Tag value.1366Key (string) --A string that contains a Tag key.1367Value (string) --A string that contains a Tag value.1368Exceptions1369GlobalAccelerator.Client.exceptions.AcceleratorNotFoundException1370GlobalAccelerator.Client.exceptions.InternalServiceErrorException1371GlobalAccelerator.Client.exceptions.InvalidArgumentException1372 :return: {1373 'Tags': [1374 {1375 'Key': 'string',1376 'Value': 'string'1377 },1378 ]1379 }1380 1381 1382 """1383 pass1384def provision_byoip_cidr(Cidr=None, CidrAuthorizationContext=None):1385 """1386 Provisions an IP address range to use with your AWS 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 .1387 To see an AWS CLI example of provisioning an address range for BYOIP, scroll down to Example .1388 For more information, see Bring Your Own IP Addresses (BYOIP) in the AWS Global Accelerator Developer Guide .1389 See also: AWS API Documentation1390 1391 Exceptions1392 1393 :example: response = client.provision_byoip_cidr(1394 Cidr='string',1395 CidrAuthorizationContext={1396 'Message': 'string',1397 'Signature': 'string'1398 }1399 )1400 1401 1402 :type Cidr: string1403 :param Cidr: [REQUIRED]\nThe public IPv4 address range, in CIDR notation. The most specific IP prefix that you can specify is /24. The address range cannot overlap with another address range that you\'ve brought to this or another Region.\n1404 :type CidrAuthorizationContext: dict1405 :param CidrAuthorizationContext: [REQUIRED]\nA signed document that proves that you are authorized to bring the specified IP address range to Amazon using BYOIP.\n\nMessage (string) -- [REQUIRED]The plain-text authorization message for the prefix and account.\n\nSignature (string) -- [REQUIRED]The signed authorization message for the prefix and account.\n\n\n1406 :rtype: dict1407ReturnsResponse Syntax...

Full Screen

Full Screen

client.pyi

Source:client.pyi Github

copy

Full Screen

...291 subnet endpoint that cannot receive traffic for a custom routing accelerator.292 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.deny_custom_routing_traffic)293 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#deny_custom_routing_traffic)294 """295 def deprovision_byoip_cidr(self, *, Cidr: str) -> DeprovisionByoipCidrResponseTypeDef:296 """297 Releases the specified address range that you provisioned to use with your298 Amazon Web Services resources through bring your own IP addresses (BYOIP) and299 deletes the corresponding address pool.300 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.deprovision_byoip_cidr)301 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#deprovision_byoip_cidr)302 """303 def describe_accelerator(self, *, AcceleratorArn: str) -> DescribeAcceleratorResponseTypeDef:304 """305 Describe an accelerator.306 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.describe_accelerator)307 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#describe_accelerator)308 """309 def describe_accelerator_attributes(310 self, *, AcceleratorArn: str311 ) -> DescribeAcceleratorAttributesResponseTypeDef:312 """313 Describe the attributes of an accelerator.314 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.describe_accelerator_attributes)315 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#describe_accelerator_attributes)316 """317 def describe_custom_routing_accelerator(318 self, *, AcceleratorArn: str319 ) -> DescribeCustomRoutingAcceleratorResponseTypeDef:320 """321 Describe a custom routing accelerator.322 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.describe_custom_routing_accelerator)323 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#describe_custom_routing_accelerator)324 """325 def describe_custom_routing_accelerator_attributes(326 self, *, AcceleratorArn: str327 ) -> DescribeCustomRoutingAcceleratorAttributesResponseTypeDef:328 """329 Describe the attributes of a custom routing accelerator.330 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.describe_custom_routing_accelerator_attributes)331 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#describe_custom_routing_accelerator_attributes)332 """333 def describe_custom_routing_endpoint_group(334 self, *, EndpointGroupArn: str335 ) -> DescribeCustomRoutingEndpointGroupResponseTypeDef:336 """337 Describe an endpoint group for a custom routing accelerator.338 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.describe_custom_routing_endpoint_group)339 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#describe_custom_routing_endpoint_group)340 """341 def describe_custom_routing_listener(342 self, *, ListenerArn: str343 ) -> DescribeCustomRoutingListenerResponseTypeDef:344 """345 The description of a listener for a custom routing accelerator.346 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.describe_custom_routing_listener)347 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#describe_custom_routing_listener)348 """349 def describe_endpoint_group(350 self, *, EndpointGroupArn: str351 ) -> DescribeEndpointGroupResponseTypeDef:352 """353 Describe an endpoint group.354 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.describe_endpoint_group)355 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#describe_endpoint_group)356 """357 def describe_listener(self, *, ListenerArn: str) -> DescribeListenerResponseTypeDef:358 """359 Describe a listener.360 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.describe_listener)361 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#describe_listener)362 """363 def generate_presigned_url(364 self,365 ClientMethod: str,366 Params: Dict[str, Any] = None,367 ExpiresIn: int = 3600,368 HttpMethod: str = None,369 ) -> str:370 """371 Generate a presigned url given a client, its method, and arguments.372 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.generate_presigned_url)373 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#generate_presigned_url)374 """375 def list_accelerators(376 self, *, MaxResults: int = None, NextToken: str = None377 ) -> ListAcceleratorsResponseTypeDef:378 """379 List the accelerators for an Amazon Web Services account.380 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.list_accelerators)381 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#list_accelerators)382 """383 def list_byoip_cidrs(384 self, *, MaxResults: int = None, NextToken: str = None385 ) -> ListByoipCidrsResponseTypeDef:386 """387 Lists the IP address ranges that were specified in calls to `ProvisionByoipCidr388 <https://docs.aws.amazon.com/global-389 accelerator/latest/api/ProvisionByoipCidr.html>`__ , including the current state390 and a history of state changes.391 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.list_byoip_cidrs)392 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#list_byoip_cidrs)393 """394 def list_custom_routing_accelerators(395 self, *, MaxResults: int = None, NextToken: str = None396 ) -> ListCustomRoutingAcceleratorsResponseTypeDef:397 """398 List the custom routing accelerators for an Amazon Web Services account.399 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.list_custom_routing_accelerators)400 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#list_custom_routing_accelerators)401 """402 def list_custom_routing_endpoint_groups(403 self, *, ListenerArn: str, MaxResults: int = None, NextToken: str = None404 ) -> ListCustomRoutingEndpointGroupsResponseTypeDef:405 """406 List the endpoint groups that are associated with a listener for a custom407 routing accelerator.408 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.list_custom_routing_endpoint_groups)409 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#list_custom_routing_endpoint_groups)410 """411 def list_custom_routing_listeners(412 self, *, AcceleratorArn: str, MaxResults: int = None, NextToken: str = None413 ) -> ListCustomRoutingListenersResponseTypeDef:414 """415 List the listeners for a custom routing accelerator.416 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.list_custom_routing_listeners)417 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#list_custom_routing_listeners)418 """419 def list_custom_routing_port_mappings(420 self,421 *,422 AcceleratorArn: str,423 EndpointGroupArn: str = None,424 MaxResults: int = None,425 NextToken: str = None426 ) -> ListCustomRoutingPortMappingsResponseTypeDef:427 """428 Provides a complete mapping from the public accelerator IP address and port to429 destination EC2 instance IP addresses and ports in the virtual public cloud430 (VPC) subnet endpoint for a custom routing accelerator.431 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.list_custom_routing_port_mappings)432 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#list_custom_routing_port_mappings)433 """434 def list_custom_routing_port_mappings_by_destination(435 self,436 *,437 EndpointId: str,438 DestinationAddress: str,439 MaxResults: int = None,440 NextToken: str = None441 ) -> ListCustomRoutingPortMappingsByDestinationResponseTypeDef:442 """443 List the port mappings for a specific EC2 instance (destination) in a VPC subnet444 endpoint.445 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.list_custom_routing_port_mappings_by_destination)446 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#list_custom_routing_port_mappings_by_destination)447 """448 def list_endpoint_groups(449 self, *, ListenerArn: str, MaxResults: int = None, NextToken: str = None450 ) -> ListEndpointGroupsResponseTypeDef:451 """452 List the endpoint groups that are associated with a listener.453 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.list_endpoint_groups)454 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#list_endpoint_groups)455 """456 def list_listeners(457 self, *, AcceleratorArn: str, MaxResults: int = None, NextToken: str = None458 ) -> ListListenersResponseTypeDef:459 """460 List the listeners for an accelerator.461 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.list_listeners)462 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#list_listeners)463 """464 def list_tags_for_resource(self, *, ResourceArn: str) -> ListTagsForResourceResponseTypeDef:465 """466 List all tags for an accelerator.467 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.list_tags_for_resource)468 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#list_tags_for_resource)469 """470 def provision_byoip_cidr(471 self, *, Cidr: str, CidrAuthorizationContext: "CidrAuthorizationContextTypeDef"472 ) -> ProvisionByoipCidrResponseTypeDef:473 """474 Provisions an IP address range to use with your Amazon Web Services resources475 through bring your own IP addresses (BYOIP) and creates a corresponding address476 pool.477 [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/1.24.58/reference/services/globalaccelerator.html#GlobalAccelerator.Client.provision_byoip_cidr)478 [Show boto3-stubs documentation](https://vemel.github.io/boto3_stubs_docs/mypy_boto3_globalaccelerator/client.html#provision_byoip_cidr)479 """480 def remove_custom_routing_endpoints(481 self, *, EndpointIds: List[str], EndpointGroupArn: str482 ) -> None:483 """484 Remove endpoints from a custom routing accelerator....

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run localstack automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful