AWSEC2

Objective-C

@interface AWSEC2

Swift

class AWSEC2

Amazon Elastic Compute Cloud

You can access the features of Amazon Elastic Compute Cloud (Amazon EC2) programmatically. For more information, see the Amazon EC2 Developer Guide.

  • The service configuration used to instantiate this service client.

    Warning

    Once the client is instantiated, do not modify the configuration object. It may cause unspecified behaviors.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration
  • Returns the singleton service client. If the singleton object does not exist, the SDK instantiates the default service client with defaultServiceConfiguration from [AWSServiceManager defaultServiceManager]. The reference to this object is maintained by the SDK, and you do not need to retain it manually.

    For example, set the default service configuration in - application:didFinishLaunchingWithOptions:

    Swift

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
       let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
       let configuration = AWSServiceConfiguration(region: .USEast1, credentialsProvider: credentialProvider)
       AWSServiceManager.default().defaultServiceConfiguration = configuration
    
       return true
    

    }

    Objective-C

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
         AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
                                                                                                         identityPoolId:@"YourIdentityPoolId"];
         AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1
                                                                              credentialsProvider:credentialsProvider];
         [AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration;
    
         return YES;
     }
    

    Then call the following to get the default service client:

    Swift

    let EC2 = AWSEC2.default()
    

    Objective-C

    AWSEC2 *EC2 = [AWSEC2 defaultEC2];
    

    Declaration

    Objective-C

    + (nonnull instancetype)defaultEC2;

    Swift

    class func `default`() -> Self

    Return Value

    The default service client.

  • Creates a service client with the given service configuration and registers it for the key.

    For example, set the default service configuration in - application:didFinishLaunchingWithOptions:

    Swift

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
       let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
       let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
       AWSEC2.register(with: configuration!, forKey: "USWest2EC2")
    
       return true
    

    }

    Objective-C

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
                                                                                                        identityPoolId:@"YourIdentityPoolId"];
        AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
                                                                             credentialsProvider:credentialsProvider];
    
        [AWSEC2 registerEC2WithConfiguration:configuration forKey:@"USWest2EC2"];
    
        return YES;
    }
    

    Then call the following to get the service client:

    Swift

    let EC2 = AWSEC2(forKey: "USWest2EC2")
    

    Objective-C

    AWSEC2 *EC2 = [AWSEC2 EC2ForKey:@"USWest2EC2"];
    

    Warning

    After calling this method, do not modify the configuration object. It may cause unspecified behaviors.

    Declaration

    Objective-C

    + (void)registerEC2WithConfiguration:(id)configuration
                                  forKey:(nonnull NSString *)key;

    Swift

    class func register(withConfiguration configuration: Any!, forKey key: String)

    Parameters

    configuration

    A service configuration object.

    key

    A string to identify the service client.

  • Retrieves the service client associated with the key. You need to call + registerEC2WithConfiguration:forKey: before invoking this method.

    For example, set the default service configuration in - application:didFinishLaunchingWithOptions:

    Swift

    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
       let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId")
       let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider)
       AWSEC2.register(with: configuration!, forKey: "USWest2EC2")
    
       return true
    

    }

    Objective-C

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1
                                                                                                        identityPoolId:@"YourIdentityPoolId"];
        AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2
                                                                             credentialsProvider:credentialsProvider];
    
        [AWSEC2 registerEC2WithConfiguration:configuration forKey:@"USWest2EC2"];
    
        return YES;
    }
    

    Then call the following to get the service client:

    Swift

    let EC2 = AWSEC2(forKey: "USWest2EC2")
    

    Objective-C

    AWSEC2 *EC2 = [AWSEC2 EC2ForKey:@"USWest2EC2"];
    

    Declaration

    Objective-C

    + (nonnull instancetype)EC2ForKey:(nonnull NSString *)key;

    Swift

    convenience init(forKey key: String)

    Parameters

    key

    A string to identify the service client.

    Return Value

    An instance of the service client.

  • Removes the service client associated with the key and release it.

    Warning

    Before calling this method, make sure no method is running on this client.

    Declaration

    Objective-C

    + (void)removeEC2ForKey:(nonnull NSString *)key;

    Swift

    class func remove(forKey key: String)

    Parameters

    key

    A string to identify the service client.

  • Accepts an Elastic IP address transfer. For more information, see Accept a transferred Elastic IP address in the Amazon VPC User Guide.

    See

    AWSEC2AcceptAddressTransferRequest

    See

    AWSEC2AcceptAddressTransferResult

    Declaration

    Objective-C

    - (id)acceptAddressTransfer:
        (nonnull AWSEC2AcceptAddressTransferRequest *)request;

    Swift

    func acceptAddressTransfer(_ request: AWSEC2AcceptAddressTransferRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AcceptAddressTransfer service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AcceptAddressTransferResult.

  • Accepts an Elastic IP address transfer. For more information, see Accept a transferred Elastic IP address in the Amazon VPC User Guide.

    See

    AWSEC2AcceptAddressTransferRequest

    See

    AWSEC2AcceptAddressTransferResult

    Declaration

    Objective-C

    - (void)acceptAddressTransfer:
                (nonnull AWSEC2AcceptAddressTransferRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2AcceptAddressTransferResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func acceptAddressTransfer(_ request: AWSEC2AcceptAddressTransferRequest) async throws -> AWSEC2AcceptAddressTransferResult

    Parameters

    request

    A container for the necessary parameters to execute the AcceptAddressTransfer service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.

    See

    AWSEC2AcceptReservedInstancesExchangeQuoteRequest

    See

    AWSEC2AcceptReservedInstancesExchangeQuoteResult

    Declaration

    Objective-C

    - (id)acceptReservedInstancesExchangeQuote:
        (nonnull AWSEC2AcceptReservedInstancesExchangeQuoteRequest *)request;

    Swift

    func acceptReservedInstancesExchangeQuote(_ request: AWSEC2AcceptReservedInstancesExchangeQuoteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AcceptReservedInstancesExchangeQuote service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AcceptReservedInstancesExchangeQuoteResult.

  • Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.

    See

    AWSEC2AcceptReservedInstancesExchangeQuoteRequest

    See

    AWSEC2AcceptReservedInstancesExchangeQuoteResult

    Declaration

    Objective-C

    - (void)
        acceptReservedInstancesExchangeQuote:
            (nonnull AWSEC2AcceptReservedInstancesExchangeQuoteRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2AcceptReservedInstancesExchangeQuoteResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func acceptReservedInstancesExchangeQuote(_ request: AWSEC2AcceptReservedInstancesExchangeQuoteRequest) async throws -> AWSEC2AcceptReservedInstancesExchangeQuoteResult

    Parameters

    request

    A container for the necessary parameters to execute the AcceptReservedInstancesExchangeQuote service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Accepts a request to associate subnets with a transit gateway multicast domain.

    See

    AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest

    See

    AWSEC2AcceptTransitGatewayMulticastDomainAssociationsResult

    Declaration

    Objective-C

    - (id)acceptTransitGatewayMulticastDomainAssociations:
        (nonnull AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest *)
            request;

    Swift

    func acceptTransitGatewayMulticastDomainAssociations(_ request: AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AcceptTransitGatewayMulticastDomainAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AcceptTransitGatewayMulticastDomainAssociationsResult.

  • Accepts a request to associate subnets with a transit gateway multicast domain.

    See

    AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest

    See

    AWSEC2AcceptTransitGatewayMulticastDomainAssociationsResult

    Declaration

    Objective-C

    - (void)
        acceptTransitGatewayMulticastDomainAssociations:
            (nonnull AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest *)
                request
                                      completionHandler:
                                          (void (^_Nullable)(
                                              AWSEC2AcceptTransitGatewayMulticastDomainAssociationsResult
                                                  *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func acceptTransitGatewayMulticastDomainAssociations(_ request: AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest) async throws -> AWSEC2AcceptTransitGatewayMulticastDomainAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the AcceptTransitGatewayMulticastDomainAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Accepts a transit gateway peering attachment request. The peering attachment must be in the pendingAcceptance state.

    See

    AWSEC2AcceptTransitGatewayPeeringAttachmentRequest

    See

    AWSEC2AcceptTransitGatewayPeeringAttachmentResult

    Declaration

    Objective-C

    - (id)acceptTransitGatewayPeeringAttachment:
        (nonnull AWSEC2AcceptTransitGatewayPeeringAttachmentRequest *)request;

    Swift

    func acceptTransitGatewayPeeringAttachment(_ request: AWSEC2AcceptTransitGatewayPeeringAttachmentRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AcceptTransitGatewayPeeringAttachment service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AcceptTransitGatewayPeeringAttachmentResult.

  • Accepts a transit gateway peering attachment request. The peering attachment must be in the pendingAcceptance state.

    See

    AWSEC2AcceptTransitGatewayPeeringAttachmentRequest

    See

    AWSEC2AcceptTransitGatewayPeeringAttachmentResult

    Declaration

    Objective-C

    - (void)
        acceptTransitGatewayPeeringAttachment:
            (nonnull AWSEC2AcceptTransitGatewayPeeringAttachmentRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2AcceptTransitGatewayPeeringAttachmentResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func acceptTransitGatewayPeeringAttachment(_ request: AWSEC2AcceptTransitGatewayPeeringAttachmentRequest) async throws -> AWSEC2AcceptTransitGatewayPeeringAttachmentResult

    Parameters

    request

    A container for the necessary parameters to execute the AcceptTransitGatewayPeeringAttachment service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Accepts a request to attach a VPC to a transit gateway.

    The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment to reject a VPC attachment request.

    See

    AWSEC2AcceptTransitGatewayVpcAttachmentRequest

    See

    AWSEC2AcceptTransitGatewayVpcAttachmentResult

    Declaration

    Objective-C

    - (id)acceptTransitGatewayVpcAttachment:
        (nonnull AWSEC2AcceptTransitGatewayVpcAttachmentRequest *)request;

    Swift

    func acceptTransitGatewayVpcAttachment(_ request: AWSEC2AcceptTransitGatewayVpcAttachmentRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AcceptTransitGatewayVpcAttachment service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AcceptTransitGatewayVpcAttachmentResult.

  • Accepts a request to attach a VPC to a transit gateway.

    The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment to reject a VPC attachment request.

    See

    AWSEC2AcceptTransitGatewayVpcAttachmentRequest

    See

    AWSEC2AcceptTransitGatewayVpcAttachmentResult

    Declaration

    Objective-C

    - (void)acceptTransitGatewayVpcAttachment:
                (nonnull AWSEC2AcceptTransitGatewayVpcAttachmentRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2AcceptTransitGatewayVpcAttachmentResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func acceptTransitGatewayVpcAttachment(_ request: AWSEC2AcceptTransitGatewayVpcAttachmentRequest) async throws -> AWSEC2AcceptTransitGatewayVpcAttachmentResult

    Parameters

    request

    A container for the necessary parameters to execute the AcceptTransitGatewayVpcAttachment service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Accepts connection requests to your VPC endpoint service.

    See

    AWSEC2AcceptVpcEndpointConnectionsRequest

    See

    AWSEC2AcceptVpcEndpointConnectionsResult

    Declaration

    Objective-C

    - (id)acceptVpcEndpointConnections:
        (nonnull AWSEC2AcceptVpcEndpointConnectionsRequest *)request;

    Swift

    func acceptVpcEndpointConnections(_ request: AWSEC2AcceptVpcEndpointConnectionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AcceptVpcEndpointConnections service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AcceptVpcEndpointConnectionsResult.

  • Accepts connection requests to your VPC endpoint service.

    See

    AWSEC2AcceptVpcEndpointConnectionsRequest

    See

    AWSEC2AcceptVpcEndpointConnectionsResult

    Declaration

    Objective-C

    - (void)acceptVpcEndpointConnections:
                (nonnull AWSEC2AcceptVpcEndpointConnectionsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2AcceptVpcEndpointConnectionsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func acceptVpcEndpointConnections(_ request: AWSEC2AcceptVpcEndpointConnectionsRequest) async throws -> AWSEC2AcceptVpcEndpointConnectionsResult

    Parameters

    request

    A container for the necessary parameters to execute the AcceptVpcEndpointConnections service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance state, and you must be the owner of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.

    For an inter-Region VPC peering connection request, you must accept the VPC peering connection in the Region of the accepter VPC.

    See

    AWSEC2AcceptVpcPeeringConnectionRequest

    See

    AWSEC2AcceptVpcPeeringConnectionResult

    Declaration

    Objective-C

    - (id)acceptVpcPeeringConnection:
        (nonnull AWSEC2AcceptVpcPeeringConnectionRequest *)request;

    Swift

    func acceptVpcPeeringConnection(_ request: AWSEC2AcceptVpcPeeringConnectionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AcceptVpcPeeringConnection service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AcceptVpcPeeringConnectionResult.

  • Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the pending-acceptance state, and you must be the owner of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.

    For an inter-Region VPC peering connection request, you must accept the VPC peering connection in the Region of the accepter VPC.

    See

    AWSEC2AcceptVpcPeeringConnectionRequest

    See

    AWSEC2AcceptVpcPeeringConnectionResult

    Declaration

    Objective-C

    - (void)acceptVpcPeeringConnection:
                (nonnull AWSEC2AcceptVpcPeeringConnectionRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2AcceptVpcPeeringConnectionResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func acceptVpcPeeringConnection(_ request: AWSEC2AcceptVpcPeeringConnectionRequest) async throws -> AWSEC2AcceptVpcPeeringConnectionResult

    Parameters

    request

    A container for the necessary parameters to execute the AcceptVpcPeeringConnection service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Advertises an IPv4 or IPv6 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP).

    You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

    We recommend that you stop advertising the BYOIP CIDR from other locations when you advertise it from Amazon Web Services. To minimize down time, you can configure your Amazon Web Services resources to use an address from a BYOIP CIDR before it is advertised, and then simultaneously stop advertising it from the current location and start advertising it through Amazon Web Services.

    It can take a few minutes before traffic to the specified addresses starts routing to Amazon Web Services because of BGP propagation delays.

    To stop advertising the BYOIP CIDR, use WithdrawByoipCidr.

    See

    AWSEC2AdvertiseByoipCidrRequest

    See

    AWSEC2AdvertiseByoipCidrResult

    Declaration

    Objective-C

    - (id)advertiseByoipCidr:(nonnull AWSEC2AdvertiseByoipCidrRequest *)request;

    Swift

    func advertiseByoipCidr(_ request: AWSEC2AdvertiseByoipCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AdvertiseByoipCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AdvertiseByoipCidrResult.

  • Advertises an IPv4 or IPv6 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP).

    You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

    We recommend that you stop advertising the BYOIP CIDR from other locations when you advertise it from Amazon Web Services. To minimize down time, you can configure your Amazon Web Services resources to use an address from a BYOIP CIDR before it is advertised, and then simultaneously stop advertising it from the current location and start advertising it through Amazon Web Services.

    It can take a few minutes before traffic to the specified addresses starts routing to Amazon Web Services because of BGP propagation delays.

    To stop advertising the BYOIP CIDR, use WithdrawByoipCidr.

    See

    AWSEC2AdvertiseByoipCidrRequest

    See

    AWSEC2AdvertiseByoipCidrResult

    Declaration

    Objective-C

    - (void)advertiseByoipCidr:(nonnull AWSEC2AdvertiseByoipCidrRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2AdvertiseByoipCidrResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func advertiseByoipCidr(_ request: AWSEC2AdvertiseByoipCidrRequest) async throws -> AWSEC2AdvertiseByoipCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the AdvertiseByoipCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Allocates an Elastic IP address to your Amazon Web Services account. After you allocate the Elastic IP address you can associate it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address pool and can be allocated to a different Amazon Web Services account.

    You can allocate an Elastic IP address from an address pool owned by Amazon Web Services or from an address pool created from a public IPv4 address range that you have brought to Amazon Web Services for use with your Amazon Web Services resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon EC2 User Guide.

    If you release an Elastic IP address, you might be able to recover it. You cannot recover an Elastic IP address that you released after it is allocated to another Amazon Web Services account. To attempt to recover an Elastic IP address that you released, specify it in this operation.

    For more information, see Elastic IP Addresses in the Amazon EC2 User Guide.

    You can allocate a carrier IP address which is a public IP address from a telecommunication carrier, to a network interface which resides in a subnet in a Wavelength Zone (for example an EC2 instance).

    See

    AWSEC2AllocateAddressRequest

    See

    AWSEC2AllocateAddressResult

    Declaration

    Objective-C

    - (id)allocateAddress:(nonnull AWSEC2AllocateAddressRequest *)request;

    Swift

    func allocateAddress(_ request: AWSEC2AllocateAddressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AllocateAddress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AllocateAddressResult.

  • Allocates an Elastic IP address to your Amazon Web Services account. After you allocate the Elastic IP address you can associate it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address pool and can be allocated to a different Amazon Web Services account.

    You can allocate an Elastic IP address from an address pool owned by Amazon Web Services or from an address pool created from a public IPv4 address range that you have brought to Amazon Web Services for use with your Amazon Web Services resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon EC2 User Guide.

    If you release an Elastic IP address, you might be able to recover it. You cannot recover an Elastic IP address that you released after it is allocated to another Amazon Web Services account. To attempt to recover an Elastic IP address that you released, specify it in this operation.

    For more information, see Elastic IP Addresses in the Amazon EC2 User Guide.

    You can allocate a carrier IP address which is a public IP address from a telecommunication carrier, to a network interface which resides in a subnet in a Wavelength Zone (for example an EC2 instance).

    See

    AWSEC2AllocateAddressRequest

    See

    AWSEC2AllocateAddressResult

    Declaration

    Objective-C

    - (void)allocateAddress:(nonnull AWSEC2AllocateAddressRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2AllocateAddressResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func allocateAddress(_ request: AWSEC2AllocateAddressRequest) async throws -> AWSEC2AllocateAddressResult

    Parameters

    request

    A container for the necessary parameters to execute the AllocateAddress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Allocates a Dedicated Host to your account. At a minimum, specify the supported instance type or instance family, the Availability Zone in which to allocate the host, and the number of hosts to allocate.

    See

    AWSEC2AllocateHostsRequest

    See

    AWSEC2AllocateHostsResult

    Declaration

    Objective-C

    - (id)allocateHosts:(nonnull AWSEC2AllocateHostsRequest *)request;

    Swift

    func allocateHosts(_ request: AWSEC2AllocateHostsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AllocateHosts service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AllocateHostsResult.

  • Allocates a Dedicated Host to your account. At a minimum, specify the supported instance type or instance family, the Availability Zone in which to allocate the host, and the number of hosts to allocate.

    See

    AWSEC2AllocateHostsRequest

    See

    AWSEC2AllocateHostsResult

    Declaration

    Objective-C

    - (void)allocateHosts:(nonnull AWSEC2AllocateHostsRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2AllocateHostsResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func allocateHosts(_ request: AWSEC2AllocateHostsRequest) async throws -> AWSEC2AllocateHostsResult

    Parameters

    request

    A container for the necessary parameters to execute the AllocateHosts service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Allocate a CIDR from an IPAM pool. The Region you use should be the IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM pool is available for allocations.

    In IPAM, an allocation is a CIDR assignment from an IPAM pool to another IPAM pool or to a resource. For more information, see Allocate CIDRs in the Amazon VPC IPAM User Guide.

    This action creates an allocation with strong consistency. The returned CIDR will not overlap with any other allocations from the same pool.

    See

    AWSEC2AllocateIpamPoolCidrRequest

    See

    AWSEC2AllocateIpamPoolCidrResult

    Declaration

    Objective-C

    - (id)allocateIpamPoolCidr:(nonnull AWSEC2AllocateIpamPoolCidrRequest *)request;

    Swift

    func allocateIpamPoolCidr(_ request: AWSEC2AllocateIpamPoolCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AllocateIpamPoolCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AllocateIpamPoolCidrResult.

  • Allocate a CIDR from an IPAM pool. The Region you use should be the IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM pool is available for allocations.

    In IPAM, an allocation is a CIDR assignment from an IPAM pool to another IPAM pool or to a resource. For more information, see Allocate CIDRs in the Amazon VPC IPAM User Guide.

    This action creates an allocation with strong consistency. The returned CIDR will not overlap with any other allocations from the same pool.

    See

    AWSEC2AllocateIpamPoolCidrRequest

    See

    AWSEC2AllocateIpamPoolCidrResult

    Declaration

    Objective-C

    - (void)allocateIpamPoolCidr:
                (nonnull AWSEC2AllocateIpamPoolCidrRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2AllocateIpamPoolCidrResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func allocateIpamPoolCidr(_ request: AWSEC2AllocateIpamPoolCidrRequest) async throws -> AWSEC2AllocateIpamPoolCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the AllocateIpamPoolCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Applies a security group to the association between the target network and the Client VPN endpoint. This action replaces the existing security groups with the specified security groups.

    See

    AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest

    See

    AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkResult

    Declaration

    Objective-C

    - (id)applySecurityGroupsToClientVpnTargetNetwork:
        (nonnull AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest *)request;

    Swift

    func applySecurityGroups(toClientVpnTargetNetwork request: AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ApplySecurityGroupsToClientVpnTargetNetwork service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkResult.

  • Applies a security group to the association between the target network and the Client VPN endpoint. This action replaces the existing security groups with the specified security groups.

    See

    AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest

    See

    AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkResult

    Declaration

    Objective-C

    - (void)
        applySecurityGroupsToClientVpnTargetNetwork:
            (nonnull AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest *)
                request
                                  completionHandler:
                                      (void (^_Nullable)(
                                          AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkResult
                                              *_Nullable,
                                          NSError *_Nullable))completionHandler;

    Swift

    func applySecurityGroups(toClientVpnTargetNetwork request: AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest) async throws -> AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkResult

    Parameters

    request

    A container for the necessary parameters to execute the ApplySecurityGroupsToClientVpnTargetNetwork service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet’s IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type.

    You must specify either the IPv6 addresses or the IPv6 address count in the request.

    You can optionally use Prefix Delegation on the network interface. You must specify either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.

    See

    AWSEC2AssignIpv6AddressesRequest

    See

    AWSEC2AssignIpv6AddressesResult

    Declaration

    Objective-C

    - (id)assignIpv6Addresses:(nonnull AWSEC2AssignIpv6AddressesRequest *)request;

    Swift

    func assignIpv6Addresses(_ request: AWSEC2AssignIpv6AddressesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssignIpv6Addresses service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssignIpv6AddressesResult.

  • Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet’s IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type.

    You must specify either the IPv6 addresses or the IPv6 address count in the request.

    You can optionally use Prefix Delegation on the network interface. You must specify either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.

    See

    AWSEC2AssignIpv6AddressesRequest

    See

    AWSEC2AssignIpv6AddressesResult

    Declaration

    Objective-C

    - (void)assignIpv6Addresses:(nonnull AWSEC2AssignIpv6AddressesRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2AssignIpv6AddressesResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func assignIpv6Addresses(_ request: AWSEC2AssignIpv6AddressesRequest) async throws -> AWSEC2AssignIpv6AddressesResult

    Parameters

    request

    A container for the necessary parameters to execute the AssignIpv6Addresses service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Assigns one or more secondary private IP addresses to the specified network interface.

    You can specify one or more specific secondary IP addresses, or you can specify the number of secondary IP addresses to be automatically assigned within the subnet’s CIDR block range. The number of secondary IP addresses that you can assign to an instance varies by instance type. For more information about Elastic IP addresses, see Elastic IP Addresses in the Amazon EC2 User Guide.

    When you move a secondary private IP address to another network interface, any Elastic IP address that is associated with the IP address is also moved.

    Remapping an IP address is an asynchronous operation. When you move an IP address from one network interface to another, check network/interfaces/macs/mac/local-ipv4s in the instance metadata to confirm that the remapping is complete.

    You must specify either the IP addresses or the IP address count in the request.

    You can optionally use Prefix Delegation on the network interface. You must specify either the IPv4 Prefix Delegation prefixes, or the IPv4 Prefix Delegation count. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.

    See

    AWSEC2AssignPrivateIpAddressesRequest

    See

    AWSEC2AssignPrivateIpAddressesResult

    Declaration

    Objective-C

    - (id)assignPrivateIpAddresses:
        (nonnull AWSEC2AssignPrivateIpAddressesRequest *)request;

    Swift

    func assignPrivateIpAddresses(_ request: AWSEC2AssignPrivateIpAddressesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssignPrivateIpAddresses service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssignPrivateIpAddressesResult.

  • Assigns one or more secondary private IP addresses to the specified network interface.

    You can specify one or more specific secondary IP addresses, or you can specify the number of secondary IP addresses to be automatically assigned within the subnet’s CIDR block range. The number of secondary IP addresses that you can assign to an instance varies by instance type. For more information about Elastic IP addresses, see Elastic IP Addresses in the Amazon EC2 User Guide.

    When you move a secondary private IP address to another network interface, any Elastic IP address that is associated with the IP address is also moved.

    Remapping an IP address is an asynchronous operation. When you move an IP address from one network interface to another, check network/interfaces/macs/mac/local-ipv4s in the instance metadata to confirm that the remapping is complete.

    You must specify either the IP addresses or the IP address count in the request.

    You can optionally use Prefix Delegation on the network interface. You must specify either the IPv4 Prefix Delegation prefixes, or the IPv4 Prefix Delegation count. For information, see Assigning prefixes to network interfaces in the Amazon EC2 User Guide.

    See

    AWSEC2AssignPrivateIpAddressesRequest

    See

    AWSEC2AssignPrivateIpAddressesResult

    Declaration

    Objective-C

    - (void)assignPrivateIpAddresses:
                (nonnull AWSEC2AssignPrivateIpAddressesRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2AssignPrivateIpAddressesResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func assignPrivateIpAddresses(_ request: AWSEC2AssignPrivateIpAddressesRequest) async throws -> AWSEC2AssignPrivateIpAddressesResult

    Parameters

    request

    A container for the necessary parameters to execute the AssignPrivateIpAddresses service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Assigns private IPv4 addresses to a private NAT gateway. For more information, see Work with NAT gateways in the Amazon VPC User Guide.

    See

    AWSEC2AssignPrivateNatGatewayAddressRequest

    See

    AWSEC2AssignPrivateNatGatewayAddressResult

    Declaration

    Objective-C

    - (id)assignPrivateNatGatewayAddress:
        (nonnull AWSEC2AssignPrivateNatGatewayAddressRequest *)request;

    Swift

    func assignPrivateNatGatewayAddress(_ request: AWSEC2AssignPrivateNatGatewayAddressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssignPrivateNatGatewayAddress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssignPrivateNatGatewayAddressResult.

  • Assigns private IPv4 addresses to a private NAT gateway. For more information, see Work with NAT gateways in the Amazon VPC User Guide.

    See

    AWSEC2AssignPrivateNatGatewayAddressRequest

    See

    AWSEC2AssignPrivateNatGatewayAddressResult

    Declaration

    Objective-C

    - (void)
        assignPrivateNatGatewayAddress:
            (nonnull AWSEC2AssignPrivateNatGatewayAddressRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2AssignPrivateNatGatewayAddressResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func assignPrivateNatGatewayAddress(_ request: AWSEC2AssignPrivateNatGatewayAddressRequest) async throws -> AWSEC2AssignPrivateNatGatewayAddressResult

    Parameters

    request

    A container for the necessary parameters to execute the AssignPrivateNatGatewayAddress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates an Elastic IP address, or carrier IP address (for instances that are in subnets in Wavelength Zones) with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account.

    If the Elastic IP address is already associated with a different instance, it is disassociated from that instance and associated with the specified instance. If you associate an Elastic IP address with an instance that has an existing Elastic IP address, the existing address is disassociated from the instance, but remains allocated to your account.

    [Subnets in Wavelength Zones] You can associate an IP address from the telecommunication carrier to the instance or network interface.

    You cannot associate an Elastic IP address with an interface in a different network border group.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error, and you may be charged for each time the Elastic IP address is remapped to the same instance. For more information, see the Elastic IP Addresses section of Amazon EC2 Pricing.

    See

    AWSEC2AssociateAddressRequest

    See

    AWSEC2AssociateAddressResult

    Declaration

    Objective-C

    - (id)associateAddress:(nonnull AWSEC2AssociateAddressRequest *)request;

    Swift

    func associateAddress(_ request: AWSEC2AssociateAddressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateAddress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateAddressResult.

  • Associates an Elastic IP address, or carrier IP address (for instances that are in subnets in Wavelength Zones) with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account.

    If the Elastic IP address is already associated with a different instance, it is disassociated from that instance and associated with the specified instance. If you associate an Elastic IP address with an instance that has an existing Elastic IP address, the existing address is disassociated from the instance, but remains allocated to your account.

    [Subnets in Wavelength Zones] You can associate an IP address from the telecommunication carrier to the instance or network interface.

    You cannot associate an Elastic IP address with an interface in a different network border group.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error, and you may be charged for each time the Elastic IP address is remapped to the same instance. For more information, see the Elastic IP Addresses section of Amazon EC2 Pricing.

    See

    AWSEC2AssociateAddressRequest

    See

    AWSEC2AssociateAddressResult

    Declaration

    Objective-C

    - (void)associateAddress:(nonnull AWSEC2AssociateAddressRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2AssociateAddressResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func associateAddress(_ request: AWSEC2AssociateAddressRequest) async throws -> AWSEC2AssociateAddressResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateAddress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates a target network with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy.

    If you specified a VPC when you created the Client VPN endpoint or if you have previous subnet associations, the specified subnet must be in the same VPC. To specify a subnet that’s in a different VPC, you must first modify the Client VPN endpoint (ModifyClientVpnEndpoint) and change the VPC that’s associated with it.

    See

    AWSEC2AssociateClientVpnTargetNetworkRequest

    See

    AWSEC2AssociateClientVpnTargetNetworkResult

    Declaration

    Objective-C

    - (id)associateClientVpnTargetNetwork:
        (nonnull AWSEC2AssociateClientVpnTargetNetworkRequest *)request;

    Swift

    func associateClientVpnTargetNetwork(_ request: AWSEC2AssociateClientVpnTargetNetworkRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateClientVpnTargetNetwork service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateClientVpnTargetNetworkResult.

  • Associates a target network with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy.

    If you specified a VPC when you created the Client VPN endpoint or if you have previous subnet associations, the specified subnet must be in the same VPC. To specify a subnet that’s in a different VPC, you must first modify the Client VPN endpoint (ModifyClientVpnEndpoint) and change the VPC that’s associated with it.

    See

    AWSEC2AssociateClientVpnTargetNetworkRequest

    See

    AWSEC2AssociateClientVpnTargetNetworkResult

    Declaration

    Objective-C

    - (void)associateClientVpnTargetNetwork:
                (nonnull AWSEC2AssociateClientVpnTargetNetworkRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2AssociateClientVpnTargetNetworkResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func associateClientVpnTargetNetwork(_ request: AWSEC2AssociateClientVpnTargetNetworkRequest) async throws -> AWSEC2AssociateClientVpnTargetNetworkResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateClientVpnTargetNetwork service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates a set of DHCP options (that you’ve previously created) with the specified VPC, or associates no DHCP options with the VPC.

    After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don’t need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

    For more information, see DHCP option sets in the Amazon VPC User Guide.

    See

    AWSEC2AssociateDhcpOptionsRequest

    Declaration

    Objective-C

    - (id)associateDhcpOptions:(nonnull AWSEC2AssociateDhcpOptionsRequest *)request;

    Swift

    func associateDhcpOptions(_ request: AWSEC2AssociateDhcpOptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateDhcpOptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Associates a set of DHCP options (that you’ve previously created) with the specified VPC, or associates no DHCP options with the VPC.

    After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don’t need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.

    For more information, see DHCP option sets in the Amazon VPC User Guide.

    See

    AWSEC2AssociateDhcpOptionsRequest

    Declaration

    Objective-C

    - (void)associateDhcpOptions:
                (nonnull AWSEC2AssociateDhcpOptionsRequest *)request
               completionHandler:
                   (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func associateDhcpOptions(_ request: AWSEC2AssociateDhcpOptionsRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the AssociateDhcpOptions service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates an Identity and Access Management (IAM) role with an Certificate Manager (ACM) certificate. This enables the certificate to be used by the ACM for Nitro Enclaves application inside an enclave. For more information, see Certificate Manager for Nitro Enclaves in the Amazon Web Services Nitro Enclaves User Guide.

    When the IAM role is associated with the ACM certificate, the certificate, certificate chain, and encrypted private key are placed in an Amazon S3 location that only the associated IAM role can access. The private key of the certificate is encrypted with an Amazon Web Services managed key that has an attached attestation-based key policy.

    To enable the IAM role to access the Amazon S3 object, you must grant it permission to call s3:GetObject on the Amazon S3 bucket returned by the command. To enable the IAM role to access the KMS key, you must grant it permission to call kms:Decrypt on the KMS key returned by the command. For more information, see Grant the role permission to access the certificate and encryption key in the Amazon Web Services Nitro Enclaves User Guide.

    See

    AWSEC2AssociateEnclaveCertificateIamRoleRequest

    See

    AWSEC2AssociateEnclaveCertificateIamRoleResult

    Declaration

    Objective-C

    - (id)associateEnclaveCertificateIamRole:
        (nonnull AWSEC2AssociateEnclaveCertificateIamRoleRequest *)request;

    Swift

    func associateEnclaveCertificateIamRole(_ request: AWSEC2AssociateEnclaveCertificateIamRoleRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateEnclaveCertificateIamRole service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateEnclaveCertificateIamRoleResult.

  • Associates an Identity and Access Management (IAM) role with an Certificate Manager (ACM) certificate. This enables the certificate to be used by the ACM for Nitro Enclaves application inside an enclave. For more information, see Certificate Manager for Nitro Enclaves in the Amazon Web Services Nitro Enclaves User Guide.

    When the IAM role is associated with the ACM certificate, the certificate, certificate chain, and encrypted private key are placed in an Amazon S3 location that only the associated IAM role can access. The private key of the certificate is encrypted with an Amazon Web Services managed key that has an attached attestation-based key policy.

    To enable the IAM role to access the Amazon S3 object, you must grant it permission to call s3:GetObject on the Amazon S3 bucket returned by the command. To enable the IAM role to access the KMS key, you must grant it permission to call kms:Decrypt on the KMS key returned by the command. For more information, see Grant the role permission to access the certificate and encryption key in the Amazon Web Services Nitro Enclaves User Guide.

    See

    AWSEC2AssociateEnclaveCertificateIamRoleRequest

    See

    AWSEC2AssociateEnclaveCertificateIamRoleResult

    Declaration

    Objective-C

    - (void)associateEnclaveCertificateIamRole:
                (nonnull AWSEC2AssociateEnclaveCertificateIamRoleRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2AssociateEnclaveCertificateIamRoleResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func associateEnclaveCertificateIamRole(_ request: AWSEC2AssociateEnclaveCertificateIamRoleRequest) async throws -> AWSEC2AssociateEnclaveCertificateIamRoleResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateEnclaveCertificateIamRole service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.

    See

    AWSEC2AssociateIamInstanceProfileRequest

    See

    AWSEC2AssociateIamInstanceProfileResult

    Declaration

    Objective-C

    - (id)associateIamInstanceProfile:
        (nonnull AWSEC2AssociateIamInstanceProfileRequest *)request;

    Swift

    func associateIamInstanceProfile(_ request: AWSEC2AssociateIamInstanceProfileRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateIamInstanceProfile service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateIamInstanceProfileResult.

  • Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.

    See

    AWSEC2AssociateIamInstanceProfileRequest

    See

    AWSEC2AssociateIamInstanceProfileResult

    Declaration

    Objective-C

    - (void)associateIamInstanceProfile:
                (nonnull AWSEC2AssociateIamInstanceProfileRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2AssociateIamInstanceProfileResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func associateIamInstanceProfile(_ request: AWSEC2AssociateIamInstanceProfileRequest) async throws -> AWSEC2AssociateIamInstanceProfileResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateIamInstanceProfile service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates one or more targets with an event window. Only one type of target (instance IDs, Dedicated Host IDs, or tags) can be specified with an event window.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2AssociateInstanceEventWindowRequest

    See

    AWSEC2AssociateInstanceEventWindowResult

    Declaration

    Objective-C

    - (id)associateInstanceEventWindow:
        (nonnull AWSEC2AssociateInstanceEventWindowRequest *)request;

    Swift

    func associateInstanceEventWindow(_ request: AWSEC2AssociateInstanceEventWindowRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateInstanceEventWindow service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateInstanceEventWindowResult.

  • Associates one or more targets with an event window. Only one type of target (instance IDs, Dedicated Host IDs, or tags) can be specified with an event window.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2AssociateInstanceEventWindowRequest

    See

    AWSEC2AssociateInstanceEventWindowResult

    Declaration

    Objective-C

    - (void)associateInstanceEventWindow:
                (nonnull AWSEC2AssociateInstanceEventWindowRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2AssociateInstanceEventWindowResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func associateInstanceEventWindow(_ request: AWSEC2AssociateInstanceEventWindowRequest) async throws -> AWSEC2AssociateInstanceEventWindowResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateInstanceEventWindow service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own in the same Amazon Web Services Region. For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

    After the association succeeds, the ASN is eligible for advertisement. You can view the association with DescribeByoipCidrs. You can advertise the CIDR with AdvertiseByoipCidr.

    See

    AWSEC2AssociateIpamByoasnRequest

    See

    AWSEC2AssociateIpamByoasnResult

    Declaration

    Objective-C

    - (id)associateIpamByoasn:(nonnull AWSEC2AssociateIpamByoasnRequest *)request;

    Swift

    func associateIpamByoasn(_ request: AWSEC2AssociateIpamByoasnRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateIpamByoasn service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateIpamByoasnResult.

  • Associates your Autonomous System Number (ASN) with a BYOIP CIDR that you own in the same Amazon Web Services Region. For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

    After the association succeeds, the ASN is eligible for advertisement. You can view the association with DescribeByoipCidrs. You can advertise the CIDR with AdvertiseByoipCidr.

    See

    AWSEC2AssociateIpamByoasnRequest

    See

    AWSEC2AssociateIpamByoasnResult

    Declaration

    Objective-C

    - (void)associateIpamByoasn:(nonnull AWSEC2AssociateIpamByoasnRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2AssociateIpamByoasnResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func associateIpamByoasn(_ request: AWSEC2AssociateIpamByoasnRequest) async throws -> AWSEC2AssociateIpamByoasnResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateIpamByoasn service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates an IPAM resource discovery with an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2AssociateIpamResourceDiscoveryRequest

    See

    AWSEC2AssociateIpamResourceDiscoveryResult

    Declaration

    Objective-C

    - (id)associateIpamResourceDiscovery:
        (nonnull AWSEC2AssociateIpamResourceDiscoveryRequest *)request;

    Swift

    func associateIpamResourceDiscovery(_ request: AWSEC2AssociateIpamResourceDiscoveryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateIpamResourceDiscovery service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateIpamResourceDiscoveryResult.

  • Associates an IPAM resource discovery with an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2AssociateIpamResourceDiscoveryRequest

    See

    AWSEC2AssociateIpamResourceDiscoveryResult

    Declaration

    Objective-C

    - (void)
        associateIpamResourceDiscovery:
            (nonnull AWSEC2AssociateIpamResourceDiscoveryRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2AssociateIpamResourceDiscoveryResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func associateIpamResourceDiscovery(_ request: AWSEC2AssociateIpamResourceDiscoveryRequest) async throws -> AWSEC2AssociateIpamResourceDiscoveryResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateIpamResourceDiscovery service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway. For more information, see Work with NAT gateways in the Amazon VPC User Guide.

    By default, you can associate up to 2 Elastic IP addresses per public NAT gateway. You can increase the limit by requesting a quota adjustment. For more information, see Elastic IP address quotas in the Amazon VPC User Guide.

    When you associate an EIP or secondary EIPs with a public NAT gateway, the network border group of the EIPs must match the network border group of the Availability Zone (AZ) that the public NAT gateway is in. If it’s not the same, the EIP will fail to associate. You can see the network border group for the subnet’s AZ by viewing the details of the subnet. Similarly, you can view the network border group of an EIP by viewing the details of the EIP address. For more information about network border groups and EIPs, see Allocate an Elastic IP address in the Amazon VPC User Guide.

    See

    AWSEC2AssociateNatGatewayAddressRequest

    See

    AWSEC2AssociateNatGatewayAddressResult

    Declaration

    Objective-C

    - (id)associateNatGatewayAddress:
        (nonnull AWSEC2AssociateNatGatewayAddressRequest *)request;

    Swift

    func associateNatGatewayAddress(_ request: AWSEC2AssociateNatGatewayAddressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateNatGatewayAddress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateNatGatewayAddressResult.

  • Associates Elastic IP addresses (EIPs) and private IPv4 addresses with a public NAT gateway. For more information, see Work with NAT gateways in the Amazon VPC User Guide.

    By default, you can associate up to 2 Elastic IP addresses per public NAT gateway. You can increase the limit by requesting a quota adjustment. For more information, see Elastic IP address quotas in the Amazon VPC User Guide.

    When you associate an EIP or secondary EIPs with a public NAT gateway, the network border group of the EIPs must match the network border group of the Availability Zone (AZ) that the public NAT gateway is in. If it’s not the same, the EIP will fail to associate. You can see the network border group for the subnet’s AZ by viewing the details of the subnet. Similarly, you can view the network border group of an EIP by viewing the details of the EIP address. For more information about network border groups and EIPs, see Allocate an Elastic IP address in the Amazon VPC User Guide.

    See

    AWSEC2AssociateNatGatewayAddressRequest

    See

    AWSEC2AssociateNatGatewayAddressResult

    Declaration

    Objective-C

    - (void)associateNatGatewayAddress:
                (nonnull AWSEC2AssociateNatGatewayAddressRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2AssociateNatGatewayAddressResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func associateNatGatewayAddress(_ request: AWSEC2AssociateNatGatewayAddressRequest) async throws -> AWSEC2AssociateNatGatewayAddressResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateNatGatewayAddress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC. This association causes traffic from the subnet or gateway to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table later. A route table can be associated with multiple subnets.

    For more information, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2AssociateRouteTableRequest

    See

    AWSEC2AssociateRouteTableResult

    Declaration

    Objective-C

    - (id)associateRouteTable:(nonnull AWSEC2AssociateRouteTableRequest *)request;

    Swift

    func associateRouteTable(_ request: AWSEC2AssociateRouteTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateRouteTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateRouteTableResult.

  • Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC. This association causes traffic from the subnet or gateway to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table later. A route table can be associated with multiple subnets.

    For more information, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2AssociateRouteTableRequest

    See

    AWSEC2AssociateRouteTableResult

    Declaration

    Objective-C

    - (void)associateRouteTable:(nonnull AWSEC2AssociateRouteTableRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2AssociateRouteTableResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func associateRouteTable(_ request: AWSEC2AssociateRouteTableRequest) async throws -> AWSEC2AssociateRouteTableResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateRouteTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet.

    See

    AWSEC2AssociateSubnetCidrBlockRequest

    See

    AWSEC2AssociateSubnetCidrBlockResult

    Declaration

    Objective-C

    - (id)associateSubnetCidrBlock:
        (nonnull AWSEC2AssociateSubnetCidrBlockRequest *)request;

    Swift

    func associateSubnetCidrBlock(_ request: AWSEC2AssociateSubnetCidrBlockRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateSubnetCidrBlock service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateSubnetCidrBlockResult.

  • Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet.

    See

    AWSEC2AssociateSubnetCidrBlockRequest

    See

    AWSEC2AssociateSubnetCidrBlockResult

    Declaration

    Objective-C

    - (void)associateSubnetCidrBlock:
                (nonnull AWSEC2AssociateSubnetCidrBlockRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2AssociateSubnetCidrBlockResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func associateSubnetCidrBlock(_ request: AWSEC2AssociateSubnetCidrBlockRequest) async throws -> AWSEC2AssociateSubnetCidrBlockResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateSubnetCidrBlock service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain.

    The transit gateway attachment must be in the available state before you can add a resource. Use DescribeTransitGatewayAttachments to see the state of the attachment.

    See

    AWSEC2AssociateTransitGatewayMulticastDomainRequest

    See

    AWSEC2AssociateTransitGatewayMulticastDomainResult

    Declaration

    Objective-C

    - (id)associateTransitGatewayMulticastDomain:
        (nonnull AWSEC2AssociateTransitGatewayMulticastDomainRequest *)request;

    Swift

    func associateTransitGatewayMulticastDomain(_ request: AWSEC2AssociateTransitGatewayMulticastDomainRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateTransitGatewayMulticastDomain service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateTransitGatewayMulticastDomainResult.

  • Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain.

    The transit gateway attachment must be in the available state before you can add a resource. Use DescribeTransitGatewayAttachments to see the state of the attachment.

    See

    AWSEC2AssociateTransitGatewayMulticastDomainRequest

    See

    AWSEC2AssociateTransitGatewayMulticastDomainResult

    Declaration

    Objective-C

    - (void)
        associateTransitGatewayMulticastDomain:
            (nonnull AWSEC2AssociateTransitGatewayMulticastDomainRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2AssociateTransitGatewayMulticastDomainResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func associateTransitGatewayMulticastDomain(_ request: AWSEC2AssociateTransitGatewayMulticastDomainRequest) async throws -> AWSEC2AssociateTransitGatewayMulticastDomainResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateTransitGatewayMulticastDomain service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates the specified transit gateway attachment with a transit gateway policy table.

    See

    AWSEC2AssociateTransitGatewayPolicyTableRequest

    See

    AWSEC2AssociateTransitGatewayPolicyTableResult

    Declaration

    Objective-C

    - (id)associateTransitGatewayPolicyTable:
        (nonnull AWSEC2AssociateTransitGatewayPolicyTableRequest *)request;

    Swift

    func associateTransitGatewayPolicyTable(_ request: AWSEC2AssociateTransitGatewayPolicyTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateTransitGatewayPolicyTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateTransitGatewayPolicyTableResult.

  • Associates the specified transit gateway attachment with a transit gateway policy table.

    See

    AWSEC2AssociateTransitGatewayPolicyTableRequest

    See

    AWSEC2AssociateTransitGatewayPolicyTableResult

    Declaration

    Objective-C

    - (void)associateTransitGatewayPolicyTable:
                (nonnull AWSEC2AssociateTransitGatewayPolicyTableRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2AssociateTransitGatewayPolicyTableResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func associateTransitGatewayPolicyTable(_ request: AWSEC2AssociateTransitGatewayPolicyTableRequest) async throws -> AWSEC2AssociateTransitGatewayPolicyTableResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateTransitGatewayPolicyTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates the specified attachment with the specified transit gateway route table. You can associate only one route table with an attachment.

    See

    AWSEC2AssociateTransitGatewayRouteTableRequest

    See

    AWSEC2AssociateTransitGatewayRouteTableResult

    Declaration

    Objective-C

    - (id)associateTransitGatewayRouteTable:
        (nonnull AWSEC2AssociateTransitGatewayRouteTableRequest *)request;

    Swift

    func associateTransitGatewayRouteTable(_ request: AWSEC2AssociateTransitGatewayRouteTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateTransitGatewayRouteTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateTransitGatewayRouteTableResult.

  • Associates the specified attachment with the specified transit gateway route table. You can associate only one route table with an attachment.

    See

    AWSEC2AssociateTransitGatewayRouteTableRequest

    See

    AWSEC2AssociateTransitGatewayRouteTableResult

    Declaration

    Objective-C

    - (void)associateTransitGatewayRouteTable:
                (nonnull AWSEC2AssociateTransitGatewayRouteTableRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2AssociateTransitGatewayRouteTableResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func associateTransitGatewayRouteTable(_ request: AWSEC2AssociateTransitGatewayRouteTableRequest) async throws -> AWSEC2AssociateTransitGatewayRouteTableResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateTransitGatewayRouteTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates a branch network interface with a trunk network interface.

    Before you create the association, use CreateNetworkInterface command and set the interface type to trunk. You must also create a network interface for each branch network interface that you want to associate with the trunk network interface.

    See

    AWSEC2AssociateTrunkInterfaceRequest

    See

    AWSEC2AssociateTrunkInterfaceResult

    Declaration

    Objective-C

    - (id)associateTrunkInterface:
        (nonnull AWSEC2AssociateTrunkInterfaceRequest *)request;

    Swift

    func associateTrunkInterface(_ request: AWSEC2AssociateTrunkInterfaceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateTrunkInterface service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateTrunkInterfaceResult.

  • Associates a branch network interface with a trunk network interface.

    Before you create the association, use CreateNetworkInterface command and set the interface type to trunk. You must also create a network interface for each branch network interface that you want to associate with the trunk network interface.

    See

    AWSEC2AssociateTrunkInterfaceRequest

    See

    AWSEC2AssociateTrunkInterfaceResult

    Declaration

    Objective-C

    - (void)
        associateTrunkInterface:
            (nonnull AWSEC2AssociateTrunkInterfaceRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2AssociateTrunkInterfaceResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func associateTrunkInterface(_ request: AWSEC2AssociateTrunkInterfaceRequest) async throws -> AWSEC2AssociateTrunkInterfaceResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateTrunkInterface service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).

    You must specify one of the following in the request: an IPv4 CIDR block, an IPv6 pool, or an Amazon-provided IPv6 CIDR block.

    For more information about associating CIDR blocks with your VPC and applicable restrictions, see IP addressing for your VPCs and subnets in the Amazon VPC User Guide.

    See

    AWSEC2AssociateVpcCidrBlockRequest

    See

    AWSEC2AssociateVpcCidrBlockResult

    Declaration

    Objective-C

    - (id)associateVpcCidrBlock:
        (nonnull AWSEC2AssociateVpcCidrBlockRequest *)request;

    Swift

    func associateVpcCidrBlock(_ request: AWSEC2AssociateVpcCidrBlockRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AssociateVpcCidrBlock service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AssociateVpcCidrBlockResult.

  • Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).

    You must specify one of the following in the request: an IPv4 CIDR block, an IPv6 pool, or an Amazon-provided IPv6 CIDR block.

    For more information about associating CIDR blocks with your VPC and applicable restrictions, see IP addressing for your VPCs and subnets in the Amazon VPC User Guide.

    See

    AWSEC2AssociateVpcCidrBlockRequest

    See

    AWSEC2AssociateVpcCidrBlockResult

    Declaration

    Objective-C

    - (void)associateVpcCidrBlock:
                (nonnull AWSEC2AssociateVpcCidrBlockRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2AssociateVpcCidrBlockResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func associateVpcCidrBlock(_ request: AWSEC2AssociateVpcCidrBlockRequest) async throws -> AWSEC2AssociateVpcCidrBlockResult

    Parameters

    request

    A container for the necessary parameters to execute the AssociateVpcCidrBlock service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that’s in the running state. An instance is automatically unlinked from a VPC when it’s stopped - you can link it to the VPC again when you restart it.

    After you’ve linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again.

    Linking your instance to a VPC is sometimes referred to as attaching your instance.

    See

    AWSEC2AttachClassicLinkVpcRequest

    See

    AWSEC2AttachClassicLinkVpcResult

    Declaration

    Objective-C

    - (id)attachClassicLinkVpc:(nonnull AWSEC2AttachClassicLinkVpcRequest *)request;

    Swift

    func attachClassicLinkVpc(_ request: AWSEC2AttachClassicLinkVpcRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AttachClassicLinkVpc service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AttachClassicLinkVpcResult.

  • This action is deprecated.

    Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that’s in the running state. An instance is automatically unlinked from a VPC when it’s stopped - you can link it to the VPC again when you restart it.

    After you’ve linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again.

    Linking your instance to a VPC is sometimes referred to as attaching your instance.

    See

    AWSEC2AttachClassicLinkVpcRequest

    See

    AWSEC2AttachClassicLinkVpcResult

    Declaration

    Objective-C

    - (void)attachClassicLinkVpc:
                (nonnull AWSEC2AttachClassicLinkVpcRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2AttachClassicLinkVpcResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func attachClassicLinkVpc(_ request: AWSEC2AttachClassicLinkVpcRequest) async throws -> AWSEC2AttachClassicLinkVpcResult

    Parameters

    request

    A container for the necessary parameters to execute the AttachClassicLinkVpc service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. For more information, see Internet gateways in the Amazon VPC User Guide.

    See

    AWSEC2AttachInternetGatewayRequest

    Declaration

    Objective-C

    - (id)attachInternetGateway:
        (nonnull AWSEC2AttachInternetGatewayRequest *)request;

    Swift

    func attachInternetGateway(_ request: AWSEC2AttachInternetGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AttachInternetGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. For more information, see Internet gateways in the Amazon VPC User Guide.

    See

    AWSEC2AttachInternetGatewayRequest

    Declaration

    Objective-C

    - (void)attachInternetGateway:
                (nonnull AWSEC2AttachInternetGatewayRequest *)request
                completionHandler:
                    (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func attachInternetGateway(_ request: AWSEC2AttachInternetGatewayRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the AttachInternetGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Attaches a network interface to an instance.

    See

    AWSEC2AttachNetworkInterfaceRequest

    See

    AWSEC2AttachNetworkInterfaceResult

    Declaration

    Objective-C

    - (id)attachNetworkInterface:
        (nonnull AWSEC2AttachNetworkInterfaceRequest *)request;

    Swift

    func attachNetworkInterface(_ request: AWSEC2AttachNetworkInterfaceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AttachNetworkInterface service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AttachNetworkInterfaceResult.

  • Attaches a network interface to an instance.

    See

    AWSEC2AttachNetworkInterfaceRequest

    See

    AWSEC2AttachNetworkInterfaceResult

    Declaration

    Objective-C

    - (void)
        attachNetworkInterface:
            (nonnull AWSEC2AttachNetworkInterfaceRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2AttachNetworkInterfaceResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func attachNetworkInterface(_ request: AWSEC2AttachNetworkInterfaceRequest) async throws -> AWSEC2AttachNetworkInterfaceResult

    Parameters

    request

    A container for the necessary parameters to execute the AttachNetworkInterface service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Attaches the specified Amazon Web Services Verified Access trust provider to the specified Amazon Web Services Verified Access instance.

    See

    AWSEC2AttachVerifiedAccessTrustProviderRequest

    See

    AWSEC2AttachVerifiedAccessTrustProviderResult

    Declaration

    Objective-C

    - (id)attachVerifiedAccessTrustProvider:
        (nonnull AWSEC2AttachVerifiedAccessTrustProviderRequest *)request;

    Swift

    func attachVerifiedAccessTrustProvider(_ request: AWSEC2AttachVerifiedAccessTrustProviderRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AttachVerifiedAccessTrustProvider service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AttachVerifiedAccessTrustProviderResult.

  • Attaches the specified Amazon Web Services Verified Access trust provider to the specified Amazon Web Services Verified Access instance.

    See

    AWSEC2AttachVerifiedAccessTrustProviderRequest

    See

    AWSEC2AttachVerifiedAccessTrustProviderResult

    Declaration

    Objective-C

    - (void)attachVerifiedAccessTrustProvider:
                (nonnull AWSEC2AttachVerifiedAccessTrustProviderRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2AttachVerifiedAccessTrustProviderResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func attachVerifiedAccessTrustProvider(_ request: AWSEC2AttachVerifiedAccessTrustProviderRequest) async throws -> AWSEC2AttachVerifiedAccessTrustProviderResult

    Parameters

    request

    A container for the necessary parameters to execute the AttachVerifiedAccessTrustProvider service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.

    Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    After you attach an EBS volume, you must make it available. For more information, see Make an EBS volume available for use.

    If a volume has an Amazon Web Services Marketplace product code:

    • The volume can be attached only to a stopped instance.

    • Amazon Web Services Marketplace product codes are copied from the volume to the instance.

    • You must be subscribed to the product.

    • The instance type and operating system of the instance must support the product. For example, you can’t detach a volume from a Windows instance and attach it to a Linux instance.

    For more information, see Attach an Amazon EBS volume to an instance in the Amazon EBS User Guide.

    See

    AWSEC2AttachVolumeRequest

    See

    AWSEC2VolumeAttachment

    Declaration

    Objective-C

    - (id)attachVolume:(nonnull AWSEC2AttachVolumeRequest *)request;

    Swift

    func attachVolume(_ request: AWSEC2AttachVolumeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AttachVolume service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2VolumeAttachment.

  • Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.

    Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    After you attach an EBS volume, you must make it available. For more information, see Make an EBS volume available for use.

    If a volume has an Amazon Web Services Marketplace product code:

    • The volume can be attached only to a stopped instance.

    • Amazon Web Services Marketplace product codes are copied from the volume to the instance.

    • You must be subscribed to the product.

    • The instance type and operating system of the instance must support the product. For example, you can’t detach a volume from a Windows instance and attach it to a Linux instance.

    For more information, see Attach an Amazon EBS volume to an instance in the Amazon EBS User Guide.

    See

    AWSEC2AttachVolumeRequest

    See

    AWSEC2VolumeAttachment

    Declaration

    Objective-C

    - (void)attachVolume:(nonnull AWSEC2AttachVolumeRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2VolumeAttachment *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func attachVolume(_ request: AWSEC2AttachVolumeRequest) async throws -> AWSEC2VolumeAttachment

    Parameters

    request

    A container for the necessary parameters to execute the AttachVolume service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2AttachVpnGatewayRequest

    See

    AWSEC2AttachVpnGatewayResult

    Declaration

    Objective-C

    - (id)attachVpnGateway:(nonnull AWSEC2AttachVpnGatewayRequest *)request;

    Swift

    func attachVpnGateway(_ request: AWSEC2AttachVpnGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AttachVpnGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AttachVpnGatewayResult.

  • Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2AttachVpnGatewayRequest

    See

    AWSEC2AttachVpnGatewayResult

    Declaration

    Objective-C

    - (void)attachVpnGateway:(nonnull AWSEC2AttachVpnGatewayRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2AttachVpnGatewayResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func attachVpnGateway(_ request: AWSEC2AttachVpnGatewayRequest) async throws -> AWSEC2AttachVpnGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the AttachVpnGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization rules act as firewall rules that grant access to networks. You must configure ingress authorization rules to enable clients to access resources in Amazon Web Services or on-premises networks.

    See

    AWSEC2AuthorizeClientVpnIngressRequest

    See

    AWSEC2AuthorizeClientVpnIngressResult

    Declaration

    Objective-C

    - (id)authorizeClientVpnIngress:
        (nonnull AWSEC2AuthorizeClientVpnIngressRequest *)request;

    Swift

    func authorizeClientVpnIngress(_ request: AWSEC2AuthorizeClientVpnIngressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AuthorizeClientVpnIngress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AuthorizeClientVpnIngressResult.

  • Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization rules act as firewall rules that grant access to networks. You must configure ingress authorization rules to enable clients to access resources in Amazon Web Services or on-premises networks.

    See

    AWSEC2AuthorizeClientVpnIngressRequest

    See

    AWSEC2AuthorizeClientVpnIngressResult

    Declaration

    Objective-C

    - (void)authorizeClientVpnIngress:
                (nonnull AWSEC2AuthorizeClientVpnIngressRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2AuthorizeClientVpnIngressResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func authorizeClientVpnIngress(_ request: AWSEC2AuthorizeClientVpnIngressRequest) async throws -> AWSEC2AuthorizeClientVpnIngressResult

    Parameters

    request

    A container for the necessary parameters to execute the AuthorizeClientVpnIngress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Adds the specified outbound (egress) rules to a security group.

    An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 address ranges, the IP address ranges specified by a prefix list, or the instances that are associated with a source security group. For more information, see Security group rules.

    You must specify exactly one of the following destinations: an IPv4 or IPv6 address range, a prefix list, or a security group. You must specify a protocol for each rule (for example, TCP). If the protocol is TCP or UDP, you must also specify a port or port range. If the protocol is ICMP or ICMPv6, you must also specify the ICMP type and code.

    Rule changes are propagated to instances associated with the security group as quickly as possible. However, a small delay might occur.

    For examples of rules that you can add to security groups for specific access scenarios, see Security group rules for different use cases in the Amazon EC2 User Guide.

    For information about security group quotas, see Amazon VPC quotas in the Amazon VPC User Guide.

    See

    AWSEC2AuthorizeSecurityGroupEgressRequest

    See

    AWSEC2AuthorizeSecurityGroupEgressResult

    Declaration

    Objective-C

    - (id)authorizeSecurityGroupEgress:
        (nonnull AWSEC2AuthorizeSecurityGroupEgressRequest *)request;

    Swift

    func authorizeSecurityGroupEgress(_ request: AWSEC2AuthorizeSecurityGroupEgressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AuthorizeSecurityGroupEgress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AuthorizeSecurityGroupEgressResult.

  • Adds the specified outbound (egress) rules to a security group.

    An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 address ranges, the IP address ranges specified by a prefix list, or the instances that are associated with a source security group. For more information, see Security group rules.

    You must specify exactly one of the following destinations: an IPv4 or IPv6 address range, a prefix list, or a security group. You must specify a protocol for each rule (for example, TCP). If the protocol is TCP or UDP, you must also specify a port or port range. If the protocol is ICMP or ICMPv6, you must also specify the ICMP type and code.

    Rule changes are propagated to instances associated with the security group as quickly as possible. However, a small delay might occur.

    For examples of rules that you can add to security groups for specific access scenarios, see Security group rules for different use cases in the Amazon EC2 User Guide.

    For information about security group quotas, see Amazon VPC quotas in the Amazon VPC User Guide.

    See

    AWSEC2AuthorizeSecurityGroupEgressRequest

    See

    AWSEC2AuthorizeSecurityGroupEgressResult

    Declaration

    Objective-C

    - (void)authorizeSecurityGroupEgress:
                (nonnull AWSEC2AuthorizeSecurityGroupEgressRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2AuthorizeSecurityGroupEgressResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func authorizeSecurityGroupEgress(_ request: AWSEC2AuthorizeSecurityGroupEgressRequest) async throws -> AWSEC2AuthorizeSecurityGroupEgressResult

    Parameters

    request

    A container for the necessary parameters to execute the AuthorizeSecurityGroupEgress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Adds the specified inbound (ingress) rules to a security group.

    An inbound rule permits instances to receive traffic from the specified IPv4 or IPv6 address range, the IP address ranges that are specified by a prefix list, or the instances that are associated with a destination security group. For more information, see Security group rules.

    You must specify exactly one of the following sources: an IPv4 or IPv6 address range, a prefix list, or a security group. You must specify a protocol for each rule (for example, TCP). If the protocol is TCP or UDP, you must also specify a port or port range. If the protocol is ICMP or ICMPv6, you must also specify the ICMP/ICMPv6 type and code.

    Rule changes are propagated to instances associated with the security group as quickly as possible. However, a small delay might occur.

    For examples of rules that you can add to security groups for specific access scenarios, see Security group rules for different use cases in the Amazon EC2 User Guide.

    For more information about security group quotas, see Amazon VPC quotas in the Amazon VPC User Guide.

    See

    AWSEC2AuthorizeSecurityGroupIngressRequest

    See

    AWSEC2AuthorizeSecurityGroupIngressResult

    Declaration

    Objective-C

    - (id)authorizeSecurityGroupIngress:
        (nonnull AWSEC2AuthorizeSecurityGroupIngressRequest *)request;

    Swift

    func authorizeSecurityGroupIngress(_ request: AWSEC2AuthorizeSecurityGroupIngressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the AuthorizeSecurityGroupIngress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2AuthorizeSecurityGroupIngressResult.

  • Adds the specified inbound (ingress) rules to a security group.

    An inbound rule permits instances to receive traffic from the specified IPv4 or IPv6 address range, the IP address ranges that are specified by a prefix list, or the instances that are associated with a destination security group. For more information, see Security group rules.

    You must specify exactly one of the following sources: an IPv4 or IPv6 address range, a prefix list, or a security group. You must specify a protocol for each rule (for example, TCP). If the protocol is TCP or UDP, you must also specify a port or port range. If the protocol is ICMP or ICMPv6, you must also specify the ICMP/ICMPv6 type and code.

    Rule changes are propagated to instances associated with the security group as quickly as possible. However, a small delay might occur.

    For examples of rules that you can add to security groups for specific access scenarios, see Security group rules for different use cases in the Amazon EC2 User Guide.

    For more information about security group quotas, see Amazon VPC quotas in the Amazon VPC User Guide.

    See

    AWSEC2AuthorizeSecurityGroupIngressRequest

    See

    AWSEC2AuthorizeSecurityGroupIngressResult

    Declaration

    Objective-C

    - (void)
        authorizeSecurityGroupIngress:
            (nonnull AWSEC2AuthorizeSecurityGroupIngressRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2AuthorizeSecurityGroupIngressResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func authorizeSecurityGroupIngress(_ request: AWSEC2AuthorizeSecurityGroupIngressRequest) async throws -> AWSEC2AuthorizeSecurityGroupIngressResult

    Parameters

    request

    A container for the necessary parameters to execute the AuthorizeSecurityGroupIngress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Bundles an Amazon instance store-backed Windows instance.

    During bundling, only the root device volume (C:) is bundled. Data on other instance store volumes is not preserved.

    This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

    See

    AWSEC2BundleInstanceRequest

    See

    AWSEC2BundleInstanceResult

    Declaration

    Objective-C

    - (id)bundleInstance:(nonnull AWSEC2BundleInstanceRequest *)request;

    Swift

    func bundleInstance(_ request: AWSEC2BundleInstanceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the BundleInstance service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2BundleInstanceResult.

  • Bundles an Amazon instance store-backed Windows instance.

    During bundling, only the root device volume (C:) is bundled. Data on other instance store volumes is not preserved.

    This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.

    See

    AWSEC2BundleInstanceRequest

    See

    AWSEC2BundleInstanceResult

    Declaration

    Objective-C

    - (void)bundleInstance:(nonnull AWSEC2BundleInstanceRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2BundleInstanceResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func bundleInstance(_ request: AWSEC2BundleInstanceRequest) async throws -> AWSEC2BundleInstanceResult

    Parameters

    request

    A container for the necessary parameters to execute the BundleInstance service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Cancels a bundling operation for an instance store-backed Windows instance.

    See

    AWSEC2CancelBundleTaskRequest

    See

    AWSEC2CancelBundleTaskResult

    Declaration

    Objective-C

    - (id)cancelBundleTask:(nonnull AWSEC2CancelBundleTaskRequest *)request;

    Swift

    func cancelBundleTask(_ request: AWSEC2CancelBundleTaskRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CancelBundleTask service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CancelBundleTaskResult.

  • Cancels a bundling operation for an instance store-backed Windows instance.

    See

    AWSEC2CancelBundleTaskRequest

    See

    AWSEC2CancelBundleTaskResult

    Declaration

    Objective-C

    - (void)cancelBundleTask:(nonnull AWSEC2CancelBundleTaskRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2CancelBundleTaskResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func cancelBundleTask(_ request: AWSEC2CancelBundleTaskRequest) async throws -> AWSEC2CancelBundleTaskResult

    Parameters

    request

    A container for the necessary parameters to execute the CancelBundleTask service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation’s state to cancelled.

    Instances running in the reserved capacity continue running until you stop them. Stopped instances that target the Capacity Reservation can no longer launch. Modify these instances to either target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation that has matching attributes and sufficient capacity.

    See

    AWSEC2CancelCapacityReservationRequest

    See

    AWSEC2CancelCapacityReservationResult

    Declaration

    Objective-C

    - (id)cancelCapacityReservation:
        (nonnull AWSEC2CancelCapacityReservationRequest *)request;

    Swift

    func cancelCapacityReservation(_ request: AWSEC2CancelCapacityReservationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CancelCapacityReservation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CancelCapacityReservationResult.

  • Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation’s state to cancelled.

    Instances running in the reserved capacity continue running until you stop them. Stopped instances that target the Capacity Reservation can no longer launch. Modify these instances to either target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation that has matching attributes and sufficient capacity.

    See

    AWSEC2CancelCapacityReservationRequest

    See

    AWSEC2CancelCapacityReservationResult

    Declaration

    Objective-C

    - (void)cancelCapacityReservation:
                (nonnull AWSEC2CancelCapacityReservationRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2CancelCapacityReservationResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func cancelCapacityReservation(_ request: AWSEC2CancelCapacityReservationRequest) async throws -> AWSEC2CancelCapacityReservationResult

    Parameters

    request

    A container for the necessary parameters to execute the CancelCapacityReservation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity Reservation Fleet, the following happens:

    • The Capacity Reservation Fleet’s status changes to cancelled.

    • The individual Capacity Reservations in the Fleet are cancelled. Instances running in the Capacity Reservations at the time of cancelling the Fleet continue to run in shared capacity.

    • The Fleet stops creating new Capacity Reservations.

    See

    AWSEC2CancelCapacityReservationFleetsRequest

    See

    AWSEC2CancelCapacityReservationFleetsResult

    Declaration

    Objective-C

    - (id)cancelCapacityReservationFleets:
        (nonnull AWSEC2CancelCapacityReservationFleetsRequest *)request;

    Swift

    func cancelCapacityReservationFleets(_ request: AWSEC2CancelCapacityReservationFleetsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CancelCapacityReservationFleets service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CancelCapacityReservationFleetsResult.

  • Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity Reservation Fleet, the following happens:

    • The Capacity Reservation Fleet’s status changes to cancelled.

    • The individual Capacity Reservations in the Fleet are cancelled. Instances running in the Capacity Reservations at the time of cancelling the Fleet continue to run in shared capacity.

    • The Fleet stops creating new Capacity Reservations.

    See

    AWSEC2CancelCapacityReservationFleetsRequest

    See

    AWSEC2CancelCapacityReservationFleetsResult

    Declaration

    Objective-C

    - (void)cancelCapacityReservationFleets:
                (nonnull AWSEC2CancelCapacityReservationFleetsRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2CancelCapacityReservationFleetsResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func cancelCapacityReservationFleets(_ request: AWSEC2CancelCapacityReservationFleetsRequest) async throws -> AWSEC2CancelCapacityReservationFleetsResult

    Parameters

    request

    A container for the necessary parameters to execute the CancelCapacityReservationFleets service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.

    For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.

    See

    AWSEC2CancelConversionRequest

    Declaration

    Objective-C

    - (id)cancelConversionTask:(nonnull AWSEC2CancelConversionRequest *)request;

    Swift

    func cancelConversionTask(_ request: AWSEC2CancelConversionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CancelConversionTask service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.

    For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.

    See

    AWSEC2CancelConversionRequest

    Declaration

    Objective-C

    - (void)cancelConversionTask:(nonnull AWSEC2CancelConversionRequest *)request
               completionHandler:
                   (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func cancelConversionTask(_ request: AWSEC2CancelConversionRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the CancelConversionTask service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.

    See

    AWSEC2CancelExportTaskRequest

    Declaration

    Objective-C

    - (id)cancelExportTask:(nonnull AWSEC2CancelExportTaskRequest *)request;

    Swift

    func cancelExportTask(_ request: AWSEC2CancelExportTaskRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CancelExportTask service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.

    See

    AWSEC2CancelExportTaskRequest

    Declaration

    Objective-C

    - (void)cancelExportTask:(nonnull AWSEC2CancelExportTaskRequest *)request
           completionHandler:
               (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func cancelExportTask(_ request: AWSEC2CancelExportTaskRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the CancelExportTask service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more information, see Cancel having an AMI shared with your Amazon Web Services account in the Amazon EC2 User Guide.

    See

    AWSEC2CancelImageLaunchPermissionRequest

    See

    AWSEC2CancelImageLaunchPermissionResult

    Declaration

    Objective-C

    - (id)cancelImageLaunchPermission:
        (nonnull AWSEC2CancelImageLaunchPermissionRequest *)request;

    Swift

    func cancelImageLaunchPermission(_ request: AWSEC2CancelImageLaunchPermissionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CancelImageLaunchPermission service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CancelImageLaunchPermissionResult.

  • Removes your Amazon Web Services account from the launch permissions for the specified AMI. For more information, see Cancel having an AMI shared with your Amazon Web Services account in the Amazon EC2 User Guide.

    See

    AWSEC2CancelImageLaunchPermissionRequest

    See

    AWSEC2CancelImageLaunchPermissionResult

    Declaration

    Objective-C

    - (void)cancelImageLaunchPermission:
                (nonnull AWSEC2CancelImageLaunchPermissionRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2CancelImageLaunchPermissionResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func cancelImageLaunchPermission(_ request: AWSEC2CancelImageLaunchPermissionRequest) async throws -> AWSEC2CancelImageLaunchPermissionResult

    Parameters

    request

    A container for the necessary parameters to execute the CancelImageLaunchPermission service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Cancels an in-process import virtual machine or import snapshot task.

    See

    AWSEC2CancelImportTaskRequest

    See

    AWSEC2CancelImportTaskResult

    Declaration

    Objective-C

    - (id)cancelImportTask:(nonnull AWSEC2CancelImportTaskRequest *)request;

    Swift

    func cancelImportTask(_ request: AWSEC2CancelImportTaskRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CancelImportTask service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CancelImportTaskResult.

  • Cancels an in-process import virtual machine or import snapshot task.

    See

    AWSEC2CancelImportTaskRequest

    See

    AWSEC2CancelImportTaskResult

    Declaration

    Objective-C

    - (void)cancelImportTask:(nonnull AWSEC2CancelImportTaskRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2CancelImportTaskResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func cancelImportTask(_ request: AWSEC2CancelImportTaskRequest) async throws -> AWSEC2CancelImportTaskResult

    Parameters

    request

    A container for the necessary parameters to execute the CancelImportTask service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.

    For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

    See

    AWSEC2CancelReservedInstancesListingRequest

    See

    AWSEC2CancelReservedInstancesListingResult

    Declaration

    Objective-C

    - (id)cancelReservedInstancesListing:
        (nonnull AWSEC2CancelReservedInstancesListingRequest *)request;

    Swift

    func cancelReservedInstancesListing(_ request: AWSEC2CancelReservedInstancesListingRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CancelReservedInstancesListing service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CancelReservedInstancesListingResult.

  • Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.

    For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

    See

    AWSEC2CancelReservedInstancesListingRequest

    See

    AWSEC2CancelReservedInstancesListingResult

    Declaration

    Objective-C

    - (void)
        cancelReservedInstancesListing:
            (nonnull AWSEC2CancelReservedInstancesListingRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2CancelReservedInstancesListingResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func cancelReservedInstancesListing(_ request: AWSEC2CancelReservedInstancesListingRequest) async throws -> AWSEC2CancelReservedInstancesListingResult

    Parameters

    request

    A container for the necessary parameters to execute the CancelReservedInstancesListing service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Cancels the specified Spot Fleet requests.

    After you cancel a Spot Fleet request, the Spot Fleet launches no new instances.

    You must also specify whether a canceled Spot Fleet request should terminate its instances. If you choose to terminate the instances, the Spot Fleet request enters the cancelled_terminating state. Otherwise, the Spot Fleet request enters the cancelled_running state and the instances continue to run until they are interrupted or you terminate them manually.

    Restrictions

    • You can delete up to 100 fleets in a single request. If you exceed the specified number, no fleets are deleted.

    See

    AWSEC2CancelSpotFleetRequestsRequest

    See

    AWSEC2CancelSpotFleetRequestsResponse

    Declaration

    Objective-C

    - (id)cancelSpotFleetRequests:
        (nonnull AWSEC2CancelSpotFleetRequestsRequest *)request;

    Swift

    func cancelSpotFleetRequests(_ request: AWSEC2CancelSpotFleetRequestsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CancelSpotFleetRequests service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CancelSpotFleetRequestsResponse.

  • Cancels the specified Spot Fleet requests.

    After you cancel a Spot Fleet request, the Spot Fleet launches no new instances.

    You must also specify whether a canceled Spot Fleet request should terminate its instances. If you choose to terminate the instances, the Spot Fleet request enters the cancelled_terminating state. Otherwise, the Spot Fleet request enters the cancelled_running state and the instances continue to run until they are interrupted or you terminate them manually.

    Restrictions

    • You can delete up to 100 fleets in a single request. If you exceed the specified number, no fleets are deleted.

    See

    AWSEC2CancelSpotFleetRequestsRequest

    See

    AWSEC2CancelSpotFleetRequestsResponse

    Declaration

    Objective-C

    - (void)cancelSpotFleetRequests:
                (nonnull AWSEC2CancelSpotFleetRequestsRequest *)request
                  completionHandler:
                      (void (^_Nullable)(
                          AWSEC2CancelSpotFleetRequestsResponse *_Nullable,
                          NSError *_Nullable))completionHandler;

    Swift

    func cancelSpotFleetRequests(_ request: AWSEC2CancelSpotFleetRequestsRequest) async throws -> AWSEC2CancelSpotFleetRequestsResponse

    Parameters

    request

    A container for the necessary parameters to execute the CancelSpotFleetRequests service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Cancels one or more Spot Instance requests.

    Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.

    See

    AWSEC2CancelSpotInstanceRequestsRequest

    See

    AWSEC2CancelSpotInstanceRequestsResult

    Declaration

    Objective-C

    - (id)cancelSpotInstanceRequests:
        (nonnull AWSEC2CancelSpotInstanceRequestsRequest *)request;

    Swift

    func cancelSpotInstanceRequests(_ request: AWSEC2CancelSpotInstanceRequestsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CancelSpotInstanceRequests service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CancelSpotInstanceRequestsResult.

  • Cancels one or more Spot Instance requests.

    Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.

    See

    AWSEC2CancelSpotInstanceRequestsRequest

    See

    AWSEC2CancelSpotInstanceRequestsResult

    Declaration

    Objective-C

    - (void)cancelSpotInstanceRequests:
                (nonnull AWSEC2CancelSpotInstanceRequestsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2CancelSpotInstanceRequestsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func cancelSpotInstanceRequests(_ request: AWSEC2CancelSpotInstanceRequestsRequest) async throws -> AWSEC2CancelSpotInstanceRequestsResult

    Parameters

    request

    A container for the necessary parameters to execute the CancelSpotInstanceRequests service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner must verify whether another user’s instance is eligible for support.

    See

    AWSEC2ConfirmProductInstanceRequest

    See

    AWSEC2ConfirmProductInstanceResult

    Declaration

    Objective-C

    - (id)confirmProductInstance:
        (nonnull AWSEC2ConfirmProductInstanceRequest *)request;

    Swift

    func confirmProductInstance(_ request: AWSEC2ConfirmProductInstanceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ConfirmProductInstance service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ConfirmProductInstanceResult.

  • Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner must verify whether another user’s instance is eligible for support.

    See

    AWSEC2ConfirmProductInstanceRequest

    See

    AWSEC2ConfirmProductInstanceResult

    Declaration

    Objective-C

    - (void)
        confirmProductInstance:
            (nonnull AWSEC2ConfirmProductInstanceRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2ConfirmProductInstanceResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func confirmProductInstance(_ request: AWSEC2ConfirmProductInstanceRequest) async throws -> AWSEC2ConfirmProductInstanceResult

    Parameters

    request

    A container for the necessary parameters to execute the ConfirmProductInstance service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Copies the specified Amazon FPGA Image (AFI) to the current Region.

    See

    AWSEC2ReplicateFpgaImageRequest

    See

    AWSEC2ReplicateFpgaImageResult

    Declaration

    Objective-C

    - (id)replicateFpgaImage:(nonnull AWSEC2ReplicateFpgaImageRequest *)request;

    Swift

    func replicateFpgaImage(_ request: AWSEC2ReplicateFpgaImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CopyFpgaImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ReplicateFpgaImageResult.

  • Copies the specified Amazon FPGA Image (AFI) to the current Region.

    See

    AWSEC2ReplicateFpgaImageRequest

    See

    AWSEC2ReplicateFpgaImageResult

    Declaration

    Objective-C

    - (void)replicateFpgaImage:(nonnull AWSEC2ReplicateFpgaImageRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2ReplicateFpgaImageResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func replicateFpgaImage(_ request: AWSEC2ReplicateFpgaImageRequest) async throws -> AWSEC2ReplicateFpgaImageResult

    Parameters

    request

    A container for the necessary parameters to execute the CopyFpgaImage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Initiates the copy of an AMI. You can copy an AMI from one Region to another, or from a Region to an Outpost. You can’t copy an AMI from an Outpost to a Region, from one Outpost to another, or within the same Outpost. To copy an AMI to another partition, see CreateStoreImageTask.

    To copy an AMI from one Region to another, specify the source Region using the SourceRegion parameter, and specify the destination Region using its endpoint. Copies of encrypted backing snapshots for the AMI are encrypted. Copies of unencrypted backing snapshots remain unencrypted, unless you set Encrypted during the copy operation. You cannot create an unencrypted copy of an encrypted backing snapshot.

    To copy an AMI from a Region to an Outpost, specify the source Region using the SourceRegion parameter, and specify the ARN of the destination Outpost using DestinationOutpostArn. Backing snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region, or a different key that you specify in the request using KmsKeyId. Outposts do not support unencrypted snapshots. For more information, Amazon EBS local snapshots on Outposts in the Amazon EBS User Guide.

    For more information about the prerequisites and limits when copying an AMI, see Copy an AMI in the Amazon EC2 User Guide.

    See

    AWSEC2ReplicateImageRequest

    See

    AWSEC2ReplicateImageResult

    Declaration

    Objective-C

    - (id)replicateImage:(nonnull AWSEC2ReplicateImageRequest *)request;

    Swift

    func replicateImage(_ request: AWSEC2ReplicateImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CopyImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ReplicateImageResult.

  • Initiates the copy of an AMI. You can copy an AMI from one Region to another, or from a Region to an Outpost. You can’t copy an AMI from an Outpost to a Region, from one Outpost to another, or within the same Outpost. To copy an AMI to another partition, see CreateStoreImageTask.

    To copy an AMI from one Region to another, specify the source Region using the SourceRegion parameter, and specify the destination Region using its endpoint. Copies of encrypted backing snapshots for the AMI are encrypted. Copies of unencrypted backing snapshots remain unencrypted, unless you set Encrypted during the copy operation. You cannot create an unencrypted copy of an encrypted backing snapshot.

    To copy an AMI from a Region to an Outpost, specify the source Region using the SourceRegion parameter, and specify the ARN of the destination Outpost using DestinationOutpostArn. Backing snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region, or a different key that you specify in the request using KmsKeyId. Outposts do not support unencrypted snapshots. For more information, Amazon EBS local snapshots on Outposts in the Amazon EBS User Guide.

    For more information about the prerequisites and limits when copying an AMI, see Copy an AMI in the Amazon EC2 User Guide.

    See

    AWSEC2ReplicateImageRequest

    See

    AWSEC2ReplicateImageResult

    Declaration

    Objective-C

    - (void)replicateImage:(nonnull AWSEC2ReplicateImageRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2ReplicateImageResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func replicateImage(_ request: AWSEC2ReplicateImageRequest) async throws -> AWSEC2ReplicateImageResult

    Parameters

    request

    A container for the necessary parameters to execute the CopyImage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy a snapshot within the same Region, from one Region to another, or from a Region to an Outpost. You can’t copy a snapshot from an Outpost to a Region, from one Outpost to another, or within the same Outpost.

    You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).

    When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless you enable encryption for the snapshot copy operation. By default, encrypted snapshot copies use the default KMS key; however, you can specify a different KMS key. To copy an encrypted snapshot that has been shared from another account, you must have permissions for the KMS key used to encrypt the snapshot.

    Snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region, or a different key that you specify in the request using KmsKeyId. Outposts do not support unencrypted snapshots. For more information, Amazon EBS local snapshots on Outposts in the Amazon EBS User Guide.

    Snapshots created by copying another snapshot have an arbitrary volume ID that should not be used for any purpose.

    For more information, see Copy an Amazon EBS snapshot in the Amazon EBS User Guide.

    See

    AWSEC2ReplicateSnapshotRequest

    See

    AWSEC2ReplicateSnapshotResult

    Declaration

    Objective-C

    - (id)replicateSnapshot:(nonnull AWSEC2ReplicateSnapshotRequest *)request;

    Swift

    func replicateSnapshot(_ request: AWSEC2ReplicateSnapshotRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CopySnapshot service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ReplicateSnapshotResult.

  • Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy a snapshot within the same Region, from one Region to another, or from a Region to an Outpost. You can’t copy a snapshot from an Outpost to a Region, from one Outpost to another, or within the same Outpost.

    You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).

    When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless you enable encryption for the snapshot copy operation. By default, encrypted snapshot copies use the default KMS key; however, you can specify a different KMS key. To copy an encrypted snapshot that has been shared from another account, you must have permissions for the KMS key used to encrypt the snapshot.

    Snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region, or a different key that you specify in the request using KmsKeyId. Outposts do not support unencrypted snapshots. For more information, Amazon EBS local snapshots on Outposts in the Amazon EBS User Guide.

    Snapshots created by copying another snapshot have an arbitrary volume ID that should not be used for any purpose.

    For more information, see Copy an Amazon EBS snapshot in the Amazon EBS User Guide.

    See

    AWSEC2ReplicateSnapshotRequest

    See

    AWSEC2ReplicateSnapshotResult

    Declaration

    Objective-C

    - (void)replicateSnapshot:(nonnull AWSEC2ReplicateSnapshotRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2ReplicateSnapshotResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func replicateSnapshot(_ request: AWSEC2ReplicateSnapshotRequest) async throws -> AWSEC2ReplicateSnapshotResult

    Parameters

    request

    A container for the necessary parameters to execute the CopySnapshot service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a new Capacity Reservation with the specified attributes.

    Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This gives you the flexibility to selectively add capacity reservations and still get the Regional RI discounts for that usage. By creating Capacity Reservations, you ensure that you always have access to Amazon EC2 capacity when you need it, for as long as you need it. For more information, see Capacity Reservations in the Amazon EC2 User Guide.

    Your request to create a Capacity Reservation could fail if Amazon EC2 does not have sufficient capacity to fulfill the request. If your request fails due to Amazon EC2 capacity constraints, either try again at a later time, try in a different Availability Zone, or request a smaller capacity reservation. If your application is flexible across instance types and sizes, try to create a Capacity Reservation with different instance attributes.

    Your request could also fail if the requested quantity exceeds your On-Demand Instance limit for the selected instance type. If your request fails due to limit constraints, increase your On-Demand Instance limit for the required instance type and try again. For more information about increasing your instance limits, see Amazon EC2 Service Quotas in the Amazon EC2 User Guide.

    See

    AWSEC2CreateCapacityReservationRequest

    See

    AWSEC2CreateCapacityReservationResult

    Declaration

    Objective-C

    - (id)createCapacityReservation:
        (nonnull AWSEC2CreateCapacityReservationRequest *)request;

    Swift

    func createCapacityReservation(_ request: AWSEC2CreateCapacityReservationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateCapacityReservation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateCapacityReservationResult.

  • Creates a new Capacity Reservation with the specified attributes.

    Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This gives you the flexibility to selectively add capacity reservations and still get the Regional RI discounts for that usage. By creating Capacity Reservations, you ensure that you always have access to Amazon EC2 capacity when you need it, for as long as you need it. For more information, see Capacity Reservations in the Amazon EC2 User Guide.

    Your request to create a Capacity Reservation could fail if Amazon EC2 does not have sufficient capacity to fulfill the request. If your request fails due to Amazon EC2 capacity constraints, either try again at a later time, try in a different Availability Zone, or request a smaller capacity reservation. If your application is flexible across instance types and sizes, try to create a Capacity Reservation with different instance attributes.

    Your request could also fail if the requested quantity exceeds your On-Demand Instance limit for the selected instance type. If your request fails due to limit constraints, increase your On-Demand Instance limit for the required instance type and try again. For more information about increasing your instance limits, see Amazon EC2 Service Quotas in the Amazon EC2 User Guide.

    See

    AWSEC2CreateCapacityReservationRequest

    See

    AWSEC2CreateCapacityReservationResult

    Declaration

    Objective-C

    - (void)createCapacityReservation:
                (nonnull AWSEC2CreateCapacityReservationRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2CreateCapacityReservationResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func createCapacityReservation(_ request: AWSEC2CreateCapacityReservationRequest) async throws -> AWSEC2CreateCapacityReservationResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateCapacityReservation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a Capacity Reservation Fleet. For more information, see Create a Capacity Reservation Fleet in the Amazon EC2 User Guide.

    See

    AWSEC2CreateCapacityReservationFleetRequest

    See

    AWSEC2CreateCapacityReservationFleetResult

    Declaration

    Objective-C

    - (id)createCapacityReservationFleet:
        (nonnull AWSEC2CreateCapacityReservationFleetRequest *)request;

    Swift

    func createCapacityReservationFleet(_ request: AWSEC2CreateCapacityReservationFleetRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateCapacityReservationFleet service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateCapacityReservationFleetResult.

  • Creates a Capacity Reservation Fleet. For more information, see Create a Capacity Reservation Fleet in the Amazon EC2 User Guide.

    See

    AWSEC2CreateCapacityReservationFleetRequest

    See

    AWSEC2CreateCapacityReservationFleetResult

    Declaration

    Objective-C

    - (void)
        createCapacityReservationFleet:
            (nonnull AWSEC2CreateCapacityReservationFleetRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2CreateCapacityReservationFleetResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func createCapacityReservationFleet(_ request: AWSEC2CreateCapacityReservationFleetRequest) async throws -> AWSEC2CreateCapacityReservationFleetResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateCapacityReservationFleet service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the Amazon Web Services Wavelength Developer Guide.

    See

    AWSEC2CreateCarrierGatewayRequest

    See

    AWSEC2CreateCarrierGatewayResult

    Declaration

    Objective-C

    - (id)createCarrierGateway:(nonnull AWSEC2CreateCarrierGatewayRequest *)request;

    Swift

    func createCarrierGateway(_ request: AWSEC2CreateCarrierGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateCarrierGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateCarrierGatewayResult.

  • Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the Amazon Web Services Wavelength Developer Guide.

    See

    AWSEC2CreateCarrierGatewayRequest

    See

    AWSEC2CreateCarrierGatewayResult

    Declaration

    Objective-C

    - (void)createCarrierGateway:
                (nonnull AWSEC2CreateCarrierGatewayRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2CreateCarrierGatewayResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func createCarrierGateway(_ request: AWSEC2CreateCarrierGatewayRequest) async throws -> AWSEC2CreateCarrierGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateCarrierGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.

    See

    AWSEC2CreateClientVpnEndpointRequest

    See

    AWSEC2CreateClientVpnEndpointResult

    Declaration

    Objective-C

    - (id)createClientVpnEndpoint:
        (nonnull AWSEC2CreateClientVpnEndpointRequest *)request;

    Swift

    func createClientVpnEndpoint(_ request: AWSEC2CreateClientVpnEndpointRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateClientVpnEndpoint service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateClientVpnEndpointResult.

  • Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.

    See

    AWSEC2CreateClientVpnEndpointRequest

    See

    AWSEC2CreateClientVpnEndpointResult

    Declaration

    Objective-C

    - (void)
        createClientVpnEndpoint:
            (nonnull AWSEC2CreateClientVpnEndpointRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2CreateClientVpnEndpointResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func createClientVpnEndpoint(_ request: AWSEC2CreateClientVpnEndpointRequest) async throws -> AWSEC2CreateClientVpnEndpointResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateClientVpnEndpoint service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the available destination network routes. Each route in the route table specifies the path for traffic to specific resources or networks.

    See

    AWSEC2CreateClientVpnRouteRequest

    See

    AWSEC2CreateClientVpnRouteResult

    Declaration

    Objective-C

    - (id)createClientVpnRoute:(nonnull AWSEC2CreateClientVpnRouteRequest *)request;

    Swift

    func createClientVpnRoute(_ request: AWSEC2CreateClientVpnRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateClientVpnRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateClientVpnRouteResult.

  • Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the available destination network routes. Each route in the route table specifies the path for traffic to specific resources or networks.

    See

    AWSEC2CreateClientVpnRouteRequest

    See

    AWSEC2CreateClientVpnRouteResult

    Declaration

    Objective-C

    - (void)createClientVpnRoute:
                (nonnull AWSEC2CreateClientVpnRouteRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2CreateClientVpnRouteResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func createClientVpnRoute(_ request: AWSEC2CreateClientVpnRouteRequest) async throws -> AWSEC2CreateClientVpnRouteResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateClientVpnRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a range of customer-owned IP addresses.

    See

    AWSEC2CreateCoipCidrRequest

    See

    AWSEC2CreateCoipCidrResult

    Declaration

    Objective-C

    - (id)createCoipCidr:(nonnull AWSEC2CreateCoipCidrRequest *)request;

    Swift

    func createCoipCidr(_ request: AWSEC2CreateCoipCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateCoipCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateCoipCidrResult.

  • Creates a range of customer-owned IP addresses.

    See

    AWSEC2CreateCoipCidrRequest

    See

    AWSEC2CreateCoipCidrResult

    Declaration

    Objective-C

    - (void)createCoipCidr:(nonnull AWSEC2CreateCoipCidrRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2CreateCoipCidrResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func createCoipCidr(_ request: AWSEC2CreateCoipCidrRequest) async throws -> AWSEC2CreateCoipCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateCoipCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a pool of customer-owned IP (CoIP) addresses.

    See

    AWSEC2CreateCoipPoolRequest

    See

    AWSEC2CreateCoipPoolResult

    Declaration

    Objective-C

    - (id)createCoipPool:(nonnull AWSEC2CreateCoipPoolRequest *)request;

    Swift

    func createCoipPool(_ request: AWSEC2CreateCoipPoolRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateCoipPool service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateCoipPoolResult.

  • Creates a pool of customer-owned IP (CoIP) addresses.

    See

    AWSEC2CreateCoipPoolRequest

    See

    AWSEC2CreateCoipPoolResult

    Declaration

    Objective-C

    - (void)createCoipPool:(nonnull AWSEC2CreateCoipPoolRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2CreateCoipPoolResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func createCoipPool(_ request: AWSEC2CreateCoipPoolRequest) async throws -> AWSEC2CreateCoipPoolResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateCoipPool service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Provides information to Amazon Web Services about your customer gateway device. The customer gateway device is the appliance at your end of the VPN connection. You must provide the IP address of the customer gateway device’s external interface. The IP address must be static and can be behind a device performing network address translation (NAT).

    For devices that use Border Gateway Protocol (BGP), you can also provide the device’s BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don’t have an ASN already, you can use a private ASN. For more information, see Customer gateway options for your Site-to-Site VPN connection in the Amazon Web Services Site-to-Site VPN User Guide.

    To create more than one customer gateway with the same VPN type, IP address, and BGP ASN, specify a unique device name for each customer gateway. An identical request returns information about the existing customer gateway; it doesn’t create a new customer gateway.

    See

    AWSEC2CreateCustomerGatewayRequest

    See

    AWSEC2CreateCustomerGatewayResult

    Declaration

    Objective-C

    - (id)createCustomerGateway:
        (nonnull AWSEC2CreateCustomerGatewayRequest *)request;

    Swift

    func createCustomerGateway(_ request: AWSEC2CreateCustomerGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateCustomerGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateCustomerGatewayResult.

  • Provides information to Amazon Web Services about your customer gateway device. The customer gateway device is the appliance at your end of the VPN connection. You must provide the IP address of the customer gateway device’s external interface. The IP address must be static and can be behind a device performing network address translation (NAT).

    For devices that use Border Gateway Protocol (BGP), you can also provide the device’s BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don’t have an ASN already, you can use a private ASN. For more information, see Customer gateway options for your Site-to-Site VPN connection in the Amazon Web Services Site-to-Site VPN User Guide.

    To create more than one customer gateway with the same VPN type, IP address, and BGP ASN, specify a unique device name for each customer gateway. An identical request returns information about the existing customer gateway; it doesn’t create a new customer gateway.

    See

    AWSEC2CreateCustomerGatewayRequest

    See

    AWSEC2CreateCustomerGatewayResult

    Declaration

    Objective-C

    - (void)createCustomerGateway:
                (nonnull AWSEC2CreateCustomerGatewayRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2CreateCustomerGatewayResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func createCustomerGateway(_ request: AWSEC2CreateCustomerGatewayRequest) async throws -> AWSEC2CreateCustomerGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateCustomerGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Create a default subnet in the Amazon VPC User Guide.

    See

    AWSEC2CreateDefaultSubnetRequest

    See

    AWSEC2CreateDefaultSubnetResult

    Declaration

    Objective-C

    - (id)createDefaultSubnet:(nonnull AWSEC2CreateDefaultSubnetRequest *)request;

    Swift

    func createDefaultSubnet(_ request: AWSEC2CreateDefaultSubnetRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateDefaultSubnet service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateDefaultSubnetResult.

  • Creates a default subnet with a size /20 IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Create a default subnet in the Amazon VPC User Guide.

    See

    AWSEC2CreateDefaultSubnetRequest

    See

    AWSEC2CreateDefaultSubnetResult

    Declaration

    Objective-C

    - (void)createDefaultSubnet:(nonnull AWSEC2CreateDefaultSubnetRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2CreateDefaultSubnetResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func createDefaultSubnet(_ request: AWSEC2CreateDefaultSubnetRequest) async throws -> AWSEC2CreateDefaultSubnetResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateDefaultSubnet service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPCs in the Amazon VPC User Guide. You cannot specify the components of the default VPC yourself.

    If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.

    See

    AWSEC2CreateDefaultVpcRequest

    See

    AWSEC2CreateDefaultVpcResult

    Declaration

    Objective-C

    - (id)createDefaultVpc:(nonnull AWSEC2CreateDefaultVpcRequest *)request;

    Swift

    func createDefaultVpc(_ request: AWSEC2CreateDefaultVpcRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateDefaultVpc service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateDefaultVpcResult.

  • Creates a default VPC with a size /16 IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPCs in the Amazon VPC User Guide. You cannot specify the components of the default VPC yourself.

    If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.

    See

    AWSEC2CreateDefaultVpcRequest

    See

    AWSEC2CreateDefaultVpcResult

    Declaration

    Objective-C

    - (void)createDefaultVpc:(nonnull AWSEC2CreateDefaultVpcRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2CreateDefaultVpcResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func createDefaultVpc(_ request: AWSEC2CreateDefaultVpcRequest) async throws -> AWSEC2CreateDefaultVpcResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateDefaultVpc service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a custom set of DHCP options. After you create a DHCP option set, you associate it with a VPC. After you associate a DHCP option set with a VPC, all existing and newly launched instances in the VPC use this set of DHCP options.

    The following are the individual DHCP options you can specify. For more information, see DHCP option sets in the Amazon VPC User Guide.

    • domain-name - If you’re using AmazonProvidedDNS in us-east-1, specify ec2.internal. If you’re using AmazonProvidedDNS in any other Region, specify region.compute.internal. Otherwise, specify a custom domain name. This value is used to complete unqualified DNS hostnames.

      Some Linux operating systems accept multiple domain names separated by spaces. However, Windows and other Linux operating systems treat the value as a single domain, which results in unexpected behavior. If your DHCP option set is associated with a VPC that has instances running operating systems that treat the value as a single domain, specify only one domain name.

    • domain-name-servers - The IP addresses of up to four DNS servers, or AmazonProvidedDNS. To specify multiple domain name servers in a single parameter, separate the IP addresses using commas. To have your instances receive custom DNS hostnames as specified in domain-name, you must specify a custom DNS server.

    • ntp-servers - The IP addresses of up to eight Network Time Protocol (NTP) servers (four IPv4 addresses and four IPv6 addresses).

    • netbios-name-servers - The IP addresses of up to four NetBIOS name servers.

    • netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2. Broadcast and multicast are not supported. For more information about NetBIOS node types, see RFC 2132.

    • ipv6-address-preferred-lease-time - A value (in seconds, minutes, hours, or years) for how frequently a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal. Acceptable values are between 140 and 2147483647 seconds (approximately 68 years). If no value is entered, the default lease time is 140 seconds. If you use long-term addressing for EC2 instances, you can increase the lease time and avoid frequent lease renewal requests. Lease renewal typically occurs when half of the lease time has elapsed.

    See

    AWSEC2CreateDhcpOptionsRequest

    See

    AWSEC2CreateDhcpOptionsResult

    Declaration

    Objective-C

    - (id)createDhcpOptions:(nonnull AWSEC2CreateDhcpOptionsRequest *)request;

    Swift

    func createDhcpOptions(_ request: AWSEC2CreateDhcpOptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateDhcpOptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateDhcpOptionsResult.

  • Creates a custom set of DHCP options. After you create a DHCP option set, you associate it with a VPC. After you associate a DHCP option set with a VPC, all existing and newly launched instances in the VPC use this set of DHCP options.

    The following are the individual DHCP options you can specify. For more information, see DHCP option sets in the Amazon VPC User Guide.

    • domain-name - If you’re using AmazonProvidedDNS in us-east-1, specify ec2.internal. If you’re using AmazonProvidedDNS in any other Region, specify region.compute.internal. Otherwise, specify a custom domain name. This value is used to complete unqualified DNS hostnames.

      Some Linux operating systems accept multiple domain names separated by spaces. However, Windows and other Linux operating systems treat the value as a single domain, which results in unexpected behavior. If your DHCP option set is associated with a VPC that has instances running operating systems that treat the value as a single domain, specify only one domain name.

    • domain-name-servers - The IP addresses of up to four DNS servers, or AmazonProvidedDNS. To specify multiple domain name servers in a single parameter, separate the IP addresses using commas. To have your instances receive custom DNS hostnames as specified in domain-name, you must specify a custom DNS server.

    • ntp-servers - The IP addresses of up to eight Network Time Protocol (NTP) servers (four IPv4 addresses and four IPv6 addresses).

    • netbios-name-servers - The IP addresses of up to four NetBIOS name servers.

    • netbios-node-type - The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2. Broadcast and multicast are not supported. For more information about NetBIOS node types, see RFC 2132.

    • ipv6-address-preferred-lease-time - A value (in seconds, minutes, hours, or years) for how frequently a running instance with an IPv6 assigned to it goes through DHCPv6 lease renewal. Acceptable values are between 140 and 2147483647 seconds (approximately 68 years). If no value is entered, the default lease time is 140 seconds. If you use long-term addressing for EC2 instances, you can increase the lease time and avoid frequent lease renewal requests. Lease renewal typically occurs when half of the lease time has elapsed.

    See

    AWSEC2CreateDhcpOptionsRequest

    See

    AWSEC2CreateDhcpOptionsResult

    Declaration

    Objective-C

    - (void)createDhcpOptions:(nonnull AWSEC2CreateDhcpOptionsRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2CreateDhcpOptionsResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func createDhcpOptions(_ request: AWSEC2CreateDhcpOptionsRequest) async throws -> AWSEC2CreateDhcpOptionsResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateDhcpOptions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • [IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance.

    See

    AWSEC2CreateEgressOnlyInternetGatewayRequest

    See

    AWSEC2CreateEgressOnlyInternetGatewayResult

    Declaration

    Objective-C

    - (id)createEgressOnlyInternetGateway:
        (nonnull AWSEC2CreateEgressOnlyInternetGatewayRequest *)request;

    Swift

    func createEgressOnlyInternetGateway(_ request: AWSEC2CreateEgressOnlyInternetGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateEgressOnlyInternetGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateEgressOnlyInternetGatewayResult.

  • [IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance.

    See

    AWSEC2CreateEgressOnlyInternetGatewayRequest

    See

    AWSEC2CreateEgressOnlyInternetGatewayResult

    Declaration

    Objective-C

    - (void)createEgressOnlyInternetGateway:
                (nonnull AWSEC2CreateEgressOnlyInternetGatewayRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2CreateEgressOnlyInternetGatewayResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func createEgressOnlyInternetGateway(_ request: AWSEC2CreateEgressOnlyInternetGatewayRequest) async throws -> AWSEC2CreateEgressOnlyInternetGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateEgressOnlyInternetGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances. Instances are launched immediately if there is available capacity.

    A single EC2 Fleet can include multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

    For more information, see EC2 Fleet in the Amazon EC2 User Guide.

    See

    AWSEC2CreateFleetRequest

    See

    AWSEC2CreateFleetResult

    Declaration

    Objective-C

    - (id)createFleet:(nonnull AWSEC2CreateFleetRequest *)request;

    Swift

    func createFleet(_ request: AWSEC2CreateFleetRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateFleet service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateFleetResult.

  • Creates an EC2 Fleet that contains the configuration information for On-Demand Instances and Spot Instances. Instances are launched immediately if there is available capacity.

    A single EC2 Fleet can include multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

    For more information, see EC2 Fleet in the Amazon EC2 User Guide.

    See

    AWSEC2CreateFleetRequest

    See

    AWSEC2CreateFleetResult

    Declaration

    Objective-C

    - (void)createFleet:(nonnull AWSEC2CreateFleetRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2CreateFleetResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func createFleet(_ request: AWSEC2CreateFleetRequest) async throws -> AWSEC2CreateFleetResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateFleet service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.

    Flow log data for a monitored network interface is recorded as flow log records, which are log events consisting of fields that describe the traffic flow. For more information, see Flow log records in the Amazon VPC User Guide.

    When publishing to CloudWatch Logs, flow log records are published to a log group, and each network interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all of the monitored network interfaces are published to a single log file object that is stored in the specified bucket.

    For more information, see VPC Flow Logs in the Amazon VPC User Guide.

    See

    AWSEC2CreateFlowLogsRequest

    See

    AWSEC2CreateFlowLogsResult

    Declaration

    Objective-C

    - (id)createFlowLogs:(nonnull AWSEC2CreateFlowLogsRequest *)request;

    Swift

    func createFlowLogs(_ request: AWSEC2CreateFlowLogsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateFlowLogs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateFlowLogsResult.

  • Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.

    Flow log data for a monitored network interface is recorded as flow log records, which are log events consisting of fields that describe the traffic flow. For more information, see Flow log records in the Amazon VPC User Guide.

    When publishing to CloudWatch Logs, flow log records are published to a log group, and each network interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all of the monitored network interfaces are published to a single log file object that is stored in the specified bucket.

    For more information, see VPC Flow Logs in the Amazon VPC User Guide.

    See

    AWSEC2CreateFlowLogsRequest

    See

    AWSEC2CreateFlowLogsResult

    Declaration

    Objective-C

    - (void)createFlowLogs:(nonnull AWSEC2CreateFlowLogsRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2CreateFlowLogsResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func createFlowLogs(_ request: AWSEC2CreateFlowLogsRequest) async throws -> AWSEC2CreateFlowLogsResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateFlowLogs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).

    The create operation is asynchronous. To verify that the AFI is ready for use, check the output logs.

    An AFI contains the FPGA bitstream that is ready to download to an FPGA. You can securely deploy an AFI on multiple FPGA-accelerated instances. For more information, see the Amazon Web Services FPGA Hardware Development Kit.

    See

    AWSEC2CreateFpgaImageRequest

    See

    AWSEC2CreateFpgaImageResult

    Declaration

    Objective-C

    - (id)createFpgaImage:(nonnull AWSEC2CreateFpgaImageRequest *)request;

    Swift

    func createFpgaImage(_ request: AWSEC2CreateFpgaImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateFpgaImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateFpgaImageResult.

  • Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).

    The create operation is asynchronous. To verify that the AFI is ready for use, check the output logs.

    An AFI contains the FPGA bitstream that is ready to download to an FPGA. You can securely deploy an AFI on multiple FPGA-accelerated instances. For more information, see the Amazon Web Services FPGA Hardware Development Kit.

    See

    AWSEC2CreateFpgaImageRequest

    See

    AWSEC2CreateFpgaImageResult

    Declaration

    Objective-C

    - (void)createFpgaImage:(nonnull AWSEC2CreateFpgaImageRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2CreateFpgaImageResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func createFpgaImage(_ request: AWSEC2CreateFpgaImageRequest) async throws -> AWSEC2CreateFpgaImageResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateFpgaImage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.

    If you customized your instance with instance store volumes or Amazon EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.

    For more information, see Create an Amazon EBS-backed Linux AMI in the Amazon Elastic Compute Cloud User Guide.

    See

    AWSEC2CreateImageRequest

    See

    AWSEC2CreateImageResult

    Declaration

    Objective-C

    - (id)createImage:(nonnull AWSEC2CreateImageRequest *)request;

    Swift

    func createImage(_ request: AWSEC2CreateImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateImageResult.

  • Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.

    If you customized your instance with instance store volumes or Amazon EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.

    For more information, see Create an Amazon EBS-backed Linux AMI in the Amazon Elastic Compute Cloud User Guide.

    See

    AWSEC2CreateImageRequest

    See

    AWSEC2CreateImageResult

    Declaration

    Objective-C

    - (void)createImage:(nonnull AWSEC2CreateImageRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2CreateImageResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func createImage(_ request: AWSEC2CreateImageRequest) async throws -> AWSEC2CreateImageResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateImage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an EC2 Instance Connect Endpoint.

    An EC2 Instance Connect Endpoint allows you to connect to an instance, without requiring the instance to have a public IPv4 address. For more information, see Connect to your instances without requiring a public IPv4 address using EC2 Instance Connect Endpoint in the Amazon EC2 User Guide.

    See

    AWSEC2CreateInstanceConnectEndpointRequest

    See

    AWSEC2CreateInstanceConnectEndpointResult

    Declaration

    Objective-C

    - (id)createInstanceConnectEndpoint:
        (nonnull AWSEC2CreateInstanceConnectEndpointRequest *)request;

    Swift

    func createInstanceConnectEndpoint(_ request: AWSEC2CreateInstanceConnectEndpointRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateInstanceConnectEndpoint service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateInstanceConnectEndpointResult.

  • Creates an EC2 Instance Connect Endpoint.

    An EC2 Instance Connect Endpoint allows you to connect to an instance, without requiring the instance to have a public IPv4 address. For more information, see Connect to your instances without requiring a public IPv4 address using EC2 Instance Connect Endpoint in the Amazon EC2 User Guide.

    See

    AWSEC2CreateInstanceConnectEndpointRequest

    See

    AWSEC2CreateInstanceConnectEndpointResult

    Declaration

    Objective-C

    - (void)
        createInstanceConnectEndpoint:
            (nonnull AWSEC2CreateInstanceConnectEndpointRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2CreateInstanceConnectEndpointResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func createInstanceConnectEndpoint(_ request: AWSEC2CreateInstanceConnectEndpointRequest) async throws -> AWSEC2CreateInstanceConnectEndpointResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateInstanceConnectEndpoint service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an event window in which scheduled events for the associated Amazon EC2 instances can run.

    You can define either a set of time ranges or a cron expression when creating the event window, but not both. All event window times are in UTC.

    You can create up to 200 event windows per Amazon Web Services Region.

    When you create the event window, targets (instance IDs, Dedicated Host IDs, or tags) are not yet associated with it. To ensure that the event window can be used, you must associate one or more targets with it by using the AssociateInstanceEventWindow API.

    Event windows are applicable only for scheduled events that stop, reboot, or terminate instances.

    Event windows are not applicable for:

    • Expedited scheduled events and network maintenance events.

    • Unscheduled maintenance such as AutoRecovery and unplanned reboots.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2CreateInstanceEventWindowRequest

    See

    AWSEC2CreateInstanceEventWindowResult

    Declaration

    Objective-C

    - (id)createInstanceEventWindow:
        (nonnull AWSEC2CreateInstanceEventWindowRequest *)request;

    Swift

    func createInstanceEventWindow(_ request: AWSEC2CreateInstanceEventWindowRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateInstanceEventWindow service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateInstanceEventWindowResult.

  • Creates an event window in which scheduled events for the associated Amazon EC2 instances can run.

    You can define either a set of time ranges or a cron expression when creating the event window, but not both. All event window times are in UTC.

    You can create up to 200 event windows per Amazon Web Services Region.

    When you create the event window, targets (instance IDs, Dedicated Host IDs, or tags) are not yet associated with it. To ensure that the event window can be used, you must associate one or more targets with it by using the AssociateInstanceEventWindow API.

    Event windows are applicable only for scheduled events that stop, reboot, or terminate instances.

    Event windows are not applicable for:

    • Expedited scheduled events and network maintenance events.

    • Unscheduled maintenance such as AutoRecovery and unplanned reboots.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2CreateInstanceEventWindowRequest

    See

    AWSEC2CreateInstanceEventWindowResult

    Declaration

    Objective-C

    - (void)createInstanceEventWindow:
                (nonnull AWSEC2CreateInstanceEventWindowRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2CreateInstanceEventWindowResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func createInstanceEventWindow(_ request: AWSEC2CreateInstanceEventWindowRequest) async throws -> AWSEC2CreateInstanceEventWindowResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateInstanceEventWindow service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Exports a running or stopped instance to an Amazon S3 bucket.

    For information about the prerequisites for your Amazon S3 bucket, supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an instance as a VM Using VM Import/Export in the VM Import/Export User Guide.

    See

    AWSEC2CreateInstanceExportTaskRequest

    See

    AWSEC2CreateInstanceExportTaskResult

    Declaration

    Objective-C

    - (id)createInstanceExportTask:
        (nonnull AWSEC2CreateInstanceExportTaskRequest *)request;

    Swift

    func createInstanceExportTask(_ request: AWSEC2CreateInstanceExportTaskRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateInstanceExportTask service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateInstanceExportTaskResult.

  • Exports a running or stopped instance to an Amazon S3 bucket.

    For information about the prerequisites for your Amazon S3 bucket, supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an instance as a VM Using VM Import/Export in the VM Import/Export User Guide.

    See

    AWSEC2CreateInstanceExportTaskRequest

    See

    AWSEC2CreateInstanceExportTaskResult

    Declaration

    Objective-C

    - (void)createInstanceExportTask:
                (nonnull AWSEC2CreateInstanceExportTaskRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2CreateInstanceExportTaskResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func createInstanceExportTask(_ request: AWSEC2CreateInstanceExportTaskRequest) async throws -> AWSEC2CreateInstanceExportTaskResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateInstanceExportTask service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an internet gateway for use with a VPC. After creating the internet gateway, you attach it to a VPC using AttachInternetGateway.

    For more information, see Internet gateways in the Amazon VPC User Guide.

    See

    AWSEC2CreateInternetGatewayRequest

    See

    AWSEC2CreateInternetGatewayResult

    Declaration

    Objective-C

    - (id)createInternetGateway:
        (nonnull AWSEC2CreateInternetGatewayRequest *)request;

    Swift

    func createInternetGateway(_ request: AWSEC2CreateInternetGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateInternetGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateInternetGatewayResult.

  • Creates an internet gateway for use with a VPC. After creating the internet gateway, you attach it to a VPC using AttachInternetGateway.

    For more information, see Internet gateways in the Amazon VPC User Guide.

    See

    AWSEC2CreateInternetGatewayRequest

    See

    AWSEC2CreateInternetGatewayResult

    Declaration

    Objective-C

    - (void)createInternetGateway:
                (nonnull AWSEC2CreateInternetGatewayRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2CreateInternetGatewayResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func createInternetGateway(_ request: AWSEC2CreateInternetGatewayRequest) async throws -> AWSEC2CreateInternetGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateInternetGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Create an IPAM. Amazon VPC IP Address Manager (IPAM) is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across Amazon Web Services Regions and accounts throughout your Amazon Web Services Organization.

    For more information, see Create an IPAM in the Amazon VPC IPAM User Guide.

    See

    AWSEC2CreateIpamRequest

    See

    AWSEC2CreateIpamResult

    Declaration

    Objective-C

    - (id)createIpam:(nonnull AWSEC2CreateIpamRequest *)request;

    Swift

    func createIpam(_ request: AWSEC2CreateIpamRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateIpam service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateIpamResult.

  • Create an IPAM. Amazon VPC IP Address Manager (IPAM) is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across Amazon Web Services Regions and accounts throughout your Amazon Web Services Organization.

    For more information, see Create an IPAM in the Amazon VPC IPAM User Guide.

    See

    AWSEC2CreateIpamRequest

    See

    AWSEC2CreateIpamResult

    Declaration

    Objective-C

    - (void)createIpam:(nonnull AWSEC2CreateIpamRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2CreateIpamResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func createIpam(_ request: AWSEC2CreateIpamRequest) async throws -> AWSEC2CreateIpamResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateIpam service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable you to organize your IP addresses according to your routing and security needs. For example, if you have separate routing and security needs for development and production applications, you can create a pool for each.

    For more information, see Create a top-level pool in the Amazon VPC IPAM User Guide.

    See

    AWSEC2CreateIpamPoolRequest

    See

    AWSEC2CreateIpamPoolResult

    Declaration

    Objective-C

    - (id)createIpamPool:(nonnull AWSEC2CreateIpamPoolRequest *)request;

    Swift

    func createIpamPool(_ request: AWSEC2CreateIpamPoolRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateIpamPool service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateIpamPoolResult.

  • Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable you to organize your IP addresses according to your routing and security needs. For example, if you have separate routing and security needs for development and production applications, you can create a pool for each.

    For more information, see Create a top-level pool in the Amazon VPC IPAM User Guide.

    See

    AWSEC2CreateIpamPoolRequest

    See

    AWSEC2CreateIpamPoolResult

    Declaration

    Objective-C

    - (void)createIpamPool:(nonnull AWSEC2CreateIpamPoolRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2CreateIpamPoolResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func createIpamPool(_ request: AWSEC2CreateIpamPoolRequest) async throws -> AWSEC2CreateIpamPoolResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateIpamPool service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2CreateIpamResourceDiscoveryRequest

    See

    AWSEC2CreateIpamResourceDiscoveryResult

    Declaration

    Objective-C

    - (id)createIpamResourceDiscovery:
        (nonnull AWSEC2CreateIpamResourceDiscoveryRequest *)request;

    Swift

    func createIpamResourceDiscovery(_ request: AWSEC2CreateIpamResourceDiscoveryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateIpamResourceDiscovery service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateIpamResourceDiscoveryResult.

  • Creates an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2CreateIpamResourceDiscoveryRequest

    See

    AWSEC2CreateIpamResourceDiscoveryResult

    Declaration

    Objective-C

    - (void)createIpamResourceDiscovery:
                (nonnull AWSEC2CreateIpamResourceDiscoveryRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2CreateIpamResourceDiscoveryResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func createIpamResourceDiscovery(_ request: AWSEC2CreateIpamResourceDiscoveryRequest) async throws -> AWSEC2CreateIpamResourceDiscoveryResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateIpamResourceDiscovery service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Create an IPAM scope. In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict.

    For more information, see Add a scope in the Amazon VPC IPAM User Guide.

    See

    AWSEC2CreateIpamScopeRequest

    See

    AWSEC2CreateIpamScopeResult

    Declaration

    Objective-C

    - (id)createIpamScope:(nonnull AWSEC2CreateIpamScopeRequest *)request;

    Swift

    func createIpamScope(_ request: AWSEC2CreateIpamScopeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateIpamScope service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateIpamScopeResult.

  • Create an IPAM scope. In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict.

    For more information, see Add a scope in the Amazon VPC IPAM User Guide.

    See

    AWSEC2CreateIpamScopeRequest

    See

    AWSEC2CreateIpamScopeResult

    Declaration

    Objective-C

    - (void)createIpamScope:(nonnull AWSEC2CreateIpamScopeRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2CreateIpamScopeResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func createIpamScope(_ request: AWSEC2CreateIpamScopeRequest) async throws -> AWSEC2CreateIpamScopeResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateIpamScope service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified PEM or PPK format. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#1 private key or an unencrypted PPK formatted private key for use with PuTTY. If a key with the specified name already exists, Amazon EC2 returns an error.

    The key pair returned to you is available only in the Amazon Web Services Region in which you create it. If you prefer, you can create your own key pair using a third-party tool and upload it to any Region using ImportKeyPair.

    You can have up to 5,000 key pairs per Amazon Web Services Region.

    For more information, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.

    See

    AWSEC2CreateKeyPairRequest

    See

    AWSEC2KeyPair

    Declaration

    Objective-C

    - (id)createKeyPair:(nonnull AWSEC2CreateKeyPairRequest *)request;

    Swift

    func createKeyPair(_ request: AWSEC2CreateKeyPairRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateKeyPair service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2KeyPair.

  • Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified PEM or PPK format. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#1 private key or an unencrypted PPK formatted private key for use with PuTTY. If a key with the specified name already exists, Amazon EC2 returns an error.

    The key pair returned to you is available only in the Amazon Web Services Region in which you create it. If you prefer, you can create your own key pair using a third-party tool and upload it to any Region using ImportKeyPair.

    You can have up to 5,000 key pairs per Amazon Web Services Region.

    For more information, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.

    See

    AWSEC2CreateKeyPairRequest

    See

    AWSEC2KeyPair

    Declaration

    Objective-C

    - (void)createKeyPair:(nonnull AWSEC2CreateKeyPairRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2KeyPair *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func createKeyPair(_ request: AWSEC2CreateKeyPairRequest) async throws -> AWSEC2KeyPair

    Parameters

    request

    A container for the necessary parameters to execute the CreateKeyPair service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a launch template.

    A launch template contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify a launch template instead of providing the launch parameters in the request. For more information, see Launch an instance from a launch template in the Amazon EC2 User Guide.

    To clone an existing launch template as the basis for a new launch template, use the Amazon EC2 console. The API, SDKs, and CLI do not support cloning a template. For more information, see Create a launch template from an existing launch template in the Amazon EC2 User Guide.

    See

    AWSEC2CreateLaunchTemplateRequest

    See

    AWSEC2CreateLaunchTemplateResult

    Declaration

    Objective-C

    - (id)createLaunchTemplate:(nonnull AWSEC2CreateLaunchTemplateRequest *)request;

    Swift

    func createLaunchTemplate(_ request: AWSEC2CreateLaunchTemplateRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateLaunchTemplate service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateLaunchTemplateResult.

  • Creates a launch template.

    A launch template contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify a launch template instead of providing the launch parameters in the request. For more information, see Launch an instance from a launch template in the Amazon EC2 User Guide.

    To clone an existing launch template as the basis for a new launch template, use the Amazon EC2 console. The API, SDKs, and CLI do not support cloning a template. For more information, see Create a launch template from an existing launch template in the Amazon EC2 User Guide.

    See

    AWSEC2CreateLaunchTemplateRequest

    See

    AWSEC2CreateLaunchTemplateResult

    Declaration

    Objective-C

    - (void)createLaunchTemplate:
                (nonnull AWSEC2CreateLaunchTemplateRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2CreateLaunchTemplateResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func createLaunchTemplate(_ request: AWSEC2CreateLaunchTemplateRequest) async throws -> AWSEC2CreateLaunchTemplateResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateLaunchTemplate service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a new version of a launch template. You must specify an existing launch template, either by name or ID. You can determine whether the new version inherits parameters from a source version, and add or overwrite parameters as needed.

    Launch template versions are numbered in the order in which they are created. You can’t specify, change, or replace the numbering of launch template versions.

    Launch templates are immutable; after you create a launch template, you can’t modify it. Instead, you can create a new version of the launch template that includes the changes that you require.

    For more information, see Modify a launch template (manage launch template versions) in the Amazon EC2 User Guide.

    See

    AWSEC2CreateLaunchTemplateVersionRequest

    See

    AWSEC2CreateLaunchTemplateVersionResult

    Declaration

    Objective-C

    - (id)createLaunchTemplateVersion:
        (nonnull AWSEC2CreateLaunchTemplateVersionRequest *)request;

    Swift

    func createLaunchTemplateVersion(_ request: AWSEC2CreateLaunchTemplateVersionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateLaunchTemplateVersion service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateLaunchTemplateVersionResult.

  • Creates a new version of a launch template. You must specify an existing launch template, either by name or ID. You can determine whether the new version inherits parameters from a source version, and add or overwrite parameters as needed.

    Launch template versions are numbered in the order in which they are created. You can’t specify, change, or replace the numbering of launch template versions.

    Launch templates are immutable; after you create a launch template, you can’t modify it. Instead, you can create a new version of the launch template that includes the changes that you require.

    For more information, see Modify a launch template (manage launch template versions) in the Amazon EC2 User Guide.

    See

    AWSEC2CreateLaunchTemplateVersionRequest

    See

    AWSEC2CreateLaunchTemplateVersionResult

    Declaration

    Objective-C

    - (void)createLaunchTemplateVersion:
                (nonnull AWSEC2CreateLaunchTemplateVersionRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2CreateLaunchTemplateVersionResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func createLaunchTemplateVersion(_ request: AWSEC2CreateLaunchTemplateVersionRequest) async throws -> AWSEC2CreateLaunchTemplateVersionResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateLaunchTemplateVersion service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a static route for the specified local gateway route table. You must specify one of the following targets:

    • LocalGatewayVirtualInterfaceGroupId

    • NetworkInterfaceId

    See

    AWSEC2CreateLocalGatewayRouteRequest

    See

    AWSEC2CreateLocalGatewayRouteResult

    Declaration

    Objective-C

    - (id)createLocalGatewayRoute:
        (nonnull AWSEC2CreateLocalGatewayRouteRequest *)request;

    Swift

    func createLocalGatewayRoute(_ request: AWSEC2CreateLocalGatewayRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateLocalGatewayRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateLocalGatewayRouteResult.

  • Creates a static route for the specified local gateway route table. You must specify one of the following targets:

    • LocalGatewayVirtualInterfaceGroupId

    • NetworkInterfaceId

    See

    AWSEC2CreateLocalGatewayRouteRequest

    See

    AWSEC2CreateLocalGatewayRouteResult

    Declaration

    Objective-C

    - (void)
        createLocalGatewayRoute:
            (nonnull AWSEC2CreateLocalGatewayRouteRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2CreateLocalGatewayRouteResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func createLocalGatewayRoute(_ request: AWSEC2CreateLocalGatewayRouteRequest) async throws -> AWSEC2CreateLocalGatewayRouteResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateLocalGatewayRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a local gateway route table.

    See

    AWSEC2CreateLocalGatewayRouteTableRequest

    See

    AWSEC2CreateLocalGatewayRouteTableResult

    Declaration

    Objective-C

    - (id)createLocalGatewayRouteTable:
        (nonnull AWSEC2CreateLocalGatewayRouteTableRequest *)request;

    Swift

    func createLocalGatewayRouteTable(_ request: AWSEC2CreateLocalGatewayRouteTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateLocalGatewayRouteTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateLocalGatewayRouteTableResult.

  • Creates a local gateway route table.

    See

    AWSEC2CreateLocalGatewayRouteTableRequest

    See

    AWSEC2CreateLocalGatewayRouteTableResult

    Declaration

    Objective-C

    - (void)createLocalGatewayRouteTable:
                (nonnull AWSEC2CreateLocalGatewayRouteTableRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2CreateLocalGatewayRouteTableResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func createLocalGatewayRouteTable(_ request: AWSEC2CreateLocalGatewayRouteTableRequest) async throws -> AWSEC2CreateLocalGatewayRouteTableResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateLocalGatewayRouteTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a local gateway route table virtual interface group association.

    See

    AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest

    See

    AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult

    Declaration

    Objective-C

    - (id)createLocalGatewayRouteTableVirtualInterfaceGroupAssociation:
        (nonnull
             AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest
                 *)request;

    Swift

    func createLocalGatewayRouteTableVirtualInterfaceGroupAssociation(_ request: AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult.

  • Creates a local gateway route table virtual interface group association.

    See

    AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest

    See

    AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult

    Declaration

    Objective-C

    - (void)
        createLocalGatewayRouteTableVirtualInterfaceGroupAssociation:
            (nonnull
                 AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest
                     *)request
                                                   completionHandler:
                                                       (void (^_Nullable)(
                                                           AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult
                                                               *_Nullable,
                                                           NSError *_Nullable))
                                                           completionHandler;

    Swift

    func createLocalGatewayRouteTableVirtualInterfaceGroupAssociation(_ request: AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest) async throws -> AWSEC2CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Associates the specified VPC with the specified local gateway route table.

    See

    AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest

    See

    AWSEC2CreateLocalGatewayRouteTableVpcAssociationResult

    Declaration

    Objective-C

    - (id)createLocalGatewayRouteTableVpcAssociation:
        (nonnull AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest *)request;

    Swift

    func createLocalGatewayRouteTableVpcAssociation(_ request: AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateLocalGatewayRouteTableVpcAssociation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateLocalGatewayRouteTableVpcAssociationResult.

  • Associates the specified VPC with the specified local gateway route table.

    See

    AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest

    See

    AWSEC2CreateLocalGatewayRouteTableVpcAssociationResult

    Declaration

    Objective-C

    - (void)
        createLocalGatewayRouteTableVpcAssociation:
            (nonnull AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest *)
                request
                                 completionHandler:
                                     (void (^_Nullable)(
                                         AWSEC2CreateLocalGatewayRouteTableVpcAssociationResult
                                             *_Nullable,
                                         NSError *_Nullable))completionHandler;

    Swift

    func createLocalGatewayRouteTableVpcAssociation(_ request: AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest) async throws -> AWSEC2CreateLocalGatewayRouteTableVpcAssociationResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateLocalGatewayRouteTableVpcAssociation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a managed prefix list. You can specify one or more entries for the prefix list. Each entry consists of a CIDR block and an optional description.

    See

    AWSEC2CreateManagedPrefixListRequest

    See

    AWSEC2CreateManagedPrefixListResult

    Declaration

    Objective-C

    - (id)createManagedPrefixList:
        (nonnull AWSEC2CreateManagedPrefixListRequest *)request;

    Swift

    func createManagedPrefixList(_ request: AWSEC2CreateManagedPrefixListRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateManagedPrefixList service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateManagedPrefixListResult.

  • Creates a managed prefix list. You can specify one or more entries for the prefix list. Each entry consists of a CIDR block and an optional description.

    See

    AWSEC2CreateManagedPrefixListRequest

    See

    AWSEC2CreateManagedPrefixListResult

    Declaration

    Objective-C

    - (void)
        createManagedPrefixList:
            (nonnull AWSEC2CreateManagedPrefixListRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2CreateManagedPrefixListResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func createManagedPrefixList(_ request: AWSEC2CreateManagedPrefixListRequest) async throws -> AWSEC2CreateManagedPrefixListResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateManagedPrefixList service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a NAT gateway in the specified subnet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. You can create either a public NAT gateway or a private NAT gateway.

    With a public NAT gateway, internet-bound traffic from a private subnet can be routed to the NAT gateway, so that instances in a private subnet can connect to the internet.

    With a private NAT gateway, private communication is routed across VPCs and on-premises networks through a transit gateway or virtual private gateway. Common use cases include running large workloads behind a small pool of allowlisted IPv4 addresses, preserving private IPv4 addresses, and communicating between overlapping networks.

    For more information, see NAT gateways in the Amazon VPC User Guide.

    When you create a public NAT gateway and assign it an EIP or secondary EIPs, the network border group of the EIPs must match the network border group of the Availability Zone (AZ) that the public NAT gateway is in. If it’s not the same, the NAT gateway will fail to launch. You can see the network border group for the subnet’s AZ by viewing the details of the subnet. Similarly, you can view the network border group of an EIP by viewing the details of the EIP address. For more information about network border groups and EIPs, see Allocate an Elastic IP address in the Amazon VPC User Guide.

    See

    AWSEC2CreateNatGatewayRequest

    See

    AWSEC2CreateNatGatewayResult

    Declaration

    Objective-C

    - (id)createNatGateway:(nonnull AWSEC2CreateNatGatewayRequest *)request;

    Swift

    func createNatGateway(_ request: AWSEC2CreateNatGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateNatGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateNatGatewayResult.

  • Creates a NAT gateway in the specified subnet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. You can create either a public NAT gateway or a private NAT gateway.

    With a public NAT gateway, internet-bound traffic from a private subnet can be routed to the NAT gateway, so that instances in a private subnet can connect to the internet.

    With a private NAT gateway, private communication is routed across VPCs and on-premises networks through a transit gateway or virtual private gateway. Common use cases include running large workloads behind a small pool of allowlisted IPv4 addresses, preserving private IPv4 addresses, and communicating between overlapping networks.

    For more information, see NAT gateways in the Amazon VPC User Guide.

    When you create a public NAT gateway and assign it an EIP or secondary EIPs, the network border group of the EIPs must match the network border group of the Availability Zone (AZ) that the public NAT gateway is in. If it’s not the same, the NAT gateway will fail to launch. You can see the network border group for the subnet’s AZ by viewing the details of the subnet. Similarly, you can view the network border group of an EIP by viewing the details of the EIP address. For more information about network border groups and EIPs, see Allocate an Elastic IP address in the Amazon VPC User Guide.

    See

    AWSEC2CreateNatGatewayRequest

    See

    AWSEC2CreateNatGatewayResult

    Declaration

    Objective-C

    - (void)createNatGateway:(nonnull AWSEC2CreateNatGatewayRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2CreateNatGatewayResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func createNatGateway(_ request: AWSEC2CreateNatGatewayRequest) async throws -> AWSEC2CreateNatGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateNatGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.

    For more information, see Network ACLs in the Amazon VPC User Guide.

    See

    AWSEC2CreateNetworkAclRequest

    See

    AWSEC2CreateNetworkAclResult

    Declaration

    Objective-C

    - (id)createNetworkAcl:(nonnull AWSEC2CreateNetworkAclRequest *)request;

    Swift

    func createNetworkAcl(_ request: AWSEC2CreateNetworkAclRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkAcl service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateNetworkAclResult.

  • Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.

    For more information, see Network ACLs in the Amazon VPC User Guide.

    See

    AWSEC2CreateNetworkAclRequest

    See

    AWSEC2CreateNetworkAclResult

    Declaration

    Objective-C

    - (void)createNetworkAcl:(nonnull AWSEC2CreateNetworkAclRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2CreateNetworkAclResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func createNetworkAcl(_ request: AWSEC2CreateNetworkAclRequest) async throws -> AWSEC2CreateNetworkAclResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkAcl service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an entry (a rule) in a network ACL with the specified rule number. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, we process the entries in the ACL according to the rule numbers, in ascending order. Each network ACL has a set of ingress rules and a separate set of egress rules.

    We recommend that you leave room between the rule numbers (for example, 100, 110, 120, …), and not number them one right after the other (for example, 101, 102, 103, …). This makes it easier to add a rule between existing ones without having to renumber the rules.

    After you add an entry, you can’t modify it; you must either replace it, or create an entry and delete the old one.

    For more information about network ACLs, see Network ACLs in the Amazon VPC User Guide.

    See

    AWSEC2CreateNetworkAclEntryRequest

    Declaration

    Objective-C

    - (id)createNetworkAclEntry:
        (nonnull AWSEC2CreateNetworkAclEntryRequest *)request;

    Swift

    func createNetworkAclEntry(_ request: AWSEC2CreateNetworkAclEntryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkAclEntry service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Creates an entry (a rule) in a network ACL with the specified rule number. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, we process the entries in the ACL according to the rule numbers, in ascending order. Each network ACL has a set of ingress rules and a separate set of egress rules.

    We recommend that you leave room between the rule numbers (for example, 100, 110, 120, …), and not number them one right after the other (for example, 101, 102, 103, …). This makes it easier to add a rule between existing ones without having to renumber the rules.

    After you add an entry, you can’t modify it; you must either replace it, or create an entry and delete the old one.

    For more information about network ACLs, see Network ACLs in the Amazon VPC User Guide.

    See

    AWSEC2CreateNetworkAclEntryRequest

    Declaration

    Objective-C

    - (void)createNetworkAclEntry:
                (nonnull AWSEC2CreateNetworkAclEntryRequest *)request
                completionHandler:
                    (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func createNetworkAclEntry(_ request: AWSEC2CreateNetworkAclEntryRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkAclEntry service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a Network Access Scope.

    Amazon Web Services Network Access Analyzer enables cloud networking and cloud operations teams to verify that their networks on Amazon Web Services conform to their network security and governance objectives. For more information, see the Amazon Web Services Network Access Analyzer Guide.

    See

    AWSEC2CreateNetworkInsightsAccessScopeRequest

    See

    AWSEC2CreateNetworkInsightsAccessScopeResult

    Declaration

    Objective-C

    - (id)createNetworkInsightsAccessScope:
        (nonnull AWSEC2CreateNetworkInsightsAccessScopeRequest *)request;

    Swift

    func createNetworkInsightsAccessScope(_ request: AWSEC2CreateNetworkInsightsAccessScopeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkInsightsAccessScope service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateNetworkInsightsAccessScopeResult.

  • Creates a Network Access Scope.

    Amazon Web Services Network Access Analyzer enables cloud networking and cloud operations teams to verify that their networks on Amazon Web Services conform to their network security and governance objectives. For more information, see the Amazon Web Services Network Access Analyzer Guide.

    See

    AWSEC2CreateNetworkInsightsAccessScopeRequest

    See

    AWSEC2CreateNetworkInsightsAccessScopeResult

    Declaration

    Objective-C

    - (void)createNetworkInsightsAccessScope:
                (nonnull AWSEC2CreateNetworkInsightsAccessScopeRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2CreateNetworkInsightsAccessScopeResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func createNetworkInsightsAccessScope(_ request: AWSEC2CreateNetworkInsightsAccessScopeRequest) async throws -> AWSEC2CreateNetworkInsightsAccessScopeResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkInsightsAccessScope service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a path to analyze for reachability.

    Reachability Analyzer enables you to analyze and debug network reachability between two resources in your virtual private cloud (VPC). For more information, see the Reachability Analyzer Guide.

    See

    AWSEC2CreateNetworkInsightsPathRequest

    See

    AWSEC2CreateNetworkInsightsPathResult

    Declaration

    Objective-C

    - (id)createNetworkInsightsPath:
        (nonnull AWSEC2CreateNetworkInsightsPathRequest *)request;

    Swift

    func createNetworkInsightsPath(_ request: AWSEC2CreateNetworkInsightsPathRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkInsightsPath service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateNetworkInsightsPathResult.

  • Creates a path to analyze for reachability.

    Reachability Analyzer enables you to analyze and debug network reachability between two resources in your virtual private cloud (VPC). For more information, see the Reachability Analyzer Guide.

    See

    AWSEC2CreateNetworkInsightsPathRequest

    See

    AWSEC2CreateNetworkInsightsPathResult

    Declaration

    Objective-C

    - (void)createNetworkInsightsPath:
                (nonnull AWSEC2CreateNetworkInsightsPathRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2CreateNetworkInsightsPathResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func createNetworkInsightsPath(_ request: AWSEC2CreateNetworkInsightsPathRequest) async throws -> AWSEC2CreateNetworkInsightsPathResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkInsightsPath service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a network interface in the specified subnet.

    The number of IP addresses you can assign to a network interface varies by instance type.

    For more information about network interfaces, see Elastic network interfaces in the Amazon EC2 User Guide.

    See

    AWSEC2CreateNetworkInterfaceRequest

    See

    AWSEC2CreateNetworkInterfaceResult

    Declaration

    Objective-C

    - (id)createNetworkInterface:
        (nonnull AWSEC2CreateNetworkInterfaceRequest *)request;

    Swift

    func createNetworkInterface(_ request: AWSEC2CreateNetworkInterfaceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkInterface service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateNetworkInterfaceResult.

  • Creates a network interface in the specified subnet.

    The number of IP addresses you can assign to a network interface varies by instance type.

    For more information about network interfaces, see Elastic network interfaces in the Amazon EC2 User Guide.

    See

    AWSEC2CreateNetworkInterfaceRequest

    See

    AWSEC2CreateNetworkInterfaceResult

    Declaration

    Objective-C

    - (void)
        createNetworkInterface:
            (nonnull AWSEC2CreateNetworkInterfaceRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2CreateNetworkInterfaceResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func createNetworkInterface(_ request: AWSEC2CreateNetworkInterfaceRequest) async throws -> AWSEC2CreateNetworkInterfaceResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkInterface service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.

    You can grant permission to a single Amazon Web Services account only, and only one account at a time.

    See

    AWSEC2CreateNetworkInterfacePermissionRequest

    See

    AWSEC2CreateNetworkInterfacePermissionResult

    Declaration

    Objective-C

    - (id)createNetworkInterfacePermission:
        (nonnull AWSEC2CreateNetworkInterfacePermissionRequest *)request;

    Swift

    func createNetworkInterfacePermission(_ request: AWSEC2CreateNetworkInterfacePermissionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkInterfacePermission service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateNetworkInterfacePermissionResult.

  • Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.

    You can grant permission to a single Amazon Web Services account only, and only one account at a time.

    See

    AWSEC2CreateNetworkInterfacePermissionRequest

    See

    AWSEC2CreateNetworkInterfacePermissionResult

    Declaration

    Objective-C

    - (void)createNetworkInterfacePermission:
                (nonnull AWSEC2CreateNetworkInterfacePermissionRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2CreateNetworkInterfacePermissionResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func createNetworkInterfacePermission(_ request: AWSEC2CreateNetworkInterfacePermissionRequest) async throws -> AWSEC2CreateNetworkInterfacePermissionResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateNetworkInterfacePermission service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.

    A cluster placement group is a logical grouping of instances within a single Availability Zone that benefit from low network latency, high network throughput. A spread placement group places instances on distinct hardware. A partition placement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition.

    For more information, see Placement groups in the Amazon EC2 User Guide.

    See

    AWSEC2CreatePlacementGroupRequest

    See

    AWSEC2CreatePlacementGroupResult

    Declaration

    Objective-C

    - (id)createPlacementGroup:(nonnull AWSEC2CreatePlacementGroupRequest *)request;

    Swift

    func createPlacementGroup(_ request: AWSEC2CreatePlacementGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreatePlacementGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreatePlacementGroupResult.

  • Creates a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.

    A cluster placement group is a logical grouping of instances within a single Availability Zone that benefit from low network latency, high network throughput. A spread placement group places instances on distinct hardware. A partition placement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition.

    For more information, see Placement groups in the Amazon EC2 User Guide.

    See

    AWSEC2CreatePlacementGroupRequest

    See

    AWSEC2CreatePlacementGroupResult

    Declaration

    Objective-C

    - (void)createPlacementGroup:
                (nonnull AWSEC2CreatePlacementGroupRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2CreatePlacementGroupResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func createPlacementGroup(_ request: AWSEC2CreatePlacementGroupRequest) async throws -> AWSEC2CreatePlacementGroupResult

    Parameters

    request

    A container for the necessary parameters to execute the CreatePlacementGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a public IPv4 address pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only. To monitor the status of pool creation, use DescribePublicIpv4Pools.

    See

    AWSEC2CreatePublicIpv4PoolRequest

    See

    AWSEC2CreatePublicIpv4PoolResult

    Declaration

    Objective-C

    - (id)createPublicIpv4Pool:(nonnull AWSEC2CreatePublicIpv4PoolRequest *)request;

    Swift

    func createPublicIpv4Pool(_ request: AWSEC2CreatePublicIpv4PoolRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreatePublicIpv4Pool service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreatePublicIpv4PoolResult.

  • Creates a public IPv4 address pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only. To monitor the status of pool creation, use DescribePublicIpv4Pools.

    See

    AWSEC2CreatePublicIpv4PoolRequest

    See

    AWSEC2CreatePublicIpv4PoolResult

    Declaration

    Objective-C

    - (void)createPublicIpv4Pool:
                (nonnull AWSEC2CreatePublicIpv4PoolRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2CreatePublicIpv4PoolResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func createPublicIpv4Pool(_ request: AWSEC2CreatePublicIpv4PoolRequest) async throws -> AWSEC2CreatePublicIpv4PoolResult

    Parameters

    request

    A container for the necessary parameters to execute the CreatePublicIpv4Pool service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Replaces the EBS-backed root volume for a running instance with a new volume that is restored to the original root volume’s launch state, that is restored to a specific snapshot taken from the original root volume, or that is restored from an AMI that has the same key characteristics as that of the instance.

    For more information, see Replace a root volume in the Amazon EC2 User Guide.

    See

    AWSEC2CreateReplaceRootVolumeTaskRequest

    See

    AWSEC2CreateReplaceRootVolumeTaskResult

    Declaration

    Objective-C

    - (id)createReplaceRootVolumeTask:
        (nonnull AWSEC2CreateReplaceRootVolumeTaskRequest *)request;

    Swift

    func createReplaceRootVolumeTask(_ request: AWSEC2CreateReplaceRootVolumeTaskRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateReplaceRootVolumeTask service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateReplaceRootVolumeTaskResult.

  • Replaces the EBS-backed root volume for a running instance with a new volume that is restored to the original root volume’s launch state, that is restored to a specific snapshot taken from the original root volume, or that is restored from an AMI that has the same key characteristics as that of the instance.

    For more information, see Replace a root volume in the Amazon EC2 User Guide.

    See

    AWSEC2CreateReplaceRootVolumeTaskRequest

    See

    AWSEC2CreateReplaceRootVolumeTaskResult

    Declaration

    Objective-C

    - (void)createReplaceRootVolumeTask:
                (nonnull AWSEC2CreateReplaceRootVolumeTaskRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2CreateReplaceRootVolumeTaskResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func createReplaceRootVolumeTask(_ request: AWSEC2CreateReplaceRootVolumeTaskRequest) async throws -> AWSEC2CreateReplaceRootVolumeTaskResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateReplaceRootVolumeTask service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Standard Reserved Instance listing at a time. To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances operation.

    Only Standard Reserved Instances can be sold in the Reserved Instance Marketplace. Convertible Reserved Instances cannot be sold.

    The Reserved Instance Marketplace matches sellers who want to resell Standard Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

    To sell your Standard Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Standard Reserved Instances, and specify the upfront price to receive for them. Your Standard Reserved Instance listings then become available for purchase. To view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.

    For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

    See

    AWSEC2CreateReservedInstancesListingRequest

    See

    AWSEC2CreateReservedInstancesListingResult

    Declaration

    Objective-C

    - (id)createReservedInstancesListing:
        (nonnull AWSEC2CreateReservedInstancesListingRequest *)request;

    Swift

    func createReservedInstancesListing(_ request: AWSEC2CreateReservedInstancesListingRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateReservedInstancesListing service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateReservedInstancesListingResult.

  • Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Standard Reserved Instance listing at a time. To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances operation.

    Only Standard Reserved Instances can be sold in the Reserved Instance Marketplace. Convertible Reserved Instances cannot be sold.

    The Reserved Instance Marketplace matches sellers who want to resell Standard Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

    To sell your Standard Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Standard Reserved Instances, and specify the upfront price to receive for them. Your Standard Reserved Instance listings then become available for purchase. To view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.

    For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

    See

    AWSEC2CreateReservedInstancesListingRequest

    See

    AWSEC2CreateReservedInstancesListingResult

    Declaration

    Objective-C

    - (void)
        createReservedInstancesListing:
            (nonnull AWSEC2CreateReservedInstancesListingRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2CreateReservedInstancesListingResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func createReservedInstancesListing(_ request: AWSEC2CreateReservedInstancesListingRequest) async throws -> AWSEC2CreateReservedInstancesListingResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateReservedInstancesListing service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask.

    To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon EC2 User Guide.

    For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.

    See

    AWSEC2CreateRestoreImageTaskRequest

    See

    AWSEC2CreateRestoreImageTaskResult

    Declaration

    Objective-C

    - (id)createRestoreImageTask:
        (nonnull AWSEC2CreateRestoreImageTaskRequest *)request;

    Swift

    func createRestoreImageTask(_ request: AWSEC2CreateRestoreImageTaskRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateRestoreImageTask service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateRestoreImageTaskResult.

  • Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask.

    To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon EC2 User Guide.

    For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.

    See

    AWSEC2CreateRestoreImageTaskRequest

    See

    AWSEC2CreateRestoreImageTaskResult

    Declaration

    Objective-C

    - (void)
        createRestoreImageTask:
            (nonnull AWSEC2CreateRestoreImageTaskRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2CreateRestoreImageTaskResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func createRestoreImageTask(_ request: AWSEC2CreateRestoreImageTaskRequest) async throws -> AWSEC2CreateRestoreImageTaskResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateRestoreImageTask service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a route in a route table within a VPC.

    You must specify either a destination CIDR block or a prefix list ID. You must also specify exactly one of the resources from the parameter list.

    When determining how to route traffic, we use the route with the most specific match. For example, traffic is destined for the IPv4 address 192.0.2.3, and the route table includes the following two IPv4 routes:

    • 192.0.2.0/24 (goes to some target A)

    • 192.0.2.0/28 (goes to some target B)

    Both routes apply to the traffic destined for 192.0.2.3. However, the second route in the list covers a smaller number of IP addresses and is therefore more specific, so we use that route to determine where to target the traffic.

    For more information about route tables, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2CreateRouteRequest

    See

    AWSEC2CreateRouteResult

    Declaration

    Objective-C

    - (id)createRoute:(nonnull AWSEC2CreateRouteRequest *)request;

    Swift

    func createRoute(_ request: AWSEC2CreateRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateRouteResult.

  • Creates a route in a route table within a VPC.

    You must specify either a destination CIDR block or a prefix list ID. You must also specify exactly one of the resources from the parameter list.

    When determining how to route traffic, we use the route with the most specific match. For example, traffic is destined for the IPv4 address 192.0.2.3, and the route table includes the following two IPv4 routes:

    • 192.0.2.0/24 (goes to some target A)

    • 192.0.2.0/28 (goes to some target B)

    Both routes apply to the traffic destined for 192.0.2.3. However, the second route in the list covers a smaller number of IP addresses and is therefore more specific, so we use that route to determine where to target the traffic.

    For more information about route tables, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2CreateRouteRequest

    See

    AWSEC2CreateRouteResult

    Declaration

    Objective-C

    - (void)createRoute:(nonnull AWSEC2CreateRouteRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2CreateRouteResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func createRoute(_ request: AWSEC2CreateRouteRequest) async throws -> AWSEC2CreateRouteResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

    For more information, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2CreateRouteTableRequest

    See

    AWSEC2CreateRouteTableResult

    Declaration

    Objective-C

    - (id)createRouteTable:(nonnull AWSEC2CreateRouteTableRequest *)request;

    Swift

    func createRouteTable(_ request: AWSEC2CreateRouteTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateRouteTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateRouteTableResult.

  • Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.

    For more information, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2CreateRouteTableRequest

    See

    AWSEC2CreateRouteTableResult

    Declaration

    Objective-C

    - (void)createRouteTable:(nonnull AWSEC2CreateRouteTableRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2CreateRouteTableResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func createRouteTable(_ request: AWSEC2CreateRouteTableRequest) async throws -> AWSEC2CreateRouteTableResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateRouteTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a security group.

    A security group acts as a virtual firewall for your instance to control inbound and outbound traffic. For more information, see Amazon EC2 security groups in the Amazon Elastic Compute Cloud User Guide and Security groups for your VPC in the Amazon Virtual Private Cloud User Guide.

    When you create a security group, you specify a friendly name of your choice. You can’t have two security groups for the same VPC with the same name.

    You have a default security group for use in your VPC. If you don’t specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.

    You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.

    For more information about VPC security group limits, see Amazon VPC Limits.

    See

    AWSEC2CreateSecurityGroupRequest

    See

    AWSEC2CreateSecurityGroupResult

    Declaration

    Objective-C

    - (id)createSecurityGroup:(nonnull AWSEC2CreateSecurityGroupRequest *)request;

    Swift

    func createSecurityGroup(_ request: AWSEC2CreateSecurityGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateSecurityGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateSecurityGroupResult.

  • Creates a security group.

    A security group acts as a virtual firewall for your instance to control inbound and outbound traffic. For more information, see Amazon EC2 security groups in the Amazon Elastic Compute Cloud User Guide and Security groups for your VPC in the Amazon Virtual Private Cloud User Guide.

    When you create a security group, you specify a friendly name of your choice. You can’t have two security groups for the same VPC with the same name.

    You have a default security group for use in your VPC. If you don’t specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.

    You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.

    For more information about VPC security group limits, see Amazon VPC Limits.

    See

    AWSEC2CreateSecurityGroupRequest

    See

    AWSEC2CreateSecurityGroupResult

    Declaration

    Objective-C

    - (void)createSecurityGroup:(nonnull AWSEC2CreateSecurityGroupRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2CreateSecurityGroupResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func createSecurityGroup(_ request: AWSEC2CreateSecurityGroupRequest) async throws -> AWSEC2CreateSecurityGroupResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateSecurityGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.

    You can create snapshots of volumes in a Region and volumes on an Outpost. If you create a snapshot of a volume in a Region, the snapshot must be stored in the same Region as the volume. If you create a snapshot of a volume on an Outpost, the snapshot can be stored on the same Outpost as the volume, or in the Region for that Outpost.

    When a snapshot is created, any Amazon Web Services Marketplace product codes that are associated with the source volume are propagated to the snapshot.

    You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued; this might exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is pending.

    When you create a snapshot for an EBS volume that serves as a root device, we recommend that you stop the instance before taking the snapshot.

    Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected.

    You can tag your snapshots during creation. For more information, see Tag your Amazon EC2 resources in the Amazon EC2 User Guide.

    For more information, see Amazon EBS and Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2CreateSnapshotRequest

    See

    AWSEC2Snapshot

    Declaration

    Objective-C

    - (id)createSnapshot:(nonnull AWSEC2CreateSnapshotRequest *)request;

    Swift

    func createSnapshot(_ request: AWSEC2CreateSnapshotRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateSnapshot service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2Snapshot.

  • Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.

    You can create snapshots of volumes in a Region and volumes on an Outpost. If you create a snapshot of a volume in a Region, the snapshot must be stored in the same Region as the volume. If you create a snapshot of a volume on an Outpost, the snapshot can be stored on the same Outpost as the volume, or in the Region for that Outpost.

    When a snapshot is created, any Amazon Web Services Marketplace product codes that are associated with the source volume are propagated to the snapshot.

    You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued; this might exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is pending.

    When you create a snapshot for an EBS volume that serves as a root device, we recommend that you stop the instance before taking the snapshot.

    Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected.

    You can tag your snapshots during creation. For more information, see Tag your Amazon EC2 resources in the Amazon EC2 User Guide.

    For more information, see Amazon EBS and Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2CreateSnapshotRequest

    See

    AWSEC2Snapshot

    Declaration

    Objective-C

    - (void)createSnapshot:(nonnull AWSEC2CreateSnapshotRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2Snapshot *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func createSnapshot(_ request: AWSEC2CreateSnapshotRequest) async throws -> AWSEC2Snapshot

    Parameters

    request

    A container for the necessary parameters to execute the CreateSnapshot service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates crash-consistent snapshots of multiple EBS volumes and stores the data in S3. Volumes are chosen by specifying an instance. Any attached volumes will produce one snapshot each that is crash-consistent across the instance.

    You can include all of the volumes currently attached to the instance, or you can exclude the root volume or specific data (non-root) volumes from the multi-volume snapshot set.

    You can create multi-volume snapshots of instances in a Region and instances on an Outpost. If you create snapshots from an instance in a Region, the snapshots must be stored in the same Region as the instance. If you create snapshots from an instance on an Outpost, the snapshots can be stored on the same Outpost as the instance, or in the Region for that Outpost.

    See

    AWSEC2CreateSnapshotsRequest

    See

    AWSEC2CreateSnapshotsResult

    Declaration

    Objective-C

    - (id)createSnapshots:(nonnull AWSEC2CreateSnapshotsRequest *)request;

    Swift

    func createSnapshots(_ request: AWSEC2CreateSnapshotsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateSnapshots service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateSnapshotsResult.

  • Creates crash-consistent snapshots of multiple EBS volumes and stores the data in S3. Volumes are chosen by specifying an instance. Any attached volumes will produce one snapshot each that is crash-consistent across the instance.

    You can include all of the volumes currently attached to the instance, or you can exclude the root volume or specific data (non-root) volumes from the multi-volume snapshot set.

    You can create multi-volume snapshots of instances in a Region and instances on an Outpost. If you create snapshots from an instance in a Region, the snapshots must be stored in the same Region as the instance. If you create snapshots from an instance on an Outpost, the snapshots can be stored on the same Outpost as the instance, or in the Region for that Outpost.

    See

    AWSEC2CreateSnapshotsRequest

    See

    AWSEC2CreateSnapshotsResult

    Declaration

    Objective-C

    - (void)createSnapshots:(nonnull AWSEC2CreateSnapshotsRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2CreateSnapshotsResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func createSnapshots(_ request: AWSEC2CreateSnapshotsRequest) async throws -> AWSEC2CreateSnapshotsResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateSnapshots service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per Amazon Web Services account. For more information, see Spot Instance data feed in the Amazon EC2 User Guide.

    See

    AWSEC2CreateSpotDatafeedSubscriptionRequest

    See

    AWSEC2CreateSpotDatafeedSubscriptionResult

    Declaration

    Objective-C

    - (id)createSpotDatafeedSubscription:
        (nonnull AWSEC2CreateSpotDatafeedSubscriptionRequest *)request;

    Swift

    func createSpotDatafeedSubscription(_ request: AWSEC2CreateSpotDatafeedSubscriptionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateSpotDatafeedSubscription service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateSpotDatafeedSubscriptionResult.

  • Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per Amazon Web Services account. For more information, see Spot Instance data feed in the Amazon EC2 User Guide.

    See

    AWSEC2CreateSpotDatafeedSubscriptionRequest

    See

    AWSEC2CreateSpotDatafeedSubscriptionResult

    Declaration

    Objective-C

    - (void)
        createSpotDatafeedSubscription:
            (nonnull AWSEC2CreateSpotDatafeedSubscriptionRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2CreateSpotDatafeedSubscriptionResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func createSpotDatafeedSubscription(_ request: AWSEC2CreateSpotDatafeedSubscriptionRequest) async throws -> AWSEC2CreateSpotDatafeedSubscriptionResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateSpotDatafeedSubscription service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Stores an AMI as a single object in an Amazon S3 bucket.

    To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon EC2 User Guide.

    For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.

    See

    AWSEC2CreateStoreImageTaskRequest

    See

    AWSEC2CreateStoreImageTaskResult

    Declaration

    Objective-C

    - (id)createStoreImageTask:(nonnull AWSEC2CreateStoreImageTaskRequest *)request;

    Swift

    func createStoreImageTask(_ request: AWSEC2CreateStoreImageTaskRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateStoreImageTask service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateStoreImageTaskResult.

  • Stores an AMI as a single object in an Amazon S3 bucket.

    To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon EC2 User Guide.

    For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.

    See

    AWSEC2CreateStoreImageTaskRequest

    See

    AWSEC2CreateStoreImageTaskResult

    Declaration

    Objective-C

    - (void)createStoreImageTask:
                (nonnull AWSEC2CreateStoreImageTaskRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2CreateStoreImageTaskResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func createStoreImageTask(_ request: AWSEC2CreateStoreImageTaskRequest) async throws -> AWSEC2CreateStoreImageTaskResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateStoreImageTask service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a subnet in the specified VPC. For an IPv4 only subnet, specify an IPv4 CIDR block. If the VPC has an IPv6 CIDR block, you can create an IPv6 only subnet or a dual stack subnet instead. For an IPv6 only subnet, specify an IPv6 CIDR block. For a dual stack subnet, specify both an IPv4 CIDR block and an IPv6 CIDR block.

    A subnet CIDR block must not overlap the CIDR block of an existing subnet in the VPC. After you create a subnet, you can’t change its CIDR block.

    The allowed size for an IPv4 subnet is between a /28 netmask (16 IP addresses) and a /16 netmask (65,536 IP addresses). Amazon Web Services reserves both the first four and the last IPv4 address in each subnet’s CIDR block. They’re not available for your use.

    If you’ve associated an IPv6 CIDR block with your VPC, you can associate an IPv6 CIDR block with a subnet when you create it.

    If you add more than one subnet to a VPC, they’re set up in a star topology with a logical router in the middle.

    When you stop an instance in a subnet, it retains its private IPv4 address. It’s therefore possible to have a subnet with no running instances (they’re all stopped), but no remaining IP addresses available.

    For more information, see Subnets in the Amazon VPC User Guide.

    See

    AWSEC2CreateSubnetRequest

    See

    AWSEC2CreateSubnetResult

    Declaration

    Objective-C

    - (id)createSubnet:(nonnull AWSEC2CreateSubnetRequest *)request;

    Swift

    func createSubnet(_ request: AWSEC2CreateSubnetRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateSubnet service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateSubnetResult.

  • Creates a subnet in the specified VPC. For an IPv4 only subnet, specify an IPv4 CIDR block. If the VPC has an IPv6 CIDR block, you can create an IPv6 only subnet or a dual stack subnet instead. For an IPv6 only subnet, specify an IPv6 CIDR block. For a dual stack subnet, specify both an IPv4 CIDR block and an IPv6 CIDR block.

    A subnet CIDR block must not overlap the CIDR block of an existing subnet in the VPC. After you create a subnet, you can’t change its CIDR block.

    The allowed size for an IPv4 subnet is between a /28 netmask (16 IP addresses) and a /16 netmask (65,536 IP addresses). Amazon Web Services reserves both the first four and the last IPv4 address in each subnet’s CIDR block. They’re not available for your use.

    If you’ve associated an IPv6 CIDR block with your VPC, you can associate an IPv6 CIDR block with a subnet when you create it.

    If you add more than one subnet to a VPC, they’re set up in a star topology with a logical router in the middle.

    When you stop an instance in a subnet, it retains its private IPv4 address. It’s therefore possible to have a subnet with no running instances (they’re all stopped), but no remaining IP addresses available.

    For more information, see Subnets in the Amazon VPC User Guide.

    See

    AWSEC2CreateSubnetRequest

    See

    AWSEC2CreateSubnetResult

    Declaration

    Objective-C

    - (void)createSubnet:(nonnull AWSEC2CreateSubnetRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2CreateSubnetResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func createSubnet(_ request: AWSEC2CreateSubnetRequest) async throws -> AWSEC2CreateSubnetResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateSubnet service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a subnet CIDR reservation. For more information, see Subnet CIDR reservations in the Amazon VPC User Guide and Assign prefixes to network interfaces in the Amazon EC2 User Guide.

    See

    AWSEC2CreateSubnetCidrReservationRequest

    See

    AWSEC2CreateSubnetCidrReservationResult

    Declaration

    Objective-C

    - (id)createSubnetCidrReservation:
        (nonnull AWSEC2CreateSubnetCidrReservationRequest *)request;

    Swift

    func createSubnetCidrReservation(_ request: AWSEC2CreateSubnetCidrReservationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateSubnetCidrReservation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateSubnetCidrReservationResult.

  • Creates a subnet CIDR reservation. For more information, see Subnet CIDR reservations in the Amazon VPC User Guide and Assign prefixes to network interfaces in the Amazon EC2 User Guide.

    See

    AWSEC2CreateSubnetCidrReservationRequest

    See

    AWSEC2CreateSubnetCidrReservationResult

    Declaration

    Objective-C

    - (void)createSubnetCidrReservation:
                (nonnull AWSEC2CreateSubnetCidrReservationRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2CreateSubnetCidrReservationResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func createSubnetCidrReservation(_ request: AWSEC2CreateSubnetCidrReservationRequest) async throws -> AWSEC2CreateSubnetCidrReservationResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateSubnetCidrReservation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.

    For more information about tags, see Tag your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide. For more information about creating IAM policies that control users’ access to resources based on tags, see Supported resource-level permissions for Amazon EC2 API actions in the Amazon Elastic Compute Cloud User Guide.

    See

    AWSEC2CreateTagsRequest

    Declaration

    Objective-C

    - (id)createTags:(nonnull AWSEC2CreateTagsRequest *)request;

    Swift

    func createTags(_ request: AWSEC2CreateTagsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTags service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.

    For more information about tags, see Tag your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide. For more information about creating IAM policies that control users’ access to resources based on tags, see Supported resource-level permissions for Amazon EC2 API actions in the Amazon Elastic Compute Cloud User Guide.

    See

    AWSEC2CreateTagsRequest

    Declaration

    Objective-C

    - (void)createTags:(nonnull AWSEC2CreateTagsRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func createTags(_ request: AWSEC2CreateTagsRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the CreateTags service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • 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

    AWSEC2CreateTrafficMirrorFilterRequest

    See

    AWSEC2CreateTrafficMirrorFilterResult

    Declaration

    Objective-C

    - (id)createTrafficMirrorFilter:
        (nonnull AWSEC2CreateTrafficMirrorFilterRequest *)request;

    Swift

    func createTrafficMirrorFilter(_ request: AWSEC2CreateTrafficMirrorFilterRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTrafficMirrorFilter service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTrafficMirrorFilterResult.

  • 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

    AWSEC2CreateTrafficMirrorFilterRequest

    See

    AWSEC2CreateTrafficMirrorFilterResult

    Declaration

    Objective-C

    - (void)createTrafficMirrorFilter:
                (nonnull AWSEC2CreateTrafficMirrorFilterRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2CreateTrafficMirrorFilterResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func createTrafficMirrorFilter(_ request: AWSEC2CreateTrafficMirrorFilterRequest) async throws -> AWSEC2CreateTrafficMirrorFilterResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTrafficMirrorFilter service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • 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

    AWSEC2CreateTrafficMirrorFilterRuleRequest

    See

    AWSEC2CreateTrafficMirrorFilterRuleResult

    Declaration

    Objective-C

    - (id)createTrafficMirrorFilterRule:
        (nonnull AWSEC2CreateTrafficMirrorFilterRuleRequest *)request;

    Swift

    func createTrafficMirrorFilterRule(_ request: AWSEC2CreateTrafficMirrorFilterRuleRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTrafficMirrorFilterRule service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTrafficMirrorFilterRuleResult.

  • 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

    AWSEC2CreateTrafficMirrorFilterRuleRequest

    See

    AWSEC2CreateTrafficMirrorFilterRuleResult

    Declaration

    Objective-C

    - (void)
        createTrafficMirrorFilterRule:
            (nonnull AWSEC2CreateTrafficMirrorFilterRuleRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2CreateTrafficMirrorFilterRuleResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func createTrafficMirrorFilterRule(_ request: AWSEC2CreateTrafficMirrorFilterRuleRequest) async throws -> AWSEC2CreateTrafficMirrorFilterRuleResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTrafficMirrorFilterRule service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a Traffic Mirror session.

    A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.

    The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.

    By default, no traffic is mirrored. Use CreateTrafficMirrorFilter to create filter rules that specify the traffic to mirror.

    See

    AWSEC2CreateTrafficMirrorSessionRequest

    See

    AWSEC2CreateTrafficMirrorSessionResult

    Declaration

    Objective-C

    - (id)createTrafficMirrorSession:
        (nonnull AWSEC2CreateTrafficMirrorSessionRequest *)request;

    Swift

    func createTrafficMirrorSession(_ request: AWSEC2CreateTrafficMirrorSessionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTrafficMirrorSession service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTrafficMirrorSessionResult.

  • Creates a Traffic Mirror session.

    A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.

    The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.

    By default, no traffic is mirrored. Use CreateTrafficMirrorFilter to create filter rules that specify the traffic to mirror.

    See

    AWSEC2CreateTrafficMirrorSessionRequest

    See

    AWSEC2CreateTrafficMirrorSessionResult

    Declaration

    Objective-C

    - (void)createTrafficMirrorSession:
                (nonnull AWSEC2CreateTrafficMirrorSessionRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2CreateTrafficMirrorSessionResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func createTrafficMirrorSession(_ request: AWSEC2CreateTrafficMirrorSessionRequest) async throws -> AWSEC2CreateTrafficMirrorSessionResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTrafficMirrorSession service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a target for your Traffic Mirror session.

    A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in different VPCs connected via VPC peering or a transit gateway.

    A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint.

    To use the target in a Traffic Mirror session, use CreateTrafficMirrorSession.

    See

    AWSEC2CreateTrafficMirrorTargetRequest

    See

    AWSEC2CreateTrafficMirrorTargetResult

    Declaration

    Objective-C

    - (id)createTrafficMirrorTarget:
        (nonnull AWSEC2CreateTrafficMirrorTargetRequest *)request;

    Swift

    func createTrafficMirrorTarget(_ request: AWSEC2CreateTrafficMirrorTargetRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTrafficMirrorTarget service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTrafficMirrorTargetResult.

  • Creates a target for your Traffic Mirror session.

    A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in different VPCs connected via VPC peering or a transit gateway.

    A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint.

    To use the target in a Traffic Mirror session, use CreateTrafficMirrorSession.

    See

    AWSEC2CreateTrafficMirrorTargetRequest

    See

    AWSEC2CreateTrafficMirrorTargetResult

    Declaration

    Objective-C

    - (void)createTrafficMirrorTarget:
                (nonnull AWSEC2CreateTrafficMirrorTargetRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2CreateTrafficMirrorTargetResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func createTrafficMirrorTarget(_ request: AWSEC2CreateTrafficMirrorTargetRequest) async throws -> AWSEC2CreateTrafficMirrorTargetResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTrafficMirrorTarget service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a transit gateway.

    You can use a transit gateway to interconnect your virtual private clouds (VPC) and on-premises networks. After the transit gateway enters the available state, you can attach your VPCs and VPN connections to the transit gateway.

    To attach your VPCs, use CreateTransitGatewayVpcAttachment.

    To attach a VPN connection, use CreateCustomerGateway to create a customer gateway and specify the ID of the customer gateway and the ID of the transit gateway in a call to CreateVpnConnection.

    When you create a transit gateway, we create a default transit gateway route table and use it as the default association route table and the default propagation route table. You can use CreateTransitGatewayRouteTable to create additional transit gateway route tables. If you disable automatic route propagation, we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation to propagate routes from a resource attachment to a transit gateway route table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable to associate a resource attachment with a transit gateway route table.

    See

    AWSEC2CreateTransitGatewayRequest

    See

    AWSEC2CreateTransitGatewayResult

    Declaration

    Objective-C

    - (id)createTransitGateway:(nonnull AWSEC2CreateTransitGatewayRequest *)request;

    Swift

    func createTransitGateway(_ request: AWSEC2CreateTransitGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayResult.

  • Creates a transit gateway.

    You can use a transit gateway to interconnect your virtual private clouds (VPC) and on-premises networks. After the transit gateway enters the available state, you can attach your VPCs and VPN connections to the transit gateway.

    To attach your VPCs, use CreateTransitGatewayVpcAttachment.

    To attach a VPN connection, use CreateCustomerGateway to create a customer gateway and specify the ID of the customer gateway and the ID of the transit gateway in a call to CreateVpnConnection.

    When you create a transit gateway, we create a default transit gateway route table and use it as the default association route table and the default propagation route table. You can use CreateTransitGatewayRouteTable to create additional transit gateway route tables. If you disable automatic route propagation, we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation to propagate routes from a resource attachment to a transit gateway route table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable to associate a resource attachment with a transit gateway route table.

    See

    AWSEC2CreateTransitGatewayRequest

    See

    AWSEC2CreateTransitGatewayResult

    Declaration

    Objective-C

    - (void)createTransitGateway:
                (nonnull AWSEC2CreateTransitGatewayRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2CreateTransitGatewayResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func createTransitGateway(_ request: AWSEC2CreateTransitGatewayRequest) async throws -> AWSEC2CreateTransitGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a Connect attachment from a specified transit gateway attachment. A Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a transit gateway and an appliance.

    A Connect attachment uses an existing VPC or Amazon Web Services Direct Connect attachment as the underlying transport mechanism.

    See

    AWSEC2CreateTransitGatewayConnectRequest

    See

    AWSEC2CreateTransitGatewayConnectResult

    Declaration

    Objective-C

    - (id)createTransitGatewayConnect:
        (nonnull AWSEC2CreateTransitGatewayConnectRequest *)request;

    Swift

    func createTransitGatewayConnect(_ request: AWSEC2CreateTransitGatewayConnectRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayConnect service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayConnectResult.

  • Creates a Connect attachment from a specified transit gateway attachment. A Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a transit gateway and an appliance.

    A Connect attachment uses an existing VPC or Amazon Web Services Direct Connect attachment as the underlying transport mechanism.

    See

    AWSEC2CreateTransitGatewayConnectRequest

    See

    AWSEC2CreateTransitGatewayConnectResult

    Declaration

    Objective-C

    - (void)createTransitGatewayConnect:
                (nonnull AWSEC2CreateTransitGatewayConnectRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2CreateTransitGatewayConnectResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func createTransitGatewayConnect(_ request: AWSEC2CreateTransitGatewayConnectRequest) async throws -> AWSEC2CreateTransitGatewayConnectResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayConnect service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance.

    The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6).

    For more information, see Connect peers in the Amazon Web Services Transit Gateways Guide.

    See

    AWSEC2CreateTransitGatewayConnectPeerRequest

    See

    AWSEC2CreateTransitGatewayConnectPeerResult

    Declaration

    Objective-C

    - (id)createTransitGatewayConnectPeer:
        (nonnull AWSEC2CreateTransitGatewayConnectPeerRequest *)request;

    Swift

    func createTransitGatewayConnectPeer(_ request: AWSEC2CreateTransitGatewayConnectPeerRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayConnectPeer service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayConnectPeerResult.

  • Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance.

    The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6).

    For more information, see Connect peers in the Amazon Web Services Transit Gateways Guide.

    See

    AWSEC2CreateTransitGatewayConnectPeerRequest

    See

    AWSEC2CreateTransitGatewayConnectPeerResult

    Declaration

    Objective-C

    - (void)createTransitGatewayConnectPeer:
                (nonnull AWSEC2CreateTransitGatewayConnectPeerRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2CreateTransitGatewayConnectPeerResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func createTransitGatewayConnectPeer(_ request: AWSEC2CreateTransitGatewayConnectPeerRequest) async throws -> AWSEC2CreateTransitGatewayConnectPeerResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayConnectPeer service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a multicast domain using the specified transit gateway.

    The transit gateway must be in the available state before you create a domain. Use DescribeTransitGateways to see the state of transit gateway.

    See

    AWSEC2CreateTransitGatewayMulticastDomainRequest

    See

    AWSEC2CreateTransitGatewayMulticastDomainResult

    Declaration

    Objective-C

    - (id)createTransitGatewayMulticastDomain:
        (nonnull AWSEC2CreateTransitGatewayMulticastDomainRequest *)request;

    Swift

    func createTransitGatewayMulticastDomain(_ request: AWSEC2CreateTransitGatewayMulticastDomainRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayMulticastDomain service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayMulticastDomainResult.

  • Creates a multicast domain using the specified transit gateway.

    The transit gateway must be in the available state before you create a domain. Use DescribeTransitGateways to see the state of transit gateway.

    See

    AWSEC2CreateTransitGatewayMulticastDomainRequest

    See

    AWSEC2CreateTransitGatewayMulticastDomainResult

    Declaration

    Objective-C

    - (void)
        createTransitGatewayMulticastDomain:
            (nonnull AWSEC2CreateTransitGatewayMulticastDomainRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2CreateTransitGatewayMulticastDomainResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func createTransitGatewayMulticastDomain(_ request: AWSEC2CreateTransitGatewayMulticastDomainRequest) async throws -> AWSEC2CreateTransitGatewayMulticastDomainResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayMulticastDomain service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). The peer transit gateway can be in your account or a different Amazon Web Services account.

    After you create the peering attachment, the owner of the accepter transit gateway must accept the attachment request.

    See

    AWSEC2CreateTransitGatewayPeeringAttachmentRequest

    See

    AWSEC2CreateTransitGatewayPeeringAttachmentResult

    Declaration

    Objective-C

    - (id)createTransitGatewayPeeringAttachment:
        (nonnull AWSEC2CreateTransitGatewayPeeringAttachmentRequest *)request;

    Swift

    func createTransitGatewayPeeringAttachment(_ request: AWSEC2CreateTransitGatewayPeeringAttachmentRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayPeeringAttachment service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayPeeringAttachmentResult.

  • Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). The peer transit gateway can be in your account or a different Amazon Web Services account.

    After you create the peering attachment, the owner of the accepter transit gateway must accept the attachment request.

    See

    AWSEC2CreateTransitGatewayPeeringAttachmentRequest

    See

    AWSEC2CreateTransitGatewayPeeringAttachmentResult

    Declaration

    Objective-C

    - (void)
        createTransitGatewayPeeringAttachment:
            (nonnull AWSEC2CreateTransitGatewayPeeringAttachmentRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2CreateTransitGatewayPeeringAttachmentResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func createTransitGatewayPeeringAttachment(_ request: AWSEC2CreateTransitGatewayPeeringAttachmentRequest) async throws -> AWSEC2CreateTransitGatewayPeeringAttachmentResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayPeeringAttachment service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a transit gateway policy table.

    See

    AWSEC2CreateTransitGatewayPolicyTableRequest

    See

    AWSEC2CreateTransitGatewayPolicyTableResult

    Declaration

    Objective-C

    - (id)createTransitGatewayPolicyTable:
        (nonnull AWSEC2CreateTransitGatewayPolicyTableRequest *)request;

    Swift

    func createTransitGatewayPolicyTable(_ request: AWSEC2CreateTransitGatewayPolicyTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayPolicyTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayPolicyTableResult.

  • Creates a transit gateway policy table.

    See

    AWSEC2CreateTransitGatewayPolicyTableRequest

    See

    AWSEC2CreateTransitGatewayPolicyTableResult

    Declaration

    Objective-C

    - (void)createTransitGatewayPolicyTable:
                (nonnull AWSEC2CreateTransitGatewayPolicyTableRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2CreateTransitGatewayPolicyTableResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func createTransitGatewayPolicyTable(_ request: AWSEC2CreateTransitGatewayPolicyTableRequest) async throws -> AWSEC2CreateTransitGatewayPolicyTableResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayPolicyTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a reference (route) to a prefix list in a specified transit gateway route table.

    See

    AWSEC2CreateTransitGatewayPrefixListReferenceRequest

    See

    AWSEC2CreateTransitGatewayPrefixListReferenceResult

    Declaration

    Objective-C

    - (id)createTransitGatewayPrefixListReference:
        (nonnull AWSEC2CreateTransitGatewayPrefixListReferenceRequest *)request;

    Swift

    func createTransitGatewayPrefixListReference(_ request: AWSEC2CreateTransitGatewayPrefixListReferenceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayPrefixListReference service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayPrefixListReferenceResult.

  • Creates a reference (route) to a prefix list in a specified transit gateway route table.

    See

    AWSEC2CreateTransitGatewayPrefixListReferenceRequest

    See

    AWSEC2CreateTransitGatewayPrefixListReferenceResult

    Declaration

    Objective-C

    - (void)
        createTransitGatewayPrefixListReference:
            (nonnull AWSEC2CreateTransitGatewayPrefixListReferenceRequest *)request
                              completionHandler:
                                  (void (^_Nullable)(
                                      AWSEC2CreateTransitGatewayPrefixListReferenceResult
                                          *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func createTransitGatewayPrefixListReference(_ request: AWSEC2CreateTransitGatewayPrefixListReferenceRequest) async throws -> AWSEC2CreateTransitGatewayPrefixListReferenceResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayPrefixListReference service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a static route for the specified transit gateway route table.

    See

    AWSEC2CreateTransitGatewayRouteRequest

    See

    AWSEC2CreateTransitGatewayRouteResult

    Declaration

    Objective-C

    - (id)createTransitGatewayRoute:
        (nonnull AWSEC2CreateTransitGatewayRouteRequest *)request;

    Swift

    func createTransitGatewayRoute(_ request: AWSEC2CreateTransitGatewayRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayRouteResult.

  • Creates a static route for the specified transit gateway route table.

    See

    AWSEC2CreateTransitGatewayRouteRequest

    See

    AWSEC2CreateTransitGatewayRouteResult

    Declaration

    Objective-C

    - (void)createTransitGatewayRoute:
                (nonnull AWSEC2CreateTransitGatewayRouteRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2CreateTransitGatewayRouteResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func createTransitGatewayRoute(_ request: AWSEC2CreateTransitGatewayRouteRequest) async throws -> AWSEC2CreateTransitGatewayRouteResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a route table for the specified transit gateway.

    See

    AWSEC2CreateTransitGatewayRouteTableRequest

    See

    AWSEC2CreateTransitGatewayRouteTableResult

    Declaration

    Objective-C

    - (id)createTransitGatewayRouteTable:
        (nonnull AWSEC2CreateTransitGatewayRouteTableRequest *)request;

    Swift

    func createTransitGatewayRouteTable(_ request: AWSEC2CreateTransitGatewayRouteTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayRouteTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayRouteTableResult.

  • Creates a route table for the specified transit gateway.

    See

    AWSEC2CreateTransitGatewayRouteTableRequest

    See

    AWSEC2CreateTransitGatewayRouteTableResult

    Declaration

    Objective-C

    - (void)
        createTransitGatewayRouteTable:
            (nonnull AWSEC2CreateTransitGatewayRouteTableRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2CreateTransitGatewayRouteTableResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func createTransitGatewayRouteTable(_ request: AWSEC2CreateTransitGatewayRouteTableRequest) async throws -> AWSEC2CreateTransitGatewayRouteTableResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayRouteTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Advertises a new transit gateway route table.

    See

    AWSEC2CreateTransitGatewayRouteTableAnnouncementRequest

    See

    AWSEC2CreateTransitGatewayRouteTableAnnouncementResult

    Declaration

    Objective-C

    - (id)createTransitGatewayRouteTableAnnouncement:
        (nonnull AWSEC2CreateTransitGatewayRouteTableAnnouncementRequest *)request;

    Swift

    func createTransitGatewayRouteTableAnnouncement(_ request: AWSEC2CreateTransitGatewayRouteTableAnnouncementRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayRouteTableAnnouncement service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayRouteTableAnnouncementResult.

  • Advertises a new transit gateway route table.

    See

    AWSEC2CreateTransitGatewayRouteTableAnnouncementRequest

    See

    AWSEC2CreateTransitGatewayRouteTableAnnouncementResult

    Declaration

    Objective-C

    - (void)
        createTransitGatewayRouteTableAnnouncement:
            (nonnull AWSEC2CreateTransitGatewayRouteTableAnnouncementRequest *)
                request
                                 completionHandler:
                                     (void (^_Nullable)(
                                         AWSEC2CreateTransitGatewayRouteTableAnnouncementResult
                                             *_Nullable,
                                         NSError *_Nullable))completionHandler;

    Swift

    func createTransitGatewayRouteTableAnnouncement(_ request: AWSEC2CreateTransitGatewayRouteTableAnnouncementRequest) async throws -> AWSEC2CreateTransitGatewayRouteTableAnnouncementResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayRouteTableAnnouncement service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Attaches the specified VPC to the specified transit gateway.

    If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.

    To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.

    See

    AWSEC2CreateTransitGatewayVpcAttachmentRequest

    See

    AWSEC2CreateTransitGatewayVpcAttachmentResult

    Declaration

    Objective-C

    - (id)createTransitGatewayVpcAttachment:
        (nonnull AWSEC2CreateTransitGatewayVpcAttachmentRequest *)request;

    Swift

    func createTransitGatewayVpcAttachment(_ request: AWSEC2CreateTransitGatewayVpcAttachmentRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayVpcAttachment service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateTransitGatewayVpcAttachmentResult.

  • Attaches the specified VPC to the specified transit gateway.

    If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.

    To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.

    See

    AWSEC2CreateTransitGatewayVpcAttachmentRequest

    See

    AWSEC2CreateTransitGatewayVpcAttachmentResult

    Declaration

    Objective-C

    - (void)createTransitGatewayVpcAttachment:
                (nonnull AWSEC2CreateTransitGatewayVpcAttachmentRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2CreateTransitGatewayVpcAttachmentResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func createTransitGatewayVpcAttachment(_ request: AWSEC2CreateTransitGatewayVpcAttachmentRequest) async throws -> AWSEC2CreateTransitGatewayVpcAttachmentResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateTransitGatewayVpcAttachment service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • An Amazon Web Services Verified Access endpoint is where you define your application along with an optional endpoint-level access policy.

    See

    AWSEC2CreateVerifiedAccessEndpointRequest

    See

    AWSEC2CreateVerifiedAccessEndpointResult

    Declaration

    Objective-C

    - (id)createVerifiedAccessEndpoint:
        (nonnull AWSEC2CreateVerifiedAccessEndpointRequest *)request;

    Swift

    func createVerifiedAccessEndpoint(_ request: AWSEC2CreateVerifiedAccessEndpointRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVerifiedAccessEndpoint service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVerifiedAccessEndpointResult.

  • An Amazon Web Services Verified Access endpoint is where you define your application along with an optional endpoint-level access policy.

    See

    AWSEC2CreateVerifiedAccessEndpointRequest

    See

    AWSEC2CreateVerifiedAccessEndpointResult

    Declaration

    Objective-C

    - (void)createVerifiedAccessEndpoint:
                (nonnull AWSEC2CreateVerifiedAccessEndpointRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2CreateVerifiedAccessEndpointResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func createVerifiedAccessEndpoint(_ request: AWSEC2CreateVerifiedAccessEndpointRequest) async throws -> AWSEC2CreateVerifiedAccessEndpointResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVerifiedAccessEndpoint service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • An Amazon Web Services Verified Access group is a collection of Amazon Web Services Verified Access endpoints who’s associated applications have similar security requirements. Each instance within a Verified Access group shares an Verified Access policy. For example, you can group all Verified Access instances associated with “sales” applications together and use one common Verified Access policy.

    See

    AWSEC2CreateVerifiedAccessGroupRequest

    See

    AWSEC2CreateVerifiedAccessGroupResult

    Declaration

    Objective-C

    - (id)createVerifiedAccessGroup:
        (nonnull AWSEC2CreateVerifiedAccessGroupRequest *)request;

    Swift

    func createVerifiedAccessGroup(_ request: AWSEC2CreateVerifiedAccessGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVerifiedAccessGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVerifiedAccessGroupResult.

  • An Amazon Web Services Verified Access group is a collection of Amazon Web Services Verified Access endpoints who’s associated applications have similar security requirements. Each instance within a Verified Access group shares an Verified Access policy. For example, you can group all Verified Access instances associated with “sales” applications together and use one common Verified Access policy.

    See

    AWSEC2CreateVerifiedAccessGroupRequest

    See

    AWSEC2CreateVerifiedAccessGroupResult

    Declaration

    Objective-C

    - (void)createVerifiedAccessGroup:
                (nonnull AWSEC2CreateVerifiedAccessGroupRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2CreateVerifiedAccessGroupResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func createVerifiedAccessGroup(_ request: AWSEC2CreateVerifiedAccessGroupRequest) async throws -> AWSEC2CreateVerifiedAccessGroupResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVerifiedAccessGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • An Amazon Web Services Verified Access instance is a regional entity that evaluates application requests and grants access only when your security requirements are met.

    See

    AWSEC2CreateVerifiedAccessInstanceRequest

    See

    AWSEC2CreateVerifiedAccessInstanceResult

    Declaration

    Objective-C

    - (id)createVerifiedAccessInstance:
        (nonnull AWSEC2CreateVerifiedAccessInstanceRequest *)request;

    Swift

    func createVerifiedAccessInstance(_ request: AWSEC2CreateVerifiedAccessInstanceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVerifiedAccessInstance service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVerifiedAccessInstanceResult.

  • An Amazon Web Services Verified Access instance is a regional entity that evaluates application requests and grants access only when your security requirements are met.

    See

    AWSEC2CreateVerifiedAccessInstanceRequest

    See

    AWSEC2CreateVerifiedAccessInstanceResult

    Declaration

    Objective-C

    - (void)createVerifiedAccessInstance:
                (nonnull AWSEC2CreateVerifiedAccessInstanceRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2CreateVerifiedAccessInstanceResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func createVerifiedAccessInstance(_ request: AWSEC2CreateVerifiedAccessInstanceRequest) async throws -> AWSEC2CreateVerifiedAccessInstanceResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVerifiedAccessInstance service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • A trust provider is a third-party entity that creates, maintains, and manages identity information for users and devices. When an application request is made, the identity information sent by the trust provider is evaluated by Verified Access before allowing or denying the application request.

    See

    AWSEC2CreateVerifiedAccessTrustProviderRequest

    See

    AWSEC2CreateVerifiedAccessTrustProviderResult

    Declaration

    Objective-C

    - (id)createVerifiedAccessTrustProvider:
        (nonnull AWSEC2CreateVerifiedAccessTrustProviderRequest *)request;

    Swift

    func createVerifiedAccessTrustProvider(_ request: AWSEC2CreateVerifiedAccessTrustProviderRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVerifiedAccessTrustProvider service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVerifiedAccessTrustProviderResult.

  • A trust provider is a third-party entity that creates, maintains, and manages identity information for users and devices. When an application request is made, the identity information sent by the trust provider is evaluated by Verified Access before allowing or denying the application request.

    See

    AWSEC2CreateVerifiedAccessTrustProviderRequest

    See

    AWSEC2CreateVerifiedAccessTrustProviderResult

    Declaration

    Objective-C

    - (void)createVerifiedAccessTrustProvider:
                (nonnull AWSEC2CreateVerifiedAccessTrustProviderRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2CreateVerifiedAccessTrustProviderResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func createVerifiedAccessTrustProvider(_ request: AWSEC2CreateVerifiedAccessTrustProviderRequest) async throws -> AWSEC2CreateVerifiedAccessTrustProviderResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVerifiedAccessTrustProvider service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an EBS volume that can be attached to an instance in the same Availability Zone.

    You can create a new empty volume or restore a volume from an EBS snapshot. Any Amazon Web Services Marketplace product codes from the snapshot are propagated to the volume.

    You can create encrypted volumes. Encrypted volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    You can tag your volumes during creation. For more information, see Tag your Amazon EC2 resources in the Amazon EC2 User Guide.

    For more information, see Create an Amazon EBS volume in the Amazon EBS User Guide.

    See

    AWSEC2CreateVolumeRequest

    See

    AWSEC2Volume

    Declaration

    Objective-C

    - (id)createVolume:(nonnull AWSEC2CreateVolumeRequest *)request;

    Swift

    func createVolume(_ request: AWSEC2CreateVolumeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVolume service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2Volume.

  • Creates an EBS volume that can be attached to an instance in the same Availability Zone.

    You can create a new empty volume or restore a volume from an EBS snapshot. Any Amazon Web Services Marketplace product codes from the snapshot are propagated to the volume.

    You can create encrypted volumes. Encrypted volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    You can tag your volumes during creation. For more information, see Tag your Amazon EC2 resources in the Amazon EC2 User Guide.

    For more information, see Create an Amazon EBS volume in the Amazon EBS User Guide.

    See

    AWSEC2CreateVolumeRequest

    See

    AWSEC2Volume

    Declaration

    Objective-C

    - (void)createVolume:(nonnull AWSEC2CreateVolumeRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2Volume *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func createVolume(_ request: AWSEC2CreateVolumeRequest) async throws -> AWSEC2Volume

    Parameters

    request

    A container for the necessary parameters to execute the CreateVolume service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a VPC with the specified CIDR blocks. For more information, see IP addressing for your VPCs and subnets in the Amazon VPC User Guide.

    You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon’s pool of IPv6 addresses or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).

    By default, each instance that you launch in the VPC has the default DHCP options, which include only a default DNS server that we provide (AmazonProvidedDNS). For more information, see DHCP option sets in the Amazon VPC User Guide.

    You can specify the instance tenancy value for the VPC when you create it. You can’t change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon EC2 User Guide.

    See

    AWSEC2CreateVpcRequest

    See

    AWSEC2CreateVpcResult

    Declaration

    Objective-C

    - (id)createVpc:(nonnull AWSEC2CreateVpcRequest *)request;

    Swift

    func createVpc(_ request: AWSEC2CreateVpcRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpc service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVpcResult.

  • Creates a VPC with the specified CIDR blocks. For more information, see IP addressing for your VPCs and subnets in the Amazon VPC User Guide.

    You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon’s pool of IPv6 addresses or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).

    By default, each instance that you launch in the VPC has the default DHCP options, which include only a default DNS server that we provide (AmazonProvidedDNS). For more information, see DHCP option sets in the Amazon VPC User Guide.

    You can specify the instance tenancy value for the VPC when you create it. You can’t change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon EC2 User Guide.

    See

    AWSEC2CreateVpcRequest

    See

    AWSEC2CreateVpcResult

    Declaration

    Objective-C

    - (void)createVpc:(nonnull AWSEC2CreateVpcRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2CreateVpcResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func createVpc(_ request: AWSEC2CreateVpcRequest) async throws -> AWSEC2CreateVpcResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpc service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a VPC endpoint. A VPC endpoint provides a private connection between the specified VPC and the specified endpoint service. You can use an endpoint service provided by Amazon Web Services, an Amazon Web Services Marketplace Partner, or another Amazon Web Services account. For more information, see the Amazon Web Services PrivateLink User Guide.

    See

    AWSEC2CreateVpcEndpointRequest

    See

    AWSEC2CreateVpcEndpointResult

    Declaration

    Objective-C

    - (id)createVpcEndpoint:(nonnull AWSEC2CreateVpcEndpointRequest *)request;

    Swift

    func createVpcEndpoint(_ request: AWSEC2CreateVpcEndpointRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpcEndpoint service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVpcEndpointResult.

  • Creates a VPC endpoint. A VPC endpoint provides a private connection between the specified VPC and the specified endpoint service. You can use an endpoint service provided by Amazon Web Services, an Amazon Web Services Marketplace Partner, or another Amazon Web Services account. For more information, see the Amazon Web Services PrivateLink User Guide.

    See

    AWSEC2CreateVpcEndpointRequest

    See

    AWSEC2CreateVpcEndpointResult

    Declaration

    Objective-C

    - (void)createVpcEndpoint:(nonnull AWSEC2CreateVpcEndpointRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2CreateVpcEndpointResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func createVpcEndpoint(_ request: AWSEC2CreateVpcEndpointRequest) async throws -> AWSEC2CreateVpcEndpointResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpcEndpoint service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Creating an Amazon SNS topic in the Amazon SNS Developer Guide.

    You can create a connection notification for interface endpoints only.

    See

    AWSEC2CreateVpcEndpointConnectionNotificationRequest

    See

    AWSEC2CreateVpcEndpointConnectionNotificationResult

    Declaration

    Objective-C

    - (id)createVpcEndpointConnectionNotification:
        (nonnull AWSEC2CreateVpcEndpointConnectionNotificationRequest *)request;

    Swift

    func createVpcEndpointConnectionNotification(_ request: AWSEC2CreateVpcEndpointConnectionNotificationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpcEndpointConnectionNotification service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVpcEndpointConnectionNotificationResult.

  • Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Creating an Amazon SNS topic in the Amazon SNS Developer Guide.

    You can create a connection notification for interface endpoints only.

    See

    AWSEC2CreateVpcEndpointConnectionNotificationRequest

    See

    AWSEC2CreateVpcEndpointConnectionNotificationResult

    Declaration

    Objective-C

    - (void)
        createVpcEndpointConnectionNotification:
            (nonnull AWSEC2CreateVpcEndpointConnectionNotificationRequest *)request
                              completionHandler:
                                  (void (^_Nullable)(
                                      AWSEC2CreateVpcEndpointConnectionNotificationResult
                                          *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func createVpcEndpointConnectionNotification(_ request: AWSEC2CreateVpcEndpointConnectionNotificationRequest) async throws -> AWSEC2CreateVpcEndpointConnectionNotificationResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpcEndpointConnectionNotification service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a VPC endpoint service to which service consumers (Amazon Web Services accounts, users, and IAM roles) can connect.

    Before you create an endpoint service, you must create one of the following for your service:

    If you set the private DNS name, you must prove that you own the private DNS domain name.

    For more information, see the Amazon Web Services PrivateLink Guide.

    See

    AWSEC2CreateVpcEndpointServiceConfigurationRequest

    See

    AWSEC2CreateVpcEndpointServiceConfigurationResult

    Declaration

    Objective-C

    - (id)createVpcEndpointServiceConfiguration:
        (nonnull AWSEC2CreateVpcEndpointServiceConfigurationRequest *)request;

    Swift

    func createVpcEndpointServiceConfiguration(_ request: AWSEC2CreateVpcEndpointServiceConfigurationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpcEndpointServiceConfiguration service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVpcEndpointServiceConfigurationResult.

  • Creates a VPC endpoint service to which service consumers (Amazon Web Services accounts, users, and IAM roles) can connect.

    Before you create an endpoint service, you must create one of the following for your service:

    If you set the private DNS name, you must prove that you own the private DNS domain name.

    For more information, see the Amazon Web Services PrivateLink Guide.

    See

    AWSEC2CreateVpcEndpointServiceConfigurationRequest

    See

    AWSEC2CreateVpcEndpointServiceConfigurationResult

    Declaration

    Objective-C

    - (void)
        createVpcEndpointServiceConfiguration:
            (nonnull AWSEC2CreateVpcEndpointServiceConfigurationRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2CreateVpcEndpointServiceConfigurationResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func createVpcEndpointServiceConfiguration(_ request: AWSEC2CreateVpcEndpointServiceConfigurationRequest) async throws -> AWSEC2CreateVpcEndpointServiceConfigurationResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpcEndpointServiceConfiguration service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another Amazon Web Services account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.

    Limitations and rules apply to a VPC peering connection. For more information, see the VPC peering limitations in the VPC Peering Guide.

    The owner of the accepter VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.

    If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of failed.

    See

    AWSEC2CreateVpcPeeringConnectionRequest

    See

    AWSEC2CreateVpcPeeringConnectionResult

    Declaration

    Objective-C

    - (id)createVpcPeeringConnection:
        (nonnull AWSEC2CreateVpcPeeringConnectionRequest *)request;

    Swift

    func createVpcPeeringConnection(_ request: AWSEC2CreateVpcPeeringConnectionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpcPeeringConnection service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVpcPeeringConnectionResult.

  • Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another Amazon Web Services account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.

    Limitations and rules apply to a VPC peering connection. For more information, see the VPC peering limitations in the VPC Peering Guide.

    The owner of the accepter VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.

    If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of failed.

    See

    AWSEC2CreateVpcPeeringConnectionRequest

    See

    AWSEC2CreateVpcPeeringConnectionResult

    Declaration

    Objective-C

    - (void)createVpcPeeringConnection:
                (nonnull AWSEC2CreateVpcPeeringConnectionRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2CreateVpcPeeringConnectionResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func createVpcPeeringConnection(_ request: AWSEC2CreateVpcPeeringConnectionRequest) async throws -> AWSEC2CreateVpcPeeringConnectionResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpcPeeringConnection service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a VPN connection between an existing virtual private gateway or transit gateway and a customer gateway. The supported connection type is ipsec.1.

    The response includes information that you need to give to your network administrator to configure your customer gateway.

    We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway device.

    If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2CreateVpnConnectionRequest

    See

    AWSEC2CreateVpnConnectionResult

    Declaration

    Objective-C

    - (id)createVpnConnection:(nonnull AWSEC2CreateVpnConnectionRequest *)request;

    Swift

    func createVpnConnection(_ request: AWSEC2CreateVpnConnectionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpnConnection service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVpnConnectionResult.

  • Creates a VPN connection between an existing virtual private gateway or transit gateway and a customer gateway. The supported connection type is ipsec.1.

    The response includes information that you need to give to your network administrator to configure your customer gateway.

    We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway device.

    If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2CreateVpnConnectionRequest

    See

    AWSEC2CreateVpnConnectionResult

    Declaration

    Objective-C

    - (void)createVpnConnection:(nonnull AWSEC2CreateVpnConnectionRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2CreateVpnConnectionResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func createVpnConnection(_ request: AWSEC2CreateVpnConnectionRequest) async throws -> AWSEC2CreateVpnConnectionResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpnConnection service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2CreateVpnConnectionRouteRequest

    Declaration

    Objective-C

    - (id)createVpnConnectionRoute:
        (nonnull AWSEC2CreateVpnConnectionRouteRequest *)request;

    Swift

    func createVpnConnectionRoute(_ request: AWSEC2CreateVpnConnectionRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpnConnectionRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2CreateVpnConnectionRouteRequest

    Declaration

    Objective-C

    - (void)createVpnConnectionRoute:
                (nonnull AWSEC2CreateVpnConnectionRouteRequest *)request
                   completionHandler:
                       (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func createVpnConnectionRoute(_ request: AWSEC2CreateVpnConnectionRouteRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpnConnectionRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2CreateVpnGatewayRequest

    See

    AWSEC2CreateVpnGatewayResult

    Declaration

    Objective-C

    - (id)createVpnGateway:(nonnull AWSEC2CreateVpnGatewayRequest *)request;

    Swift

    func createVpnGateway(_ request: AWSEC2CreateVpnGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpnGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2CreateVpnGatewayResult.

  • Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2CreateVpnGatewayRequest

    See

    AWSEC2CreateVpnGatewayResult

    Declaration

    Objective-C

    - (void)createVpnGateway:(nonnull AWSEC2CreateVpnGatewayRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2CreateVpnGatewayResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func createVpnGateway(_ request: AWSEC2CreateVpnGatewayRequest) async throws -> AWSEC2CreateVpnGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the CreateVpnGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a carrier gateway.

    If you do not delete the route that contains the carrier gateway as the Target, the route is a blackhole route. For information about how to delete a route, see DeleteRoute.

    See

    AWSEC2DeleteCarrierGatewayRequest

    See

    AWSEC2DeleteCarrierGatewayResult

    Declaration

    Objective-C

    - (id)deleteCarrierGateway:(nonnull AWSEC2DeleteCarrierGatewayRequest *)request;

    Swift

    func deleteCarrierGateway(_ request: AWSEC2DeleteCarrierGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteCarrierGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteCarrierGatewayResult.

  • Deletes a carrier gateway.

    If you do not delete the route that contains the carrier gateway as the Target, the route is a blackhole route. For information about how to delete a route, see DeleteRoute.

    See

    AWSEC2DeleteCarrierGatewayRequest

    See

    AWSEC2DeleteCarrierGatewayResult

    Declaration

    Objective-C

    - (void)deleteCarrierGateway:
                (nonnull AWSEC2DeleteCarrierGatewayRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DeleteCarrierGatewayResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func deleteCarrierGateway(_ request: AWSEC2DeleteCarrierGatewayRequest) async throws -> AWSEC2DeleteCarrierGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteCarrierGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint.

    See

    AWSEC2DeleteClientVpnEndpointRequest

    See

    AWSEC2DeleteClientVpnEndpointResult

    Declaration

    Objective-C

    - (id)deleteClientVpnEndpoint:
        (nonnull AWSEC2DeleteClientVpnEndpointRequest *)request;

    Swift

    func deleteClientVpnEndpoint(_ request: AWSEC2DeleteClientVpnEndpointRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteClientVpnEndpoint service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteClientVpnEndpointResult.

  • Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint.

    See

    AWSEC2DeleteClientVpnEndpointRequest

    See

    AWSEC2DeleteClientVpnEndpointResult

    Declaration

    Objective-C

    - (void)
        deleteClientVpnEndpoint:
            (nonnull AWSEC2DeleteClientVpnEndpointRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DeleteClientVpnEndpointResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func deleteClientVpnEndpoint(_ request: AWSEC2DeleteClientVpnEndpointRequest) async throws -> AWSEC2DeleteClientVpnEndpointResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteClientVpnEndpoint service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint.

    See

    AWSEC2DeleteClientVpnRouteRequest

    See

    AWSEC2DeleteClientVpnRouteResult

    Declaration

    Objective-C

    - (id)deleteClientVpnRoute:(nonnull AWSEC2DeleteClientVpnRouteRequest *)request;

    Swift

    func deleteClientVpnRoute(_ request: AWSEC2DeleteClientVpnRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteClientVpnRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteClientVpnRouteResult.

  • Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint.

    See

    AWSEC2DeleteClientVpnRouteRequest

    See

    AWSEC2DeleteClientVpnRouteResult

    Declaration

    Objective-C

    - (void)deleteClientVpnRoute:
                (nonnull AWSEC2DeleteClientVpnRouteRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DeleteClientVpnRouteResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func deleteClientVpnRoute(_ request: AWSEC2DeleteClientVpnRouteRequest) async throws -> AWSEC2DeleteClientVpnRouteResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteClientVpnRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a range of customer-owned IP addresses.

    See

    AWSEC2DeleteCoipCidrRequest

    See

    AWSEC2DeleteCoipCidrResult

    Declaration

    Objective-C

    - (id)deleteCoipCidr:(nonnull AWSEC2DeleteCoipCidrRequest *)request;

    Swift

    func deleteCoipCidr(_ request: AWSEC2DeleteCoipCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteCoipCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteCoipCidrResult.

  • Deletes a range of customer-owned IP addresses.

    See

    AWSEC2DeleteCoipCidrRequest

    See

    AWSEC2DeleteCoipCidrResult

    Declaration

    Objective-C

    - (void)deleteCoipCidr:(nonnull AWSEC2DeleteCoipCidrRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2DeleteCoipCidrResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func deleteCoipCidr(_ request: AWSEC2DeleteCoipCidrRequest) async throws -> AWSEC2DeleteCoipCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteCoipCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a pool of customer-owned IP (CoIP) addresses.

    See

    AWSEC2DeleteCoipPoolRequest

    See

    AWSEC2DeleteCoipPoolResult

    Declaration

    Objective-C

    - (id)deleteCoipPool:(nonnull AWSEC2DeleteCoipPoolRequest *)request;

    Swift

    func deleteCoipPool(_ request: AWSEC2DeleteCoipPoolRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteCoipPool service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteCoipPoolResult.

  • Deletes a pool of customer-owned IP (CoIP) addresses.

    See

    AWSEC2DeleteCoipPoolRequest

    See

    AWSEC2DeleteCoipPoolResult

    Declaration

    Objective-C

    - (void)deleteCoipPool:(nonnull AWSEC2DeleteCoipPoolRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2DeleteCoipPoolResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func deleteCoipPool(_ request: AWSEC2DeleteCoipPoolRequest) async throws -> AWSEC2DeleteCoipPoolResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteCoipPool service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.

    See

    AWSEC2DeleteCustomerGatewayRequest

    Declaration

    Objective-C

    - (id)deleteCustomerGateway:
        (nonnull AWSEC2DeleteCustomerGatewayRequest *)request;

    Swift

    func deleteCustomerGateway(_ request: AWSEC2DeleteCustomerGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteCustomerGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.

    See

    AWSEC2DeleteCustomerGatewayRequest

    Declaration

    Objective-C

    - (void)deleteCustomerGateway:
                (nonnull AWSEC2DeleteCustomerGatewayRequest *)request
                completionHandler:
                    (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteCustomerGateway(_ request: AWSEC2DeleteCustomerGatewayRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteCustomerGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.

    See

    AWSEC2DeleteDhcpOptionsRequest

    Declaration

    Objective-C

    - (id)deleteDhcpOptions:(nonnull AWSEC2DeleteDhcpOptionsRequest *)request;

    Swift

    func deleteDhcpOptions(_ request: AWSEC2DeleteDhcpOptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteDhcpOptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.

    See

    AWSEC2DeleteDhcpOptionsRequest

    Declaration

    Objective-C

    - (void)deleteDhcpOptions:(nonnull AWSEC2DeleteDhcpOptionsRequest *)request
            completionHandler:
                (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteDhcpOptions(_ request: AWSEC2DeleteDhcpOptionsRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteDhcpOptions service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes an egress-only internet gateway.

    See

    AWSEC2DeleteEgressOnlyInternetGatewayRequest

    See

    AWSEC2DeleteEgressOnlyInternetGatewayResult

    Declaration

    Objective-C

    - (id)deleteEgressOnlyInternetGateway:
        (nonnull AWSEC2DeleteEgressOnlyInternetGatewayRequest *)request;

    Swift

    func deleteEgressOnlyInternetGateway(_ request: AWSEC2DeleteEgressOnlyInternetGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteEgressOnlyInternetGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteEgressOnlyInternetGatewayResult.

  • Deletes an egress-only internet gateway.

    See

    AWSEC2DeleteEgressOnlyInternetGatewayRequest

    See

    AWSEC2DeleteEgressOnlyInternetGatewayResult

    Declaration

    Objective-C

    - (void)deleteEgressOnlyInternetGateway:
                (nonnull AWSEC2DeleteEgressOnlyInternetGatewayRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DeleteEgressOnlyInternetGatewayResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func deleteEgressOnlyInternetGateway(_ request: AWSEC2DeleteEgressOnlyInternetGatewayRequest) async throws -> AWSEC2DeleteEgressOnlyInternetGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteEgressOnlyInternetGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified EC2 Fleets.

    After you delete an EC2 Fleet, it launches no new instances.

    You must also specify whether a deleted EC2 Fleet should terminate its instances. If you choose to terminate the instances, the EC2 Fleet enters the deleted_terminating state. Otherwise, the EC2 Fleet enters the deleted_running state, and the instances continue to run until they are interrupted or you terminate them manually.

    For instant fleets, EC2 Fleet must terminate the instances when the fleet is deleted. Up to 1000 instances can be terminated in a single request to delete instant fleets. A deleted instant fleet with running instances is not supported.

    Restrictions

    • You can delete up to 25 fleets of type instant in a single request.

    • You can delete up to 100 fleets of type maintain or request in a single request.

    • You can delete up to 125 fleets in a single request, provided you do not exceed the quota for each fleet type, as specified above.

    • If you exceed the specified number of fleets to delete, no fleets are deleted.

    For more information, see Delete an EC2 Fleet in the Amazon EC2 User Guide.

    See

    AWSEC2DeleteFleetsRequest

    See

    AWSEC2DeleteFleetsResult

    Declaration

    Objective-C

    - (id)deleteFleets:(nonnull AWSEC2DeleteFleetsRequest *)request;

    Swift

    func deleteFleets(_ request: AWSEC2DeleteFleetsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFleets service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteFleetsResult.

  • Deletes the specified EC2 Fleets.

    After you delete an EC2 Fleet, it launches no new instances.

    You must also specify whether a deleted EC2 Fleet should terminate its instances. If you choose to terminate the instances, the EC2 Fleet enters the deleted_terminating state. Otherwise, the EC2 Fleet enters the deleted_running state, and the instances continue to run until they are interrupted or you terminate them manually.

    For instant fleets, EC2 Fleet must terminate the instances when the fleet is deleted. Up to 1000 instances can be terminated in a single request to delete instant fleets. A deleted instant fleet with running instances is not supported.

    Restrictions

    • You can delete up to 25 fleets of type instant in a single request.

    • You can delete up to 100 fleets of type maintain or request in a single request.

    • You can delete up to 125 fleets in a single request, provided you do not exceed the quota for each fleet type, as specified above.

    • If you exceed the specified number of fleets to delete, no fleets are deleted.

    For more information, see Delete an EC2 Fleet in the Amazon EC2 User Guide.

    See

    AWSEC2DeleteFleetsRequest

    See

    AWSEC2DeleteFleetsResult

    Declaration

    Objective-C

    - (void)deleteFleets:(nonnull AWSEC2DeleteFleetsRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2DeleteFleetsResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func deleteFleets(_ request: AWSEC2DeleteFleetsRequest) async throws -> AWSEC2DeleteFleetsResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFleets service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes one or more flow logs.

    See

    AWSEC2DeleteFlowLogsRequest

    See

    AWSEC2DeleteFlowLogsResult

    Declaration

    Objective-C

    - (id)deleteFlowLogs:(nonnull AWSEC2DeleteFlowLogsRequest *)request;

    Swift

    func deleteFlowLogs(_ request: AWSEC2DeleteFlowLogsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFlowLogs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteFlowLogsResult.

  • Deletes one or more flow logs.

    See

    AWSEC2DeleteFlowLogsRequest

    See

    AWSEC2DeleteFlowLogsResult

    Declaration

    Objective-C

    - (void)deleteFlowLogs:(nonnull AWSEC2DeleteFlowLogsRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2DeleteFlowLogsResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func deleteFlowLogs(_ request: AWSEC2DeleteFlowLogsRequest) async throws -> AWSEC2DeleteFlowLogsResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFlowLogs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified Amazon FPGA Image (AFI).

    See

    AWSEC2DeleteFpgaImageRequest

    See

    AWSEC2DeleteFpgaImageResult

    Declaration

    Objective-C

    - (id)deleteFpgaImage:(nonnull AWSEC2DeleteFpgaImageRequest *)request;

    Swift

    func deleteFpgaImage(_ request: AWSEC2DeleteFpgaImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFpgaImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteFpgaImageResult.

  • Deletes the specified Amazon FPGA Image (AFI).

    See

    AWSEC2DeleteFpgaImageRequest

    See

    AWSEC2DeleteFpgaImageResult

    Declaration

    Objective-C

    - (void)deleteFpgaImage:(nonnull AWSEC2DeleteFpgaImageRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2DeleteFpgaImageResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func deleteFpgaImage(_ request: AWSEC2DeleteFpgaImageRequest) async throws -> AWSEC2DeleteFpgaImageResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteFpgaImage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified EC2 Instance Connect Endpoint.

    See

    AWSEC2DeleteInstanceConnectEndpointRequest

    See

    AWSEC2DeleteInstanceConnectEndpointResult

    Declaration

    Objective-C

    - (id)deleteInstanceConnectEndpoint:
        (nonnull AWSEC2DeleteInstanceConnectEndpointRequest *)request;

    Swift

    func deleteInstanceConnectEndpoint(_ request: AWSEC2DeleteInstanceConnectEndpointRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteInstanceConnectEndpoint service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteInstanceConnectEndpointResult.

  • Deletes the specified EC2 Instance Connect Endpoint.

    See

    AWSEC2DeleteInstanceConnectEndpointRequest

    See

    AWSEC2DeleteInstanceConnectEndpointResult

    Declaration

    Objective-C

    - (void)
        deleteInstanceConnectEndpoint:
            (nonnull AWSEC2DeleteInstanceConnectEndpointRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeleteInstanceConnectEndpointResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deleteInstanceConnectEndpoint(_ request: AWSEC2DeleteInstanceConnectEndpointRequest) async throws -> AWSEC2DeleteInstanceConnectEndpointResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteInstanceConnectEndpoint service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified event window.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2DeleteInstanceEventWindowRequest

    See

    AWSEC2DeleteInstanceEventWindowResult

    Declaration

    Objective-C

    - (id)deleteInstanceEventWindow:
        (nonnull AWSEC2DeleteInstanceEventWindowRequest *)request;

    Swift

    func deleteInstanceEventWindow(_ request: AWSEC2DeleteInstanceEventWindowRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteInstanceEventWindow service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteInstanceEventWindowResult.

  • Deletes the specified event window.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2DeleteInstanceEventWindowRequest

    See

    AWSEC2DeleteInstanceEventWindowResult

    Declaration

    Objective-C

    - (void)deleteInstanceEventWindow:
                (nonnull AWSEC2DeleteInstanceEventWindowRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeleteInstanceEventWindowResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deleteInstanceEventWindow(_ request: AWSEC2DeleteInstanceEventWindowRequest) async throws -> AWSEC2DeleteInstanceEventWindowResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteInstanceEventWindow service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.

    See

    AWSEC2DeleteInternetGatewayRequest

    Declaration

    Objective-C

    - (id)deleteInternetGateway:
        (nonnull AWSEC2DeleteInternetGatewayRequest *)request;

    Swift

    func deleteInternetGateway(_ request: AWSEC2DeleteInternetGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteInternetGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.

    See

    AWSEC2DeleteInternetGatewayRequest

    Declaration

    Objective-C

    - (void)deleteInternetGateway:
                (nonnull AWSEC2DeleteInternetGatewayRequest *)request
                completionHandler:
                    (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteInternetGateway(_ request: AWSEC2DeleteInternetGatewayRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteInternetGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Delete an IPAM. Deleting an IPAM removes all monitored data associated with the IPAM including the historical data for CIDRs.

    For more information, see Delete an IPAM in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DeleteIpamRequest

    See

    AWSEC2DeleteIpamResult

    Declaration

    Objective-C

    - (id)deleteIpam:(nonnull AWSEC2DeleteIpamRequest *)request;

    Swift

    func deleteIpam(_ request: AWSEC2DeleteIpamRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteIpam service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteIpamResult.

  • Delete an IPAM. Deleting an IPAM removes all monitored data associated with the IPAM including the historical data for CIDRs.

    For more information, see Delete an IPAM in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DeleteIpamRequest

    See

    AWSEC2DeleteIpamResult

    Declaration

    Objective-C

    - (void)deleteIpam:(nonnull AWSEC2DeleteIpamRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2DeleteIpamResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func deleteIpam(_ request: AWSEC2DeleteIpamRequest) async throws -> AWSEC2DeleteIpamResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteIpam service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Delete an IPAM pool.

    You cannot delete an IPAM pool if there are allocations in it or CIDRs provisioned to it. To release allocations, see ReleaseIpamPoolAllocation. To deprovision pool CIDRs, see DeprovisionIpamPoolCidr.

    For more information, see Delete a pool in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DeleteIpamPoolRequest

    See

    AWSEC2DeleteIpamPoolResult

    Declaration

    Objective-C

    - (id)deleteIpamPool:(nonnull AWSEC2DeleteIpamPoolRequest *)request;

    Swift

    func deleteIpamPool(_ request: AWSEC2DeleteIpamPoolRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteIpamPool service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteIpamPoolResult.

  • Delete an IPAM pool.

    You cannot delete an IPAM pool if there are allocations in it or CIDRs provisioned to it. To release allocations, see ReleaseIpamPoolAllocation. To deprovision pool CIDRs, see DeprovisionIpamPoolCidr.

    For more information, see Delete a pool in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DeleteIpamPoolRequest

    See

    AWSEC2DeleteIpamPoolResult

    Declaration

    Objective-C

    - (void)deleteIpamPool:(nonnull AWSEC2DeleteIpamPoolRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2DeleteIpamPoolResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func deleteIpamPool(_ request: AWSEC2DeleteIpamPoolRequest) async throws -> AWSEC2DeleteIpamPoolResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteIpamPool service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2DeleteIpamResourceDiscoveryRequest

    See

    AWSEC2DeleteIpamResourceDiscoveryResult

    Declaration

    Objective-C

    - (id)deleteIpamResourceDiscovery:
        (nonnull AWSEC2DeleteIpamResourceDiscoveryRequest *)request;

    Swift

    func deleteIpamResourceDiscovery(_ request: AWSEC2DeleteIpamResourceDiscoveryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteIpamResourceDiscovery service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteIpamResourceDiscoveryResult.

  • Deletes an IPAM resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2DeleteIpamResourceDiscoveryRequest

    See

    AWSEC2DeleteIpamResourceDiscoveryResult

    Declaration

    Objective-C

    - (void)deleteIpamResourceDiscovery:
                (nonnull AWSEC2DeleteIpamResourceDiscoveryRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2DeleteIpamResourceDiscoveryResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func deleteIpamResourceDiscovery(_ request: AWSEC2DeleteIpamResourceDiscoveryRequest) async throws -> AWSEC2DeleteIpamResourceDiscoveryResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteIpamResourceDiscovery service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Delete the scope for an IPAM. You cannot delete the default scopes.

    For more information, see Delete a scope in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DeleteIpamScopeRequest

    See

    AWSEC2DeleteIpamScopeResult

    Declaration

    Objective-C

    - (id)deleteIpamScope:(nonnull AWSEC2DeleteIpamScopeRequest *)request;

    Swift

    func deleteIpamScope(_ request: AWSEC2DeleteIpamScopeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteIpamScope service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteIpamScopeResult.

  • Delete the scope for an IPAM. You cannot delete the default scopes.

    For more information, see Delete a scope in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DeleteIpamScopeRequest

    See

    AWSEC2DeleteIpamScopeResult

    Declaration

    Objective-C

    - (void)deleteIpamScope:(nonnull AWSEC2DeleteIpamScopeRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2DeleteIpamScopeResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func deleteIpamScope(_ request: AWSEC2DeleteIpamScopeRequest) async throws -> AWSEC2DeleteIpamScopeResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteIpamScope service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified key pair, by removing the public key from Amazon EC2.

    See

    AWSEC2DeleteKeyPairRequest

    See

    AWSEC2DeleteKeyPairResult

    Declaration

    Objective-C

    - (id)deleteKeyPair:(nonnull AWSEC2DeleteKeyPairRequest *)request;

    Swift

    func deleteKeyPair(_ request: AWSEC2DeleteKeyPairRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteKeyPair service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteKeyPairResult.

  • Deletes the specified key pair, by removing the public key from Amazon EC2.

    See

    AWSEC2DeleteKeyPairRequest

    See

    AWSEC2DeleteKeyPairResult

    Declaration

    Objective-C

    - (void)deleteKeyPair:(nonnull AWSEC2DeleteKeyPairRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2DeleteKeyPairResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func deleteKeyPair(_ request: AWSEC2DeleteKeyPairRequest) async throws -> AWSEC2DeleteKeyPairResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteKeyPair service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a launch template. Deleting a launch template deletes all of its versions.

    See

    AWSEC2DeleteLaunchTemplateRequest

    See

    AWSEC2DeleteLaunchTemplateResult

    Declaration

    Objective-C

    - (id)deleteLaunchTemplate:(nonnull AWSEC2DeleteLaunchTemplateRequest *)request;

    Swift

    func deleteLaunchTemplate(_ request: AWSEC2DeleteLaunchTemplateRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLaunchTemplate service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteLaunchTemplateResult.

  • Deletes a launch template. Deleting a launch template deletes all of its versions.

    See

    AWSEC2DeleteLaunchTemplateRequest

    See

    AWSEC2DeleteLaunchTemplateResult

    Declaration

    Objective-C

    - (void)deleteLaunchTemplate:
                (nonnull AWSEC2DeleteLaunchTemplateRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DeleteLaunchTemplateResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func deleteLaunchTemplate(_ request: AWSEC2DeleteLaunchTemplateRequest) async throws -> AWSEC2DeleteLaunchTemplateResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLaunchTemplate service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes one or more versions of a launch template.

    You can’t delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate.

    You can delete up to 200 launch template versions in a single request. To delete more than 200 versions in a single request, use DeleteLaunchTemplate, which deletes the launch template and all of its versions.

    For more information, see Delete a launch template version in the Amazon EC2 User Guide.

    See

    AWSEC2DeleteLaunchTemplateVersionsRequest

    See

    AWSEC2DeleteLaunchTemplateVersionsResult

    Declaration

    Objective-C

    - (id)deleteLaunchTemplateVersions:
        (nonnull AWSEC2DeleteLaunchTemplateVersionsRequest *)request;

    Swift

    func deleteLaunchTemplateVersions(_ request: AWSEC2DeleteLaunchTemplateVersionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLaunchTemplateVersions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteLaunchTemplateVersionsResult.

  • Deletes one or more versions of a launch template.

    You can’t delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate.

    You can delete up to 200 launch template versions in a single request. To delete more than 200 versions in a single request, use DeleteLaunchTemplate, which deletes the launch template and all of its versions.

    For more information, see Delete a launch template version in the Amazon EC2 User Guide.

    See

    AWSEC2DeleteLaunchTemplateVersionsRequest

    See

    AWSEC2DeleteLaunchTemplateVersionsResult

    Declaration

    Objective-C

    - (void)deleteLaunchTemplateVersions:
                (nonnull AWSEC2DeleteLaunchTemplateVersionsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DeleteLaunchTemplateVersionsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func deleteLaunchTemplateVersions(_ request: AWSEC2DeleteLaunchTemplateVersionsRequest) async throws -> AWSEC2DeleteLaunchTemplateVersionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLaunchTemplateVersions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified route from the specified local gateway route table.

    See

    AWSEC2DeleteLocalGatewayRouteRequest

    See

    AWSEC2DeleteLocalGatewayRouteResult

    Declaration

    Objective-C

    - (id)deleteLocalGatewayRoute:
        (nonnull AWSEC2DeleteLocalGatewayRouteRequest *)request;

    Swift

    func deleteLocalGatewayRoute(_ request: AWSEC2DeleteLocalGatewayRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLocalGatewayRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteLocalGatewayRouteResult.

  • Deletes the specified route from the specified local gateway route table.

    See

    AWSEC2DeleteLocalGatewayRouteRequest

    See

    AWSEC2DeleteLocalGatewayRouteResult

    Declaration

    Objective-C

    - (void)
        deleteLocalGatewayRoute:
            (nonnull AWSEC2DeleteLocalGatewayRouteRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DeleteLocalGatewayRouteResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func deleteLocalGatewayRoute(_ request: AWSEC2DeleteLocalGatewayRouteRequest) async throws -> AWSEC2DeleteLocalGatewayRouteResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLocalGatewayRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a local gateway route table.

    See

    AWSEC2DeleteLocalGatewayRouteTableRequest

    See

    AWSEC2DeleteLocalGatewayRouteTableResult

    Declaration

    Objective-C

    - (id)deleteLocalGatewayRouteTable:
        (nonnull AWSEC2DeleteLocalGatewayRouteTableRequest *)request;

    Swift

    func deleteLocalGatewayRouteTable(_ request: AWSEC2DeleteLocalGatewayRouteTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLocalGatewayRouteTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteLocalGatewayRouteTableResult.

  • Deletes a local gateway route table.

    See

    AWSEC2DeleteLocalGatewayRouteTableRequest

    See

    AWSEC2DeleteLocalGatewayRouteTableResult

    Declaration

    Objective-C

    - (void)deleteLocalGatewayRouteTable:
                (nonnull AWSEC2DeleteLocalGatewayRouteTableRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DeleteLocalGatewayRouteTableResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func deleteLocalGatewayRouteTable(_ request: AWSEC2DeleteLocalGatewayRouteTableRequest) async throws -> AWSEC2DeleteLocalGatewayRouteTableResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLocalGatewayRouteTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a local gateway route table virtual interface group association.

    See

    AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest

    See

    AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult

    Declaration

    Objective-C

    - (id)deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation:
        (nonnull
             AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest
                 *)request;

    Swift

    func deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation(_ request: AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult.

  • Deletes a local gateway route table virtual interface group association.

    See

    AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest

    See

    AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult

    Declaration

    Objective-C

    - (void)
        deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation:
            (nonnull
                 AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest
                     *)request
                                                   completionHandler:
                                                       (void (^_Nullable)(
                                                           AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult
                                                               *_Nullable,
                                                           NSError *_Nullable))
                                                           completionHandler;

    Swift

    func deleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation(_ request: AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest) async throws -> AWSEC2DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociationResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified association between a VPC and local gateway route table.

    See

    AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest

    See

    AWSEC2DeleteLocalGatewayRouteTableVpcAssociationResult

    Declaration

    Objective-C

    - (id)deleteLocalGatewayRouteTableVpcAssociation:
        (nonnull AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest *)request;

    Swift

    func deleteLocalGatewayRouteTableVpcAssociation(_ request: AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLocalGatewayRouteTableVpcAssociation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteLocalGatewayRouteTableVpcAssociationResult.

  • Deletes the specified association between a VPC and local gateway route table.

    See

    AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest

    See

    AWSEC2DeleteLocalGatewayRouteTableVpcAssociationResult

    Declaration

    Objective-C

    - (void)
        deleteLocalGatewayRouteTableVpcAssociation:
            (nonnull AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest *)
                request
                                 completionHandler:
                                     (void (^_Nullable)(
                                         AWSEC2DeleteLocalGatewayRouteTableVpcAssociationResult
                                             *_Nullable,
                                         NSError *_Nullable))completionHandler;

    Swift

    func deleteLocalGatewayRouteTableVpcAssociation(_ request: AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest) async throws -> AWSEC2DeleteLocalGatewayRouteTableVpcAssociationResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteLocalGatewayRouteTableVpcAssociation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources.

    See

    AWSEC2DeleteManagedPrefixListRequest

    See

    AWSEC2DeleteManagedPrefixListResult

    Declaration

    Objective-C

    - (id)deleteManagedPrefixList:
        (nonnull AWSEC2DeleteManagedPrefixListRequest *)request;

    Swift

    func deleteManagedPrefixList(_ request: AWSEC2DeleteManagedPrefixListRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteManagedPrefixList service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteManagedPrefixListResult.

  • Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources.

    See

    AWSEC2DeleteManagedPrefixListRequest

    See

    AWSEC2DeleteManagedPrefixListResult

    Declaration

    Objective-C

    - (void)
        deleteManagedPrefixList:
            (nonnull AWSEC2DeleteManagedPrefixListRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DeleteManagedPrefixListResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func deleteManagedPrefixList(_ request: AWSEC2DeleteManagedPrefixListRequest) async throws -> AWSEC2DeleteManagedPrefixListResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteManagedPrefixList service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.

    See

    AWSEC2DeleteNatGatewayRequest

    See

    AWSEC2DeleteNatGatewayResult

    Declaration

    Objective-C

    - (id)deleteNatGateway:(nonnull AWSEC2DeleteNatGatewayRequest *)request;

    Swift

    func deleteNatGateway(_ request: AWSEC2DeleteNatGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNatGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteNatGatewayResult.

  • Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.

    See

    AWSEC2DeleteNatGatewayRequest

    See

    AWSEC2DeleteNatGatewayResult

    Declaration

    Objective-C

    - (void)deleteNatGateway:(nonnull AWSEC2DeleteNatGatewayRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2DeleteNatGatewayResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func deleteNatGateway(_ request: AWSEC2DeleteNatGatewayRequest) async throws -> AWSEC2DeleteNatGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNatGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified network ACL. You can’t delete the ACL if it’s associated with any subnets. You can’t delete the default network ACL.

    See

    AWSEC2DeleteNetworkAclRequest

    Declaration

    Objective-C

    - (id)deleteNetworkAcl:(nonnull AWSEC2DeleteNetworkAclRequest *)request;

    Swift

    func deleteNetworkAcl(_ request: AWSEC2DeleteNetworkAclRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkAcl service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified network ACL. You can’t delete the ACL if it’s associated with any subnets. You can’t delete the default network ACL.

    See

    AWSEC2DeleteNetworkAclRequest

    Declaration

    Objective-C

    - (void)deleteNetworkAcl:(nonnull AWSEC2DeleteNetworkAclRequest *)request
           completionHandler:
               (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteNetworkAcl(_ request: AWSEC2DeleteNetworkAclRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkAcl service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified ingress or egress entry (rule) from the specified network ACL.

    See

    AWSEC2DeleteNetworkAclEntryRequest

    Declaration

    Objective-C

    - (id)deleteNetworkAclEntry:
        (nonnull AWSEC2DeleteNetworkAclEntryRequest *)request;

    Swift

    func deleteNetworkAclEntry(_ request: AWSEC2DeleteNetworkAclEntryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkAclEntry service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified ingress or egress entry (rule) from the specified network ACL.

    See

    AWSEC2DeleteNetworkAclEntryRequest

    Declaration

    Objective-C

    - (void)deleteNetworkAclEntry:
                (nonnull AWSEC2DeleteNetworkAclEntryRequest *)request
                completionHandler:
                    (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteNetworkAclEntry(_ request: AWSEC2DeleteNetworkAclEntryRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkAclEntry service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified Network Access Scope.

    See

    AWSEC2DeleteNetworkInsightsAccessScopeRequest

    See

    AWSEC2DeleteNetworkInsightsAccessScopeResult

    Declaration

    Objective-C

    - (id)deleteNetworkInsightsAccessScope:
        (nonnull AWSEC2DeleteNetworkInsightsAccessScopeRequest *)request;

    Swift

    func deleteNetworkInsightsAccessScope(_ request: AWSEC2DeleteNetworkInsightsAccessScopeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInsightsAccessScope service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteNetworkInsightsAccessScopeResult.

  • Deletes the specified Network Access Scope.

    See

    AWSEC2DeleteNetworkInsightsAccessScopeRequest

    See

    AWSEC2DeleteNetworkInsightsAccessScopeResult

    Declaration

    Objective-C

    - (void)deleteNetworkInsightsAccessScope:
                (nonnull AWSEC2DeleteNetworkInsightsAccessScopeRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DeleteNetworkInsightsAccessScopeResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func deleteNetworkInsightsAccessScope(_ request: AWSEC2DeleteNetworkInsightsAccessScopeRequest) async throws -> AWSEC2DeleteNetworkInsightsAccessScopeResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInsightsAccessScope service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified Network Access Scope analysis.

    See

    AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest

    See

    AWSEC2DeleteNetworkInsightsAccessScopeAnalysisResult

    Declaration

    Objective-C

    - (id)deleteNetworkInsightsAccessScopeAnalysis:
        (nonnull AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest *)request;

    Swift

    func deleteNetworkInsightsAccessScopeAnalysis(_ request: AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInsightsAccessScopeAnalysis service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteNetworkInsightsAccessScopeAnalysisResult.

  • Deletes the specified Network Access Scope analysis.

    See

    AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest

    See

    AWSEC2DeleteNetworkInsightsAccessScopeAnalysisResult

    Declaration

    Objective-C

    - (void)
        deleteNetworkInsightsAccessScopeAnalysis:
            (nonnull AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest *)request
                               completionHandler:
                                   (void (^_Nullable)(
                                       AWSEC2DeleteNetworkInsightsAccessScopeAnalysisResult
                                           *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func deleteNetworkInsightsAccessScopeAnalysis(_ request: AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest) async throws -> AWSEC2DeleteNetworkInsightsAccessScopeAnalysisResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInsightsAccessScopeAnalysis service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified network insights analysis.

    See

    AWSEC2DeleteNetworkInsightsAnalysisRequest

    See

    AWSEC2DeleteNetworkInsightsAnalysisResult

    Declaration

    Objective-C

    - (id)deleteNetworkInsightsAnalysis:
        (nonnull AWSEC2DeleteNetworkInsightsAnalysisRequest *)request;

    Swift

    func deleteNetworkInsightsAnalysis(_ request: AWSEC2DeleteNetworkInsightsAnalysisRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInsightsAnalysis service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteNetworkInsightsAnalysisResult.

  • Deletes the specified network insights analysis.

    See

    AWSEC2DeleteNetworkInsightsAnalysisRequest

    See

    AWSEC2DeleteNetworkInsightsAnalysisResult

    Declaration

    Objective-C

    - (void)
        deleteNetworkInsightsAnalysis:
            (nonnull AWSEC2DeleteNetworkInsightsAnalysisRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeleteNetworkInsightsAnalysisResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deleteNetworkInsightsAnalysis(_ request: AWSEC2DeleteNetworkInsightsAnalysisRequest) async throws -> AWSEC2DeleteNetworkInsightsAnalysisResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInsightsAnalysis service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified path.

    See

    AWSEC2DeleteNetworkInsightsPathRequest

    See

    AWSEC2DeleteNetworkInsightsPathResult

    Declaration

    Objective-C

    - (id)deleteNetworkInsightsPath:
        (nonnull AWSEC2DeleteNetworkInsightsPathRequest *)request;

    Swift

    func deleteNetworkInsightsPath(_ request: AWSEC2DeleteNetworkInsightsPathRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInsightsPath service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteNetworkInsightsPathResult.

  • Deletes the specified path.

    See

    AWSEC2DeleteNetworkInsightsPathRequest

    See

    AWSEC2DeleteNetworkInsightsPathResult

    Declaration

    Objective-C

    - (void)deleteNetworkInsightsPath:
                (nonnull AWSEC2DeleteNetworkInsightsPathRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeleteNetworkInsightsPathResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deleteNetworkInsightsPath(_ request: AWSEC2DeleteNetworkInsightsPathRequest) async throws -> AWSEC2DeleteNetworkInsightsPathResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInsightsPath service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified network interface. You must detach the network interface before you can delete it.

    See

    AWSEC2DeleteNetworkInterfaceRequest

    Declaration

    Objective-C

    - (id)deleteNetworkInterface:
        (nonnull AWSEC2DeleteNetworkInterfaceRequest *)request;

    Swift

    func deleteNetworkInterface(_ request: AWSEC2DeleteNetworkInterfaceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInterface service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified network interface. You must detach the network interface before you can delete it.

    See

    AWSEC2DeleteNetworkInterfaceRequest

    Declaration

    Objective-C

    - (void)deleteNetworkInterface:
                (nonnull AWSEC2DeleteNetworkInterfaceRequest *)request
                 completionHandler:
                     (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteNetworkInterface(_ request: AWSEC2DeleteNetworkInterfaceRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInterface service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you’re removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment.

    See

    AWSEC2DeleteNetworkInterfacePermissionRequest

    See

    AWSEC2DeleteNetworkInterfacePermissionResult

    Declaration

    Objective-C

    - (id)deleteNetworkInterfacePermission:
        (nonnull AWSEC2DeleteNetworkInterfacePermissionRequest *)request;

    Swift

    func deleteNetworkInterfacePermission(_ request: AWSEC2DeleteNetworkInterfacePermissionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInterfacePermission service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteNetworkInterfacePermissionResult.

  • Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you’re removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment.

    See

    AWSEC2DeleteNetworkInterfacePermissionRequest

    See

    AWSEC2DeleteNetworkInterfacePermissionResult

    Declaration

    Objective-C

    - (void)deleteNetworkInterfacePermission:
                (nonnull AWSEC2DeleteNetworkInterfacePermissionRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DeleteNetworkInterfacePermissionResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func deleteNetworkInterfacePermission(_ request: AWSEC2DeleteNetworkInterfacePermissionRequest) async throws -> AWSEC2DeleteNetworkInterfacePermissionResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteNetworkInterfacePermission service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement groups in the Amazon EC2 User Guide.

    See

    AWSEC2DeletePlacementGroupRequest

    Declaration

    Objective-C

    - (id)deletePlacementGroup:(nonnull AWSEC2DeletePlacementGroupRequest *)request;

    Swift

    func deletePlacementGroup(_ request: AWSEC2DeletePlacementGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeletePlacementGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement groups in the Amazon EC2 User Guide.

    See

    AWSEC2DeletePlacementGroupRequest

    Declaration

    Objective-C

    - (void)deletePlacementGroup:
                (nonnull AWSEC2DeletePlacementGroupRequest *)request
               completionHandler:
                   (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deletePlacementGroup(_ request: AWSEC2DeletePlacementGroupRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeletePlacementGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only.

    See

    AWSEC2DeletePublicIpv4PoolRequest

    See

    AWSEC2DeletePublicIpv4PoolResult

    Declaration

    Objective-C

    - (id)deletePublicIpv4Pool:(nonnull AWSEC2DeletePublicIpv4PoolRequest *)request;

    Swift

    func deletePublicIpv4Pool(_ request: AWSEC2DeletePublicIpv4PoolRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeletePublicIpv4Pool service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeletePublicIpv4PoolResult.

  • Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only.

    See

    AWSEC2DeletePublicIpv4PoolRequest

    See

    AWSEC2DeletePublicIpv4PoolResult

    Declaration

    Objective-C

    - (void)deletePublicIpv4Pool:
                (nonnull AWSEC2DeletePublicIpv4PoolRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DeletePublicIpv4PoolResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func deletePublicIpv4Pool(_ request: AWSEC2DeletePublicIpv4PoolRequest) async throws -> AWSEC2DeletePublicIpv4PoolResult

    Parameters

    request

    A container for the necessary parameters to execute the DeletePublicIpv4Pool service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the queued purchases for the specified Reserved Instances.

    See

    AWSEC2DeleteQueuedReservedInstancesRequest

    See

    AWSEC2DeleteQueuedReservedInstancesResult

    Declaration

    Objective-C

    - (id)deleteQueuedReservedInstances:
        (nonnull AWSEC2DeleteQueuedReservedInstancesRequest *)request;

    Swift

    func deleteQueuedReservedInstances(_ request: AWSEC2DeleteQueuedReservedInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteQueuedReservedInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteQueuedReservedInstancesResult.

  • Deletes the queued purchases for the specified Reserved Instances.

    See

    AWSEC2DeleteQueuedReservedInstancesRequest

    See

    AWSEC2DeleteQueuedReservedInstancesResult

    Declaration

    Objective-C

    - (void)
        deleteQueuedReservedInstances:
            (nonnull AWSEC2DeleteQueuedReservedInstancesRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeleteQueuedReservedInstancesResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deleteQueuedReservedInstances(_ request: AWSEC2DeleteQueuedReservedInstancesRequest) async throws -> AWSEC2DeleteQueuedReservedInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteQueuedReservedInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified route from the specified route table.

    See

    AWSEC2DeleteRouteRequest

    Declaration

    Objective-C

    - (id)deleteRoute:(nonnull AWSEC2DeleteRouteRequest *)request;

    Swift

    func deleteRoute(_ request: AWSEC2DeleteRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified route from the specified route table.

    See

    AWSEC2DeleteRouteRequest

    Declaration

    Objective-C

    - (void)deleteRoute:(nonnull AWSEC2DeleteRouteRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteRoute(_ request: AWSEC2DeleteRouteRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can’t delete the main route table.

    See

    AWSEC2DeleteRouteTableRequest

    Declaration

    Objective-C

    - (id)deleteRouteTable:(nonnull AWSEC2DeleteRouteTableRequest *)request;

    Swift

    func deleteRouteTable(_ request: AWSEC2DeleteRouteTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteRouteTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can’t delete the main route table.

    See

    AWSEC2DeleteRouteTableRequest

    Declaration

    Objective-C

    - (void)deleteRouteTable:(nonnull AWSEC2DeleteRouteTableRequest *)request
           completionHandler:
               (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteRouteTable(_ request: AWSEC2DeleteRouteTableRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteRouteTable service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a security group.

    If you attempt to delete a security group that is associated with an instance or network interface or is referenced by another security group, the operation fails with DependencyViolation.

    See

    AWSEC2DeleteSecurityGroupRequest

    Declaration

    Objective-C

    - (id)deleteSecurityGroup:(nonnull AWSEC2DeleteSecurityGroupRequest *)request;

    Swift

    func deleteSecurityGroup(_ request: AWSEC2DeleteSecurityGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteSecurityGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes a security group.

    If you attempt to delete a security group that is associated with an instance or network interface or is referenced by another security group, the operation fails with DependencyViolation.

    See

    AWSEC2DeleteSecurityGroupRequest

    Declaration

    Objective-C

    - (void)deleteSecurityGroup:(nonnull AWSEC2DeleteSecurityGroupRequest *)request
              completionHandler:
                  (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteSecurityGroup(_ request: AWSEC2DeleteSecurityGroupRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteSecurityGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified snapshot.

    When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

    You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

    For more information, see Delete an Amazon EBS snapshot in the Amazon EBS User Guide.

    See

    AWSEC2DeleteSnapshotRequest

    Declaration

    Objective-C

    - (id)deleteSnapshot:(nonnull AWSEC2DeleteSnapshotRequest *)request;

    Swift

    func deleteSnapshot(_ request: AWSEC2DeleteSnapshotRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteSnapshot service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified snapshot.

    When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.

    You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.

    For more information, see Delete an Amazon EBS snapshot in the Amazon EBS User Guide.

    See

    AWSEC2DeleteSnapshotRequest

    Declaration

    Objective-C

    - (void)deleteSnapshot:(nonnull AWSEC2DeleteSnapshotRequest *)request
         completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteSnapshot(_ request: AWSEC2DeleteSnapshotRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteSnapshot service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the data feed for Spot Instances.

    See

    AWSEC2DeleteSpotDatafeedSubscriptionRequest

    Declaration

    Objective-C

    - (id)deleteSpotDatafeedSubscription:
        (nonnull AWSEC2DeleteSpotDatafeedSubscriptionRequest *)request;

    Swift

    func deleteSpotDatafeedSubscription(_ request: AWSEC2DeleteSpotDatafeedSubscriptionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteSpotDatafeedSubscription service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the data feed for Spot Instances.

    See

    AWSEC2DeleteSpotDatafeedSubscriptionRequest

    Declaration

    Objective-C

    - (void)deleteSpotDatafeedSubscription:
                (nonnull AWSEC2DeleteSpotDatafeedSubscriptionRequest *)request
                         completionHandler:(void (^_Nullable)(NSError *_Nullable))
                                               completionHandler;

    Swift

    func deleteSpotDatafeedSubscription(_ request: AWSEC2DeleteSpotDatafeedSubscriptionRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteSpotDatafeedSubscription service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

    See

    AWSEC2DeleteSubnetRequest

    Declaration

    Objective-C

    - (id)deleteSubnet:(nonnull AWSEC2DeleteSubnetRequest *)request;

    Swift

    func deleteSubnet(_ request: AWSEC2DeleteSubnetRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteSubnet service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.

    See

    AWSEC2DeleteSubnetRequest

    Declaration

    Objective-C

    - (void)deleteSubnet:(nonnull AWSEC2DeleteSubnetRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteSubnet(_ request: AWSEC2DeleteSubnetRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteSubnet service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a subnet CIDR reservation.

    See

    AWSEC2DeleteSubnetCidrReservationRequest

    See

    AWSEC2DeleteSubnetCidrReservationResult

    Declaration

    Objective-C

    - (id)deleteSubnetCidrReservation:
        (nonnull AWSEC2DeleteSubnetCidrReservationRequest *)request;

    Swift

    func deleteSubnetCidrReservation(_ request: AWSEC2DeleteSubnetCidrReservationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteSubnetCidrReservation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteSubnetCidrReservationResult.

  • Deletes a subnet CIDR reservation.

    See

    AWSEC2DeleteSubnetCidrReservationRequest

    See

    AWSEC2DeleteSubnetCidrReservationResult

    Declaration

    Objective-C

    - (void)deleteSubnetCidrReservation:
                (nonnull AWSEC2DeleteSubnetCidrReservationRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2DeleteSubnetCidrReservationResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func deleteSubnetCidrReservation(_ request: AWSEC2DeleteSubnetCidrReservationRequest) async throws -> AWSEC2DeleteSubnetCidrReservationResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteSubnetCidrReservation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified set of tags from the specified set of resources.

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

    See

    AWSEC2DeleteTagsRequest

    Declaration

    Objective-C

    - (id)deleteTags:(nonnull AWSEC2DeleteTagsRequest *)request;

    Swift

    func deleteTags(_ request: AWSEC2DeleteTagsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTags service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified set of tags from the specified set of resources.

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

    See

    AWSEC2DeleteTagsRequest

    Declaration

    Objective-C

    - (void)deleteTags:(nonnull AWSEC2DeleteTagsRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteTags(_ request: AWSEC2DeleteTagsRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTags service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified Traffic Mirror filter.

    You cannot delete a Traffic Mirror filter that is in use by a Traffic Mirror session.

    See

    AWSEC2DeleteTrafficMirrorFilterRequest

    See

    AWSEC2DeleteTrafficMirrorFilterResult

    Declaration

    Objective-C

    - (id)deleteTrafficMirrorFilter:
        (nonnull AWSEC2DeleteTrafficMirrorFilterRequest *)request;

    Swift

    func deleteTrafficMirrorFilter(_ request: AWSEC2DeleteTrafficMirrorFilterRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTrafficMirrorFilter service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTrafficMirrorFilterResult.

  • Deletes the specified Traffic Mirror filter.

    You cannot delete a Traffic Mirror filter that is in use by a Traffic Mirror session.

    See

    AWSEC2DeleteTrafficMirrorFilterRequest

    See

    AWSEC2DeleteTrafficMirrorFilterResult

    Declaration

    Objective-C

    - (void)deleteTrafficMirrorFilter:
                (nonnull AWSEC2DeleteTrafficMirrorFilterRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeleteTrafficMirrorFilterResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deleteTrafficMirrorFilter(_ request: AWSEC2DeleteTrafficMirrorFilterRequest) async throws -> AWSEC2DeleteTrafficMirrorFilterResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTrafficMirrorFilter service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified Traffic Mirror rule.

    See

    AWSEC2DeleteTrafficMirrorFilterRuleRequest

    See

    AWSEC2DeleteTrafficMirrorFilterRuleResult

    Declaration

    Objective-C

    - (id)deleteTrafficMirrorFilterRule:
        (nonnull AWSEC2DeleteTrafficMirrorFilterRuleRequest *)request;

    Swift

    func deleteTrafficMirrorFilterRule(_ request: AWSEC2DeleteTrafficMirrorFilterRuleRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTrafficMirrorFilterRule service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTrafficMirrorFilterRuleResult.

  • Deletes the specified Traffic Mirror rule.

    See

    AWSEC2DeleteTrafficMirrorFilterRuleRequest

    See

    AWSEC2DeleteTrafficMirrorFilterRuleResult

    Declaration

    Objective-C

    - (void)
        deleteTrafficMirrorFilterRule:
            (nonnull AWSEC2DeleteTrafficMirrorFilterRuleRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeleteTrafficMirrorFilterRuleResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deleteTrafficMirrorFilterRule(_ request: AWSEC2DeleteTrafficMirrorFilterRuleRequest) async throws -> AWSEC2DeleteTrafficMirrorFilterRuleResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTrafficMirrorFilterRule service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified Traffic Mirror session.

    See

    AWSEC2DeleteTrafficMirrorSessionRequest

    See

    AWSEC2DeleteTrafficMirrorSessionResult

    Declaration

    Objective-C

    - (id)deleteTrafficMirrorSession:
        (nonnull AWSEC2DeleteTrafficMirrorSessionRequest *)request;

    Swift

    func deleteTrafficMirrorSession(_ request: AWSEC2DeleteTrafficMirrorSessionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTrafficMirrorSession service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTrafficMirrorSessionResult.

  • Deletes the specified Traffic Mirror session.

    See

    AWSEC2DeleteTrafficMirrorSessionRequest

    See

    AWSEC2DeleteTrafficMirrorSessionResult

    Declaration

    Objective-C

    - (void)deleteTrafficMirrorSession:
                (nonnull AWSEC2DeleteTrafficMirrorSessionRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DeleteTrafficMirrorSessionResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func deleteTrafficMirrorSession(_ request: AWSEC2DeleteTrafficMirrorSessionRequest) async throws -> AWSEC2DeleteTrafficMirrorSessionResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTrafficMirrorSession service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified Traffic Mirror target.

    You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror session.

    See

    AWSEC2DeleteTrafficMirrorTargetRequest

    See

    AWSEC2DeleteTrafficMirrorTargetResult

    Declaration

    Objective-C

    - (id)deleteTrafficMirrorTarget:
        (nonnull AWSEC2DeleteTrafficMirrorTargetRequest *)request;

    Swift

    func deleteTrafficMirrorTarget(_ request: AWSEC2DeleteTrafficMirrorTargetRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTrafficMirrorTarget service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTrafficMirrorTargetResult.

  • Deletes the specified Traffic Mirror target.

    You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror session.

    See

    AWSEC2DeleteTrafficMirrorTargetRequest

    See

    AWSEC2DeleteTrafficMirrorTargetResult

    Declaration

    Objective-C

    - (void)deleteTrafficMirrorTarget:
                (nonnull AWSEC2DeleteTrafficMirrorTargetRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeleteTrafficMirrorTargetResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deleteTrafficMirrorTarget(_ request: AWSEC2DeleteTrafficMirrorTargetRequest) async throws -> AWSEC2DeleteTrafficMirrorTargetResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTrafficMirrorTarget service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified transit gateway.

    See

    AWSEC2DeleteTransitGatewayRequest

    See

    AWSEC2DeleteTransitGatewayResult

    Declaration

    Objective-C

    - (id)deleteTransitGateway:(nonnull AWSEC2DeleteTransitGatewayRequest *)request;

    Swift

    func deleteTransitGateway(_ request: AWSEC2DeleteTransitGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayResult.

  • Deletes the specified transit gateway.

    See

    AWSEC2DeleteTransitGatewayRequest

    See

    AWSEC2DeleteTransitGatewayResult

    Declaration

    Objective-C

    - (void)deleteTransitGateway:
                (nonnull AWSEC2DeleteTransitGatewayRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DeleteTransitGatewayResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGateway(_ request: AWSEC2DeleteTransitGatewayRequest) async throws -> AWSEC2DeleteTransitGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified Connect attachment. You must first delete any Connect peers for the attachment.

    See

    AWSEC2DeleteTransitGatewayConnectRequest

    See

    AWSEC2DeleteTransitGatewayConnectResult

    Declaration

    Objective-C

    - (id)deleteTransitGatewayConnect:
        (nonnull AWSEC2DeleteTransitGatewayConnectRequest *)request;

    Swift

    func deleteTransitGatewayConnect(_ request: AWSEC2DeleteTransitGatewayConnectRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayConnect service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayConnectResult.

  • Deletes the specified Connect attachment. You must first delete any Connect peers for the attachment.

    See

    AWSEC2DeleteTransitGatewayConnectRequest

    See

    AWSEC2DeleteTransitGatewayConnectResult

    Declaration

    Objective-C

    - (void)deleteTransitGatewayConnect:
                (nonnull AWSEC2DeleteTransitGatewayConnectRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2DeleteTransitGatewayConnectResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGatewayConnect(_ request: AWSEC2DeleteTransitGatewayConnectRequest) async throws -> AWSEC2DeleteTransitGatewayConnectResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayConnect service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified Connect peer.

    See

    AWSEC2DeleteTransitGatewayConnectPeerRequest

    See

    AWSEC2DeleteTransitGatewayConnectPeerResult

    Declaration

    Objective-C

    - (id)deleteTransitGatewayConnectPeer:
        (nonnull AWSEC2DeleteTransitGatewayConnectPeerRequest *)request;

    Swift

    func deleteTransitGatewayConnectPeer(_ request: AWSEC2DeleteTransitGatewayConnectPeerRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayConnectPeer service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayConnectPeerResult.

  • Deletes the specified Connect peer.

    See

    AWSEC2DeleteTransitGatewayConnectPeerRequest

    See

    AWSEC2DeleteTransitGatewayConnectPeerResult

    Declaration

    Objective-C

    - (void)deleteTransitGatewayConnectPeer:
                (nonnull AWSEC2DeleteTransitGatewayConnectPeerRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DeleteTransitGatewayConnectPeerResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGatewayConnectPeer(_ request: AWSEC2DeleteTransitGatewayConnectPeerRequest) async throws -> AWSEC2DeleteTransitGatewayConnectPeerResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayConnectPeer service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified transit gateway multicast domain.

    See

    AWSEC2DeleteTransitGatewayMulticastDomainRequest

    See

    AWSEC2DeleteTransitGatewayMulticastDomainResult

    Declaration

    Objective-C

    - (id)deleteTransitGatewayMulticastDomain:
        (nonnull AWSEC2DeleteTransitGatewayMulticastDomainRequest *)request;

    Swift

    func deleteTransitGatewayMulticastDomain(_ request: AWSEC2DeleteTransitGatewayMulticastDomainRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayMulticastDomain service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayMulticastDomainResult.

  • Deletes the specified transit gateway multicast domain.

    See

    AWSEC2DeleteTransitGatewayMulticastDomainRequest

    See

    AWSEC2DeleteTransitGatewayMulticastDomainResult

    Declaration

    Objective-C

    - (void)
        deleteTransitGatewayMulticastDomain:
            (nonnull AWSEC2DeleteTransitGatewayMulticastDomainRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DeleteTransitGatewayMulticastDomainResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGatewayMulticastDomain(_ request: AWSEC2DeleteTransitGatewayMulticastDomainRequest) async throws -> AWSEC2DeleteTransitGatewayMulticastDomainResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayMulticastDomain service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a transit gateway peering attachment.

    See

    AWSEC2DeleteTransitGatewayPeeringAttachmentRequest

    See

    AWSEC2DeleteTransitGatewayPeeringAttachmentResult

    Declaration

    Objective-C

    - (id)deleteTransitGatewayPeeringAttachment:
        (nonnull AWSEC2DeleteTransitGatewayPeeringAttachmentRequest *)request;

    Swift

    func deleteTransitGatewayPeeringAttachment(_ request: AWSEC2DeleteTransitGatewayPeeringAttachmentRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayPeeringAttachment service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayPeeringAttachmentResult.

  • Deletes a transit gateway peering attachment.

    See

    AWSEC2DeleteTransitGatewayPeeringAttachmentRequest

    See

    AWSEC2DeleteTransitGatewayPeeringAttachmentResult

    Declaration

    Objective-C

    - (void)
        deleteTransitGatewayPeeringAttachment:
            (nonnull AWSEC2DeleteTransitGatewayPeeringAttachmentRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DeleteTransitGatewayPeeringAttachmentResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGatewayPeeringAttachment(_ request: AWSEC2DeleteTransitGatewayPeeringAttachmentRequest) async throws -> AWSEC2DeleteTransitGatewayPeeringAttachmentResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayPeeringAttachment service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified transit gateway policy table.

    See

    AWSEC2DeleteTransitGatewayPolicyTableRequest

    See

    AWSEC2DeleteTransitGatewayPolicyTableResult

    Declaration

    Objective-C

    - (id)deleteTransitGatewayPolicyTable:
        (nonnull AWSEC2DeleteTransitGatewayPolicyTableRequest *)request;

    Swift

    func deleteTransitGatewayPolicyTable(_ request: AWSEC2DeleteTransitGatewayPolicyTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayPolicyTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayPolicyTableResult.

  • Deletes the specified transit gateway policy table.

    See

    AWSEC2DeleteTransitGatewayPolicyTableRequest

    See

    AWSEC2DeleteTransitGatewayPolicyTableResult

    Declaration

    Objective-C

    - (void)deleteTransitGatewayPolicyTable:
                (nonnull AWSEC2DeleteTransitGatewayPolicyTableRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DeleteTransitGatewayPolicyTableResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGatewayPolicyTable(_ request: AWSEC2DeleteTransitGatewayPolicyTableRequest) async throws -> AWSEC2DeleteTransitGatewayPolicyTableResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayPolicyTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a reference (route) to a prefix list in a specified transit gateway route table.

    See

    AWSEC2DeleteTransitGatewayPrefixListReferenceRequest

    See

    AWSEC2DeleteTransitGatewayPrefixListReferenceResult

    Declaration

    Objective-C

    - (id)deleteTransitGatewayPrefixListReference:
        (nonnull AWSEC2DeleteTransitGatewayPrefixListReferenceRequest *)request;

    Swift

    func deleteTransitGatewayPrefixListReference(_ request: AWSEC2DeleteTransitGatewayPrefixListReferenceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayPrefixListReference service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayPrefixListReferenceResult.

  • Deletes a reference (route) to a prefix list in a specified transit gateway route table.

    See

    AWSEC2DeleteTransitGatewayPrefixListReferenceRequest

    See

    AWSEC2DeleteTransitGatewayPrefixListReferenceResult

    Declaration

    Objective-C

    - (void)
        deleteTransitGatewayPrefixListReference:
            (nonnull AWSEC2DeleteTransitGatewayPrefixListReferenceRequest *)request
                              completionHandler:
                                  (void (^_Nullable)(
                                      AWSEC2DeleteTransitGatewayPrefixListReferenceResult
                                          *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGatewayPrefixListReference(_ request: AWSEC2DeleteTransitGatewayPrefixListReferenceRequest) async throws -> AWSEC2DeleteTransitGatewayPrefixListReferenceResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayPrefixListReference service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified route from the specified transit gateway route table.

    See

    AWSEC2DeleteTransitGatewayRouteRequest

    See

    AWSEC2DeleteTransitGatewayRouteResult

    Declaration

    Objective-C

    - (id)deleteTransitGatewayRoute:
        (nonnull AWSEC2DeleteTransitGatewayRouteRequest *)request;

    Swift

    func deleteTransitGatewayRoute(_ request: AWSEC2DeleteTransitGatewayRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayRouteResult.

  • Deletes the specified route from the specified transit gateway route table.

    See

    AWSEC2DeleteTransitGatewayRouteRequest

    See

    AWSEC2DeleteTransitGatewayRouteResult

    Declaration

    Objective-C

    - (void)deleteTransitGatewayRoute:
                (nonnull AWSEC2DeleteTransitGatewayRouteRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeleteTransitGatewayRouteResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGatewayRoute(_ request: AWSEC2DeleteTransitGatewayRouteRequest) async throws -> AWSEC2DeleteTransitGatewayRouteResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified transit gateway route table. If there are any route tables associated with the transit gateway route table, you must first run DisassociateRouteTable before you can delete the transit gateway route table. This removes any route tables associated with the transit gateway route table.

    See

    AWSEC2DeleteTransitGatewayRouteTableRequest

    See

    AWSEC2DeleteTransitGatewayRouteTableResult

    Declaration

    Objective-C

    - (id)deleteTransitGatewayRouteTable:
        (nonnull AWSEC2DeleteTransitGatewayRouteTableRequest *)request;

    Swift

    func deleteTransitGatewayRouteTable(_ request: AWSEC2DeleteTransitGatewayRouteTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayRouteTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayRouteTableResult.

  • Deletes the specified transit gateway route table. If there are any route tables associated with the transit gateway route table, you must first run DisassociateRouteTable before you can delete the transit gateway route table. This removes any route tables associated with the transit gateway route table.

    See

    AWSEC2DeleteTransitGatewayRouteTableRequest

    See

    AWSEC2DeleteTransitGatewayRouteTableResult

    Declaration

    Objective-C

    - (void)
        deleteTransitGatewayRouteTable:
            (nonnull AWSEC2DeleteTransitGatewayRouteTableRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DeleteTransitGatewayRouteTableResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGatewayRouteTable(_ request: AWSEC2DeleteTransitGatewayRouteTableRequest) async throws -> AWSEC2DeleteTransitGatewayRouteTableResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayRouteTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Advertises to the transit gateway that a transit gateway route table is deleted.

    See

    AWSEC2DeleteTransitGatewayRouteTableAnnouncementRequest

    See

    AWSEC2DeleteTransitGatewayRouteTableAnnouncementResult

    Declaration

    Objective-C

    - (id)deleteTransitGatewayRouteTableAnnouncement:
        (nonnull AWSEC2DeleteTransitGatewayRouteTableAnnouncementRequest *)request;

    Swift

    func deleteTransitGatewayRouteTableAnnouncement(_ request: AWSEC2DeleteTransitGatewayRouteTableAnnouncementRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayRouteTableAnnouncement service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayRouteTableAnnouncementResult.

  • Advertises to the transit gateway that a transit gateway route table is deleted.

    See

    AWSEC2DeleteTransitGatewayRouteTableAnnouncementRequest

    See

    AWSEC2DeleteTransitGatewayRouteTableAnnouncementResult

    Declaration

    Objective-C

    - (void)
        deleteTransitGatewayRouteTableAnnouncement:
            (nonnull AWSEC2DeleteTransitGatewayRouteTableAnnouncementRequest *)
                request
                                 completionHandler:
                                     (void (^_Nullable)(
                                         AWSEC2DeleteTransitGatewayRouteTableAnnouncementResult
                                             *_Nullable,
                                         NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGatewayRouteTableAnnouncement(_ request: AWSEC2DeleteTransitGatewayRouteTableAnnouncementRequest) async throws -> AWSEC2DeleteTransitGatewayRouteTableAnnouncementResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayRouteTableAnnouncement service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified VPC attachment.

    See

    AWSEC2DeleteTransitGatewayVpcAttachmentRequest

    See

    AWSEC2DeleteTransitGatewayVpcAttachmentResult

    Declaration

    Objective-C

    - (id)deleteTransitGatewayVpcAttachment:
        (nonnull AWSEC2DeleteTransitGatewayVpcAttachmentRequest *)request;

    Swift

    func deleteTransitGatewayVpcAttachment(_ request: AWSEC2DeleteTransitGatewayVpcAttachmentRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayVpcAttachment service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteTransitGatewayVpcAttachmentResult.

  • Deletes the specified VPC attachment.

    See

    AWSEC2DeleteTransitGatewayVpcAttachmentRequest

    See

    AWSEC2DeleteTransitGatewayVpcAttachmentResult

    Declaration

    Objective-C

    - (void)deleteTransitGatewayVpcAttachment:
                (nonnull AWSEC2DeleteTransitGatewayVpcAttachmentRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DeleteTransitGatewayVpcAttachmentResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func deleteTransitGatewayVpcAttachment(_ request: AWSEC2DeleteTransitGatewayVpcAttachmentRequest) async throws -> AWSEC2DeleteTransitGatewayVpcAttachmentResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteTransitGatewayVpcAttachment service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Delete an Amazon Web Services Verified Access endpoint.

    See

    AWSEC2DeleteVerifiedAccessEndpointRequest

    See

    AWSEC2DeleteVerifiedAccessEndpointResult

    Declaration

    Objective-C

    - (id)deleteVerifiedAccessEndpoint:
        (nonnull AWSEC2DeleteVerifiedAccessEndpointRequest *)request;

    Swift

    func deleteVerifiedAccessEndpoint(_ request: AWSEC2DeleteVerifiedAccessEndpointRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVerifiedAccessEndpoint service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteVerifiedAccessEndpointResult.

  • Delete an Amazon Web Services Verified Access endpoint.

    See

    AWSEC2DeleteVerifiedAccessEndpointRequest

    See

    AWSEC2DeleteVerifiedAccessEndpointResult

    Declaration

    Objective-C

    - (void)deleteVerifiedAccessEndpoint:
                (nonnull AWSEC2DeleteVerifiedAccessEndpointRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DeleteVerifiedAccessEndpointResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func deleteVerifiedAccessEndpoint(_ request: AWSEC2DeleteVerifiedAccessEndpointRequest) async throws -> AWSEC2DeleteVerifiedAccessEndpointResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVerifiedAccessEndpoint service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Delete an Amazon Web Services Verified Access group.

    See

    AWSEC2DeleteVerifiedAccessGroupRequest

    See

    AWSEC2DeleteVerifiedAccessGroupResult

    Declaration

    Objective-C

    - (id)deleteVerifiedAccessGroup:
        (nonnull AWSEC2DeleteVerifiedAccessGroupRequest *)request;

    Swift

    func deleteVerifiedAccessGroup(_ request: AWSEC2DeleteVerifiedAccessGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVerifiedAccessGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteVerifiedAccessGroupResult.

  • Delete an Amazon Web Services Verified Access group.

    See

    AWSEC2DeleteVerifiedAccessGroupRequest

    See

    AWSEC2DeleteVerifiedAccessGroupResult

    Declaration

    Objective-C

    - (void)deleteVerifiedAccessGroup:
                (nonnull AWSEC2DeleteVerifiedAccessGroupRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeleteVerifiedAccessGroupResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deleteVerifiedAccessGroup(_ request: AWSEC2DeleteVerifiedAccessGroupRequest) async throws -> AWSEC2DeleteVerifiedAccessGroupResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVerifiedAccessGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Delete an Amazon Web Services Verified Access instance.

    See

    AWSEC2DeleteVerifiedAccessInstanceRequest

    See

    AWSEC2DeleteVerifiedAccessInstanceResult

    Declaration

    Objective-C

    - (id)deleteVerifiedAccessInstance:
        (nonnull AWSEC2DeleteVerifiedAccessInstanceRequest *)request;

    Swift

    func deleteVerifiedAccessInstance(_ request: AWSEC2DeleteVerifiedAccessInstanceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVerifiedAccessInstance service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteVerifiedAccessInstanceResult.

  • Delete an Amazon Web Services Verified Access instance.

    See

    AWSEC2DeleteVerifiedAccessInstanceRequest

    See

    AWSEC2DeleteVerifiedAccessInstanceResult

    Declaration

    Objective-C

    - (void)deleteVerifiedAccessInstance:
                (nonnull AWSEC2DeleteVerifiedAccessInstanceRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DeleteVerifiedAccessInstanceResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func deleteVerifiedAccessInstance(_ request: AWSEC2DeleteVerifiedAccessInstanceRequest) async throws -> AWSEC2DeleteVerifiedAccessInstanceResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVerifiedAccessInstance service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Delete an Amazon Web Services Verified Access trust provider.

    See

    AWSEC2DeleteVerifiedAccessTrustProviderRequest

    See

    AWSEC2DeleteVerifiedAccessTrustProviderResult

    Declaration

    Objective-C

    - (id)deleteVerifiedAccessTrustProvider:
        (nonnull AWSEC2DeleteVerifiedAccessTrustProviderRequest *)request;

    Swift

    func deleteVerifiedAccessTrustProvider(_ request: AWSEC2DeleteVerifiedAccessTrustProviderRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVerifiedAccessTrustProvider service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteVerifiedAccessTrustProviderResult.

  • Delete an Amazon Web Services Verified Access trust provider.

    See

    AWSEC2DeleteVerifiedAccessTrustProviderRequest

    See

    AWSEC2DeleteVerifiedAccessTrustProviderResult

    Declaration

    Objective-C

    - (void)deleteVerifiedAccessTrustProvider:
                (nonnull AWSEC2DeleteVerifiedAccessTrustProviderRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DeleteVerifiedAccessTrustProviderResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func deleteVerifiedAccessTrustProvider(_ request: AWSEC2DeleteVerifiedAccessTrustProviderRequest) async throws -> AWSEC2DeleteVerifiedAccessTrustProviderResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVerifiedAccessTrustProvider service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

    The volume can remain in the deleting state for several minutes.

    For more information, see Delete an Amazon EBS volume in the Amazon EBS User Guide.

    See

    AWSEC2DeleteVolumeRequest

    Declaration

    Objective-C

    - (id)deleteVolume:(nonnull AWSEC2DeleteVolumeRequest *)request;

    Swift

    func deleteVolume(_ request: AWSEC2DeleteVolumeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVolume service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified EBS volume. The volume must be in the available state (not attached to an instance).

    The volume can remain in the deleting state for several minutes.

    For more information, see Delete an Amazon EBS volume in the Amazon EBS User Guide.

    See

    AWSEC2DeleteVolumeRequest

    Declaration

    Objective-C

    - (void)deleteVolume:(nonnull AWSEC2DeleteVolumeRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteVolume(_ request: AWSEC2DeleteVolumeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVolume service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on. When you delete the VPC, it deletes the VPC’s default security group, network ACL, and route table.

    See

    AWSEC2DeleteVpcRequest

    Declaration

    Objective-C

    - (id)deleteVpc:(nonnull AWSEC2DeleteVpcRequest *)request;

    Swift

    func deleteVpc(_ request: AWSEC2DeleteVpcRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpc service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on. When you delete the VPC, it deletes the VPC’s default security group, network ACL, and route table.

    See

    AWSEC2DeleteVpcRequest

    Declaration

    Objective-C

    - (void)deleteVpc:(nonnull AWSEC2DeleteVpcRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteVpc(_ request: AWSEC2DeleteVpcRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpc service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified VPC endpoint connection notifications.

    See

    AWSEC2DeleteVpcEndpointConnectionNotificationsRequest

    See

    AWSEC2DeleteVpcEndpointConnectionNotificationsResult

    Declaration

    Objective-C

    - (id)deleteVpcEndpointConnectionNotifications:
        (nonnull AWSEC2DeleteVpcEndpointConnectionNotificationsRequest *)request;

    Swift

    func deleteVpcEndpointConnectionNotifications(_ request: AWSEC2DeleteVpcEndpointConnectionNotificationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpcEndpointConnectionNotifications service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteVpcEndpointConnectionNotificationsResult.

  • Deletes the specified VPC endpoint connection notifications.

    See

    AWSEC2DeleteVpcEndpointConnectionNotificationsRequest

    See

    AWSEC2DeleteVpcEndpointConnectionNotificationsResult

    Declaration

    Objective-C

    - (void)
        deleteVpcEndpointConnectionNotifications:
            (nonnull AWSEC2DeleteVpcEndpointConnectionNotificationsRequest *)request
                               completionHandler:
                                   (void (^_Nullable)(
                                       AWSEC2DeleteVpcEndpointConnectionNotificationsResult
                                           *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func deleteVpcEndpointConnectionNotifications(_ request: AWSEC2DeleteVpcEndpointConnectionNotificationsRequest) async throws -> AWSEC2DeleteVpcEndpointConnectionNotificationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpcEndpointConnectionNotifications service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified VPC endpoint service configurations. Before you can delete an endpoint service configuration, you must reject any Available or PendingAcceptance interface endpoint connections that are attached to the service.

    See

    AWSEC2DeleteVpcEndpointServiceConfigurationsRequest

    See

    AWSEC2DeleteVpcEndpointServiceConfigurationsResult

    Declaration

    Objective-C

    - (id)deleteVpcEndpointServiceConfigurations:
        (nonnull AWSEC2DeleteVpcEndpointServiceConfigurationsRequest *)request;

    Swift

    func deleteVpcEndpointServiceConfigurations(_ request: AWSEC2DeleteVpcEndpointServiceConfigurationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpcEndpointServiceConfigurations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteVpcEndpointServiceConfigurationsResult.

  • Deletes the specified VPC endpoint service configurations. Before you can delete an endpoint service configuration, you must reject any Available or PendingAcceptance interface endpoint connections that are attached to the service.

    See

    AWSEC2DeleteVpcEndpointServiceConfigurationsRequest

    See

    AWSEC2DeleteVpcEndpointServiceConfigurationsResult

    Declaration

    Objective-C

    - (void)
        deleteVpcEndpointServiceConfigurations:
            (nonnull AWSEC2DeleteVpcEndpointServiceConfigurationsRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2DeleteVpcEndpointServiceConfigurationsResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func deleteVpcEndpointServiceConfigurations(_ request: AWSEC2DeleteVpcEndpointServiceConfigurationsRequest) async throws -> AWSEC2DeleteVpcEndpointServiceConfigurationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpcEndpointServiceConfigurations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified VPC endpoints.

    When you delete a gateway endpoint, we delete the endpoint routes in the route tables for the endpoint.

    When you delete a Gateway Load Balancer endpoint, we delete its endpoint network interfaces. You can only delete Gateway Load Balancer endpoints when the routes that are associated with the endpoint are deleted.

    When you delete an interface endpoint, we delete its endpoint network interfaces.

    See

    AWSEC2DeleteVpcEndpointsRequest

    See

    AWSEC2DeleteVpcEndpointsResult

    Declaration

    Objective-C

    - (id)deleteVpcEndpoints:(nonnull AWSEC2DeleteVpcEndpointsRequest *)request;

    Swift

    func deleteVpcEndpoints(_ request: AWSEC2DeleteVpcEndpointsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpcEndpoints service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteVpcEndpointsResult.

  • Deletes the specified VPC endpoints.

    When you delete a gateway endpoint, we delete the endpoint routes in the route tables for the endpoint.

    When you delete a Gateway Load Balancer endpoint, we delete its endpoint network interfaces. You can only delete Gateway Load Balancer endpoints when the routes that are associated with the endpoint are deleted.

    When you delete an interface endpoint, we delete its endpoint network interfaces.

    See

    AWSEC2DeleteVpcEndpointsRequest

    See

    AWSEC2DeleteVpcEndpointsResult

    Declaration

    Objective-C

    - (void)deleteVpcEndpoints:(nonnull AWSEC2DeleteVpcEndpointsRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DeleteVpcEndpointsResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func deleteVpcEndpoints(_ request: AWSEC2DeleteVpcEndpointsRequest) async throws -> AWSEC2DeleteVpcEndpointsResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpcEndpoints service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it’s in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state. You cannot delete a VPC peering connection that’s in the failed or rejected state.

    See

    AWSEC2DeleteVpcPeeringConnectionRequest

    See

    AWSEC2DeleteVpcPeeringConnectionResult

    Declaration

    Objective-C

    - (id)deleteVpcPeeringConnection:
        (nonnull AWSEC2DeleteVpcPeeringConnectionRequest *)request;

    Swift

    func deleteVpcPeeringConnection(_ request: AWSEC2DeleteVpcPeeringConnectionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpcPeeringConnection service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeleteVpcPeeringConnectionResult.

  • Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it’s in the active state. The owner of the requester VPC can delete a VPC peering connection in the pending-acceptance state. You cannot delete a VPC peering connection that’s in the failed or rejected state.

    See

    AWSEC2DeleteVpcPeeringConnectionRequest

    See

    AWSEC2DeleteVpcPeeringConnectionResult

    Declaration

    Objective-C

    - (void)deleteVpcPeeringConnection:
                (nonnull AWSEC2DeleteVpcPeeringConnectionRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DeleteVpcPeeringConnectionResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func deleteVpcPeeringConnection(_ request: AWSEC2DeleteVpcPeeringConnectionRequest) async throws -> AWSEC2DeleteVpcPeeringConnectionResult

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpcPeeringConnection service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified VPN connection.

    If you’re deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway device using the new configuration information returned with the new VPN connection ID.

    For certificate-based authentication, delete all Certificate Manager (ACM) private certificates used for the Amazon Web Services-side tunnel endpoints for the VPN connection before deleting the VPN connection.

    See

    AWSEC2DeleteVpnConnectionRequest

    Declaration

    Objective-C

    - (id)deleteVpnConnection:(nonnull AWSEC2DeleteVpnConnectionRequest *)request;

    Swift

    func deleteVpnConnection(_ request: AWSEC2DeleteVpnConnectionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpnConnection service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified VPN connection.

    If you’re deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway device using the new configuration information returned with the new VPN connection ID.

    For certificate-based authentication, delete all Certificate Manager (ACM) private certificates used for the Amazon Web Services-side tunnel endpoints for the VPN connection before deleting the VPN connection.

    See

    AWSEC2DeleteVpnConnectionRequest

    Declaration

    Objective-C

    - (void)deleteVpnConnection:(nonnull AWSEC2DeleteVpnConnectionRequest *)request
              completionHandler:
                  (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteVpnConnection(_ request: AWSEC2DeleteVpnConnectionRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpnConnection service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

    See

    AWSEC2DeleteVpnConnectionRouteRequest

    Declaration

    Objective-C

    - (id)deleteVpnConnectionRoute:
        (nonnull AWSEC2DeleteVpnConnectionRouteRequest *)request;

    Swift

    func deleteVpnConnectionRoute(_ request: AWSEC2DeleteVpnConnectionRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpnConnectionRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.

    See

    AWSEC2DeleteVpnConnectionRouteRequest

    Declaration

    Objective-C

    - (void)deleteVpnConnectionRoute:
                (nonnull AWSEC2DeleteVpnConnectionRouteRequest *)request
                   completionHandler:
                       (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteVpnConnectionRoute(_ request: AWSEC2DeleteVpnConnectionRouteRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpnConnectionRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deletes the specified virtual private gateway. You must first detach the virtual private gateway from the VPC. Note that you don’t need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.

    See

    AWSEC2DeleteVpnGatewayRequest

    Declaration

    Objective-C

    - (id)deleteVpnGateway:(nonnull AWSEC2DeleteVpnGatewayRequest *)request;

    Swift

    func deleteVpnGateway(_ request: AWSEC2DeleteVpnGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpnGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deletes the specified virtual private gateway. You must first detach the virtual private gateway from the VPC. Note that you don’t need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.

    See

    AWSEC2DeleteVpnGatewayRequest

    Declaration

    Objective-C

    - (void)deleteVpnGateway:(nonnull AWSEC2DeleteVpnGatewayRequest *)request
           completionHandler:
               (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deleteVpnGateway(_ request: AWSEC2DeleteVpnGatewayRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeleteVpnGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Releases the specified address range that you provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.

    Before you can release an address range, you must stop advertising it using WithdrawByoipCidr and you must not have any IP addresses allocated from its address range.

    See

    AWSEC2DeprovisionByoipCidrRequest

    See

    AWSEC2DeprovisionByoipCidrResult

    Declaration

    Objective-C

    - (id)deprovisionByoipCidr:(nonnull AWSEC2DeprovisionByoipCidrRequest *)request;

    Swift

    func deprovisionByoipCidr(_ request: AWSEC2DeprovisionByoipCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeprovisionByoipCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeprovisionByoipCidrResult.

  • Releases the specified address range that you provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.

    Before you can release an address range, you must stop advertising it using WithdrawByoipCidr and you must not have any IP addresses allocated from its address range.

    See

    AWSEC2DeprovisionByoipCidrRequest

    See

    AWSEC2DeprovisionByoipCidrResult

    Declaration

    Objective-C

    - (void)deprovisionByoipCidr:
                (nonnull AWSEC2DeprovisionByoipCidrRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DeprovisionByoipCidrResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func deprovisionByoipCidr(_ request: AWSEC2DeprovisionByoipCidrRequest) async throws -> AWSEC2DeprovisionByoipCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the DeprovisionByoipCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deprovisions your Autonomous System Number (ASN) from your Amazon Web Services account. This action can only be called after any BYOIP CIDR associations are removed from your Amazon Web Services account with DisassociateIpamByoasn. For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

    See

    AWSEC2DeprovisionIpamByoasnRequest

    See

    AWSEC2DeprovisionIpamByoasnResult

    Declaration

    Objective-C

    - (id)deprovisionIpamByoasn:
        (nonnull AWSEC2DeprovisionIpamByoasnRequest *)request;

    Swift

    func deprovisionIpamByoasn(_ request: AWSEC2DeprovisionIpamByoasnRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeprovisionIpamByoasn service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeprovisionIpamByoasnResult.

  • Deprovisions your Autonomous System Number (ASN) from your Amazon Web Services account. This action can only be called after any BYOIP CIDR associations are removed from your Amazon Web Services account with DisassociateIpamByoasn. For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

    See

    AWSEC2DeprovisionIpamByoasnRequest

    See

    AWSEC2DeprovisionIpamByoasnResult

    Declaration

    Objective-C

    - (void)deprovisionIpamByoasn:
                (nonnull AWSEC2DeprovisionIpamByoasnRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2DeprovisionIpamByoasnResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func deprovisionIpamByoasn(_ request: AWSEC2DeprovisionIpamByoasnRequest) async throws -> AWSEC2DeprovisionIpamByoasnResult

    Parameters

    request

    A container for the necessary parameters to execute the DeprovisionIpamByoasn service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a CIDR from a pool that has a source pool, the CIDR is recycled back into the source pool. For more information, see Deprovision pool CIDRs in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DeprovisionIpamPoolCidrRequest

    See

    AWSEC2DeprovisionIpamPoolCidrResult

    Declaration

    Objective-C

    - (id)deprovisionIpamPoolCidr:
        (nonnull AWSEC2DeprovisionIpamPoolCidrRequest *)request;

    Swift

    func deprovisionIpamPoolCidr(_ request: AWSEC2DeprovisionIpamPoolCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeprovisionIpamPoolCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeprovisionIpamPoolCidrResult.

  • Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a CIDR from a pool that has a source pool, the CIDR is recycled back into the source pool. For more information, see Deprovision pool CIDRs in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DeprovisionIpamPoolCidrRequest

    See

    AWSEC2DeprovisionIpamPoolCidrResult

    Declaration

    Objective-C

    - (void)
        deprovisionIpamPoolCidr:
            (nonnull AWSEC2DeprovisionIpamPoolCidrRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DeprovisionIpamPoolCidrResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func deprovisionIpamPoolCidr(_ request: AWSEC2DeprovisionIpamPoolCidrRequest) async throws -> AWSEC2DeprovisionIpamPoolCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the DeprovisionIpamPoolCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deprovision a CIDR from a public IPv4 pool.

    See

    AWSEC2DeprovisionPublicIpv4PoolCidrRequest

    See

    AWSEC2DeprovisionPublicIpv4PoolCidrResult

    Declaration

    Objective-C

    - (id)deprovisionPublicIpv4PoolCidr:
        (nonnull AWSEC2DeprovisionPublicIpv4PoolCidrRequest *)request;

    Swift

    func deprovisionPublicIpv4PoolCidr(_ request: AWSEC2DeprovisionPublicIpv4PoolCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeprovisionPublicIpv4PoolCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeprovisionPublicIpv4PoolCidrResult.

  • Deprovision a CIDR from a public IPv4 pool.

    See

    AWSEC2DeprovisionPublicIpv4PoolCidrRequest

    See

    AWSEC2DeprovisionPublicIpv4PoolCidrResult

    Declaration

    Objective-C

    - (void)
        deprovisionPublicIpv4PoolCidr:
            (nonnull AWSEC2DeprovisionPublicIpv4PoolCidrRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DeprovisionPublicIpv4PoolCidrResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func deprovisionPublicIpv4PoolCidr(_ request: AWSEC2DeprovisionPublicIpv4PoolCidrRequest) async throws -> AWSEC2DeprovisionPublicIpv4PoolCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the DeprovisionPublicIpv4PoolCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deregisters the specified AMI. After you deregister an AMI, it can’t be used to launch new instances.

    If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained in the Recycle Bin for the specified retention period. For more information, see Recycle Bin in the Amazon EC2 User Guide.

    When you deregister an AMI, it doesn’t affect any instances that you’ve already launched from the AMI. You’ll continue to incur usage costs for those instances until you terminate them.

    When you deregister an Amazon EBS-backed AMI, it doesn’t affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn’t affect the files that you uploaded to Amazon S3 when you created the AMI.

    See

    AWSEC2DeregisterImageRequest

    Declaration

    Objective-C

    - (id)deregisterImage:(nonnull AWSEC2DeregisterImageRequest *)request;

    Swift

    func deregisterImage(_ request: AWSEC2DeregisterImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeregisterImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Deregisters the specified AMI. After you deregister an AMI, it can’t be used to launch new instances.

    If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained in the Recycle Bin for the specified retention period. For more information, see Recycle Bin in the Amazon EC2 User Guide.

    When you deregister an AMI, it doesn’t affect any instances that you’ve already launched from the AMI. You’ll continue to incur usage costs for those instances until you terminate them.

    When you deregister an Amazon EBS-backed AMI, it doesn’t affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn’t affect the files that you uploaded to Amazon S3 when you created the AMI.

    See

    AWSEC2DeregisterImageRequest

    Declaration

    Objective-C

    - (void)deregisterImage:(nonnull AWSEC2DeregisterImageRequest *)request
          completionHandler:
              (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func deregisterImage(_ request: AWSEC2DeregisterImageRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DeregisterImage service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region.

    See

    AWSEC2DeregisterInstanceEventNotificationAttributesRequest

    See

    AWSEC2DeregisterInstanceEventNotificationAttributesResult

    Declaration

    Objective-C

    - (id)deregisterInstanceEventNotificationAttributes:
        (nonnull AWSEC2DeregisterInstanceEventNotificationAttributesRequest *)
            request;

    Swift

    func deregisterInstanceEventNotificationAttributes(_ request: AWSEC2DeregisterInstanceEventNotificationAttributesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeregisterInstanceEventNotificationAttributes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeregisterInstanceEventNotificationAttributesResult.

  • Deregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region.

    See

    AWSEC2DeregisterInstanceEventNotificationAttributesRequest

    See

    AWSEC2DeregisterInstanceEventNotificationAttributesResult

    Declaration

    Objective-C

    - (void)
        deregisterInstanceEventNotificationAttributes:
            (nonnull AWSEC2DeregisterInstanceEventNotificationAttributesRequest *)
                request
                                    completionHandler:
                                        (void (^_Nullable)(
                                            AWSEC2DeregisterInstanceEventNotificationAttributesResult
                                                *_Nullable,
                                            NSError *_Nullable))completionHandler;

    Swift

    func deregisterInstanceEventNotificationAttributes(_ request: AWSEC2DeregisterInstanceEventNotificationAttributesRequest) async throws -> AWSEC2DeregisterInstanceEventNotificationAttributesResult

    Parameters

    request

    A container for the necessary parameters to execute the DeregisterInstanceEventNotificationAttributes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deregisters the specified members (network interfaces) from the transit gateway multicast group.

    See

    AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest

    See

    AWSEC2DeregisterTransitGatewayMulticastGroupMembersResult

    Declaration

    Objective-C

    - (id)deregisterTransitGatewayMulticastGroupMembers:
        (nonnull AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest *)
            request;

    Swift

    func deregisterTransitGatewayMulticastGroupMembers(_ request: AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeregisterTransitGatewayMulticastGroupMembers service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeregisterTransitGatewayMulticastGroupMembersResult.

  • Deregisters the specified members (network interfaces) from the transit gateway multicast group.

    See

    AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest

    See

    AWSEC2DeregisterTransitGatewayMulticastGroupMembersResult

    Declaration

    Objective-C

    - (void)
        deregisterTransitGatewayMulticastGroupMembers:
            (nonnull AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest *)
                request
                                    completionHandler:
                                        (void (^_Nullable)(
                                            AWSEC2DeregisterTransitGatewayMulticastGroupMembersResult
                                                *_Nullable,
                                            NSError *_Nullable))completionHandler;

    Swift

    func deregisterTransitGatewayMulticastGroupMembers(_ request: AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest) async throws -> AWSEC2DeregisterTransitGatewayMulticastGroupMembersResult

    Parameters

    request

    A container for the necessary parameters to execute the DeregisterTransitGatewayMulticastGroupMembers service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Deregisters the specified sources (network interfaces) from the transit gateway multicast group.

    See

    AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest

    See

    AWSEC2DeregisterTransitGatewayMulticastGroupSourcesResult

    Declaration

    Objective-C

    - (id)deregisterTransitGatewayMulticastGroupSources:
        (nonnull AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest *)
            request;

    Swift

    func deregisterTransitGatewayMulticastGroupSources(_ request: AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DeregisterTransitGatewayMulticastGroupSources service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DeregisterTransitGatewayMulticastGroupSourcesResult.

  • Deregisters the specified sources (network interfaces) from the transit gateway multicast group.

    See

    AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest

    See

    AWSEC2DeregisterTransitGatewayMulticastGroupSourcesResult

    Declaration

    Objective-C

    - (void)
        deregisterTransitGatewayMulticastGroupSources:
            (nonnull AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest *)
                request
                                    completionHandler:
                                        (void (^_Nullable)(
                                            AWSEC2DeregisterTransitGatewayMulticastGroupSourcesResult
                                                *_Nullable,
                                            NSError *_Nullable))completionHandler;

    Swift

    func deregisterTransitGatewayMulticastGroupSources(_ request: AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest) async throws -> AWSEC2DeregisterTransitGatewayMulticastGroupSourcesResult

    Parameters

    request

    A container for the necessary parameters to execute the DeregisterTransitGatewayMulticastGroupSources service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes attributes of your Amazon Web Services account. The following are the supported account attributes:

    • default-vpc: The ID of the default VPC for your account, or none.

    • max-instances: This attribute is no longer supported. The returned value does not reflect your actual vCPU limit for running On-Demand Instances. For more information, see On-Demand Instance Limits in the Amazon Elastic Compute Cloud User Guide.

    • max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate.

    • supported-platforms: This attribute is deprecated.

    • vpc-max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate.

    • vpc-max-security-groups-per-interface: The maximum number of security groups that you can assign to a network interface.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeAccountAttributesRequest

    See

    AWSEC2DescribeAccountAttributesResult

    Declaration

    Objective-C

    - (id)describeAccountAttributes:
        (nonnull AWSEC2DescribeAccountAttributesRequest *)request;

    Swift

    func describeAccountAttributes(_ request: AWSEC2DescribeAccountAttributesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAccountAttributes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeAccountAttributesResult.

  • Describes attributes of your Amazon Web Services account. The following are the supported account attributes:

    • default-vpc: The ID of the default VPC for your account, or none.

    • max-instances: This attribute is no longer supported. The returned value does not reflect your actual vCPU limit for running On-Demand Instances. For more information, see On-Demand Instance Limits in the Amazon Elastic Compute Cloud User Guide.

    • max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate.

    • supported-platforms: This attribute is deprecated.

    • vpc-max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate.

    • vpc-max-security-groups-per-interface: The maximum number of security groups that you can assign to a network interface.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeAccountAttributesRequest

    See

    AWSEC2DescribeAccountAttributesResult

    Declaration

    Objective-C

    - (void)describeAccountAttributes:
                (nonnull AWSEC2DescribeAccountAttributesRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribeAccountAttributesResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describeAccountAttributes(_ request: AWSEC2DescribeAccountAttributesRequest) async throws -> AWSEC2DescribeAccountAttributesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAccountAttributes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes an Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon VPC User Guide.

    When you transfer an Elastic IP address, there is a two-step handshake between the source and transfer Amazon Web Services accounts. When the source account starts the transfer, the transfer account has seven days to accept the Elastic IP address transfer. During those seven days, the source account can view the pending transfer by using this action. After seven days, the transfer expires and ownership of the Elastic IP address returns to the source account. Accepted transfers are visible to the source account for three days after the transfers have been accepted.

    See

    AWSEC2DescribeAddressTransfersRequest

    See

    AWSEC2DescribeAddressTransfersResult

    Declaration

    Objective-C

    - (id)describeAddressTransfers:
        (nonnull AWSEC2DescribeAddressTransfersRequest *)request;

    Swift

    func describeAddressTransfers(_ request: AWSEC2DescribeAddressTransfersRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAddressTransfers service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeAddressTransfersResult.

  • Describes an Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon VPC User Guide.

    When you transfer an Elastic IP address, there is a two-step handshake between the source and transfer Amazon Web Services accounts. When the source account starts the transfer, the transfer account has seven days to accept the Elastic IP address transfer. During those seven days, the source account can view the pending transfer by using this action. After seven days, the transfer expires and ownership of the Elastic IP address returns to the source account. Accepted transfers are visible to the source account for three days after the transfers have been accepted.

    See

    AWSEC2DescribeAddressTransfersRequest

    See

    AWSEC2DescribeAddressTransfersResult

    Declaration

    Objective-C

    - (void)describeAddressTransfers:
                (nonnull AWSEC2DescribeAddressTransfersRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DescribeAddressTransfersResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func describeAddressTransfers(_ request: AWSEC2DescribeAddressTransfersRequest) async throws -> AWSEC2DescribeAddressTransfersResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAddressTransfers service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

    See

    AWSEC2DescribeAddressesRequest

    See

    AWSEC2DescribeAddressesResult

    Declaration

    Objective-C

    - (id)describeAddresses:(nonnull AWSEC2DescribeAddressesRequest *)request;

    Swift

    func describeAddresses(_ request: AWSEC2DescribeAddressesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAddresses service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeAddressesResult.

  • Describes the specified Elastic IP addresses or all of your Elastic IP addresses.

    See

    AWSEC2DescribeAddressesRequest

    See

    AWSEC2DescribeAddressesResult

    Declaration

    Objective-C

    - (void)describeAddresses:(nonnull AWSEC2DescribeAddressesRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2DescribeAddressesResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeAddresses(_ request: AWSEC2DescribeAddressesRequest) async throws -> AWSEC2DescribeAddressesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAddresses service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the attributes of the specified Elastic IP addresses. For requirements, see Using reverse DNS for email applications.

    See

    AWSEC2DescribeAddressesAttributeRequest

    See

    AWSEC2DescribeAddressesAttributeResult

    Declaration

    Objective-C

    - (id)describeAddressesAttribute:
        (nonnull AWSEC2DescribeAddressesAttributeRequest *)request;

    Swift

    func describeAddressesAttribute(_ request: AWSEC2DescribeAddressesAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAddressesAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeAddressesAttributeResult.

  • Describes the attributes of the specified Elastic IP addresses. For requirements, see Using reverse DNS for email applications.

    See

    AWSEC2DescribeAddressesAttributeRequest

    See

    AWSEC2DescribeAddressesAttributeResult

    Declaration

    Objective-C

    - (void)describeAddressesAttribute:
                (nonnull AWSEC2DescribeAddressesAttributeRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeAddressesAttributeResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeAddressesAttribute(_ request: AWSEC2DescribeAddressesAttributeRequest) async throws -> AWSEC2DescribeAddressesAttributeResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAddressesAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the longer ID format settings for all resource types in a specific Region. This request is useful for performing a quick audit to determine whether a specific Region is fully opted in for longer IDs (17-character IDs).

    This request only returns information about resource types that support longer IDs.

    The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    See

    AWSEC2DescribeAggregateIdFormatRequest

    See

    AWSEC2DescribeAggregateIdFormatResult

    Declaration

    Objective-C

    - (id)describeAggregateIdFormat:
        (nonnull AWSEC2DescribeAggregateIdFormatRequest *)request;

    Swift

    func describeAggregateIdFormat(_ request: AWSEC2DescribeAggregateIdFormatRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAggregateIdFormat service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeAggregateIdFormatResult.

  • Describes the longer ID format settings for all resource types in a specific Region. This request is useful for performing a quick audit to determine whether a specific Region is fully opted in for longer IDs (17-character IDs).

    This request only returns information about resource types that support longer IDs.

    The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    See

    AWSEC2DescribeAggregateIdFormatRequest

    See

    AWSEC2DescribeAggregateIdFormatResult

    Declaration

    Objective-C

    - (void)describeAggregateIdFormat:
                (nonnull AWSEC2DescribeAggregateIdFormatRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribeAggregateIdFormatResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describeAggregateIdFormat(_ request: AWSEC2DescribeAggregateIdFormatRequest) async throws -> AWSEC2DescribeAggregateIdFormatResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAggregateIdFormat service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to you. If there is an event impacting a zone, you can use this request to view the state and any provided messages for that zone.

    For more information about Availability Zones, Local Zones, and Wavelength Zones, see Regions and zones in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeAvailabilityZonesRequest

    See

    AWSEC2DescribeAvailabilityZonesResult

    Declaration

    Objective-C

    - (id)describeAvailabilityZones:
        (nonnull AWSEC2DescribeAvailabilityZonesRequest *)request;

    Swift

    func describeAvailabilityZones(_ request: AWSEC2DescribeAvailabilityZonesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAvailabilityZones service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeAvailabilityZonesResult.

  • Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to you. If there is an event impacting a zone, you can use this request to view the state and any provided messages for that zone.

    For more information about Availability Zones, Local Zones, and Wavelength Zones, see Regions and zones in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeAvailabilityZonesRequest

    See

    AWSEC2DescribeAvailabilityZonesResult

    Declaration

    Objective-C

    - (void)describeAvailabilityZones:
                (nonnull AWSEC2DescribeAvailabilityZonesRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribeAvailabilityZonesResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describeAvailabilityZones(_ request: AWSEC2DescribeAvailabilityZonesRequest) async throws -> AWSEC2DescribeAvailabilityZonesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAvailabilityZones service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the current Infrastructure Performance metric subscriptions.

    See

    AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsRequest

    See

    AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsResult

    Declaration

    Objective-C

    - (id)describeAwsNetworkPerformanceMetricSubscriptions:
        (nonnull AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsRequest *)
            request;

    Swift

    func describeAwsNetworkPerformanceMetricSubscriptions(_ request: AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAwsNetworkPerformanceMetricSubscriptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsResult.

  • Describes the current Infrastructure Performance metric subscriptions.

    See

    AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsRequest

    See

    AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsResult

    Declaration

    Objective-C

    - (void)
        describeAwsNetworkPerformanceMetricSubscriptions:
            (nonnull AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsRequest
                 *)request
                                       completionHandler:
                                           (void (^_Nullable)(
                                               AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsResult
                                                   *_Nullable,
                                               NSError *_Nullable))
                                               completionHandler;

    Swift

    func describeAwsNetworkPerformanceMetricSubscriptions(_ request: AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsRequest) async throws -> AWSEC2DescribeAwsNetworkPerformanceMetricSubscriptionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeAwsNetworkPerformanceMetricSubscriptions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified bundle tasks or all of your bundle tasks.

    Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeBundleTasksRequest

    See

    AWSEC2DescribeBundleTasksResult

    Declaration

    Objective-C

    - (id)describeBundleTasks:(nonnull AWSEC2DescribeBundleTasksRequest *)request;

    Swift

    func describeBundleTasks(_ request: AWSEC2DescribeBundleTasksRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeBundleTasks service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeBundleTasksResult.

  • Describes the specified bundle tasks or all of your bundle tasks.

    Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use RegisterImage with the Amazon S3 bucket name and image manifest name you provided to the bundle task.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeBundleTasksRequest

    See

    AWSEC2DescribeBundleTasksResult

    Declaration

    Objective-C

    - (void)describeBundleTasks:(nonnull AWSEC2DescribeBundleTasksRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeBundleTasksResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeBundleTasks(_ request: AWSEC2DescribeBundleTasksRequest) async throws -> AWSEC2DescribeBundleTasksResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeBundleTasks service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

    To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.

    See

    AWSEC2DescribeByoipCidrsRequest

    See

    AWSEC2DescribeByoipCidrsResult

    Declaration

    Objective-C

    - (id)describeByoipCidrs:(nonnull AWSEC2DescribeByoipCidrsRequest *)request;

    Swift

    func describeByoipCidrs(_ request: AWSEC2DescribeByoipCidrsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeByoipCidrs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeByoipCidrsResult.

  • Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.

    To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.

    See

    AWSEC2DescribeByoipCidrsRequest

    See

    AWSEC2DescribeByoipCidrsResult

    Declaration

    Objective-C

    - (void)describeByoipCidrs:(nonnull AWSEC2DescribeByoipCidrsRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DescribeByoipCidrsResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeByoipCidrs(_ request: AWSEC2DescribeByoipCidrsRequest) async throws -> AWSEC2DescribeByoipCidrsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeByoipCidrs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you’re currently using. With Capacity Blocks, you purchase a specific instance type for a period of time.

    See

    AWSEC2DescribeCapacityBlockOfferingsRequest

    See

    AWSEC2DescribeCapacityBlockOfferingsResult

    Declaration

    Objective-C

    - (id)describeCapacityBlockOfferings:
        (nonnull AWSEC2DescribeCapacityBlockOfferingsRequest *)request;

    Swift

    func describeCapacityBlockOfferings(_ request: AWSEC2DescribeCapacityBlockOfferingsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCapacityBlockOfferings service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeCapacityBlockOfferingsResult.

  • Describes Capacity Block offerings available for purchase in the Amazon Web Services Region that you’re currently using. With Capacity Blocks, you purchase a specific instance type for a period of time.

    See

    AWSEC2DescribeCapacityBlockOfferingsRequest

    See

    AWSEC2DescribeCapacityBlockOfferingsResult

    Declaration

    Objective-C

    - (void)
        describeCapacityBlockOfferings:
            (nonnull AWSEC2DescribeCapacityBlockOfferingsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeCapacityBlockOfferingsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeCapacityBlockOfferings(_ request: AWSEC2DescribeCapacityBlockOfferingsRequest) async throws -> AWSEC2DescribeCapacityBlockOfferingsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCapacityBlockOfferings service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more Capacity Reservation Fleets.

    See

    AWSEC2DescribeCapacityReservationFleetsRequest

    See

    AWSEC2DescribeCapacityReservationFleetsResult

    Declaration

    Objective-C

    - (id)describeCapacityReservationFleets:
        (nonnull AWSEC2DescribeCapacityReservationFleetsRequest *)request;

    Swift

    func describeCapacityReservationFleets(_ request: AWSEC2DescribeCapacityReservationFleetsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCapacityReservationFleets service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeCapacityReservationFleetsResult.

  • Describes one or more Capacity Reservation Fleets.

    See

    AWSEC2DescribeCapacityReservationFleetsRequest

    See

    AWSEC2DescribeCapacityReservationFleetsResult

    Declaration

    Objective-C

    - (void)describeCapacityReservationFleets:
                (nonnull AWSEC2DescribeCapacityReservationFleetsRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DescribeCapacityReservationFleetsResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeCapacityReservationFleets(_ request: AWSEC2DescribeCapacityReservationFleetsRequest) async throws -> AWSEC2DescribeCapacityReservationFleetsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCapacityReservationFleets service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the Amazon Web Services Region that you’re currently using.

    See

    AWSEC2DescribeCapacityReservationsRequest

    See

    AWSEC2DescribeCapacityReservationsResult

    Declaration

    Objective-C

    - (id)describeCapacityReservations:
        (nonnull AWSEC2DescribeCapacityReservationsRequest *)request;

    Swift

    func describeCapacityReservations(_ request: AWSEC2DescribeCapacityReservationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCapacityReservations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeCapacityReservationsResult.

  • Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the Amazon Web Services Region that you’re currently using.

    See

    AWSEC2DescribeCapacityReservationsRequest

    See

    AWSEC2DescribeCapacityReservationsResult

    Declaration

    Objective-C

    - (void)describeCapacityReservations:
                (nonnull AWSEC2DescribeCapacityReservationsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeCapacityReservationsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeCapacityReservations(_ request: AWSEC2DescribeCapacityReservationsRequest) async throws -> AWSEC2DescribeCapacityReservationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCapacityReservations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more of your carrier gateways.

    See

    AWSEC2DescribeCarrierGatewaysRequest

    See

    AWSEC2DescribeCarrierGatewaysResult

    Declaration

    Objective-C

    - (id)describeCarrierGateways:
        (nonnull AWSEC2DescribeCarrierGatewaysRequest *)request;

    Swift

    func describeCarrierGateways(_ request: AWSEC2DescribeCarrierGatewaysRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCarrierGateways service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeCarrierGatewaysResult.

  • Describes one or more of your carrier gateways.

    See

    AWSEC2DescribeCarrierGatewaysRequest

    See

    AWSEC2DescribeCarrierGatewaysResult

    Declaration

    Objective-C

    - (void)
        describeCarrierGateways:
            (nonnull AWSEC2DescribeCarrierGatewaysRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeCarrierGatewaysResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeCarrierGateways(_ request: AWSEC2DescribeCarrierGatewaysRequest) async throws -> AWSEC2DescribeCarrierGatewaysResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCarrierGateways service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Describes your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances.

    See

    AWSEC2DescribeClassicLinkInstancesRequest

    See

    AWSEC2DescribeClassicLinkInstancesResult

    Declaration

    Objective-C

    - (id)describeClassicLinkInstances:
        (nonnull AWSEC2DescribeClassicLinkInstancesRequest *)request;

    Swift

    func describeClassicLinkInstances(_ request: AWSEC2DescribeClassicLinkInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClassicLinkInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeClassicLinkInstancesResult.

  • This action is deprecated.

    Describes your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances.

    See

    AWSEC2DescribeClassicLinkInstancesRequest

    See

    AWSEC2DescribeClassicLinkInstancesResult

    Declaration

    Objective-C

    - (void)describeClassicLinkInstances:
                (nonnull AWSEC2DescribeClassicLinkInstancesRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeClassicLinkInstancesResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeClassicLinkInstances(_ request: AWSEC2DescribeClassicLinkInstancesRequest) async throws -> AWSEC2DescribeClassicLinkInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClassicLinkInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the authorization rules for a specified Client VPN endpoint.

    See

    AWSEC2DescribeClientVpnAuthorizationRulesRequest

    See

    AWSEC2DescribeClientVpnAuthorizationRulesResult

    Declaration

    Objective-C

    - (id)describeClientVpnAuthorizationRules:
        (nonnull AWSEC2DescribeClientVpnAuthorizationRulesRequest *)request;

    Swift

    func describeClientVpnAuthorizationRules(_ request: AWSEC2DescribeClientVpnAuthorizationRulesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClientVpnAuthorizationRules service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeClientVpnAuthorizationRulesResult.

  • Describes the authorization rules for a specified Client VPN endpoint.

    See

    AWSEC2DescribeClientVpnAuthorizationRulesRequest

    See

    AWSEC2DescribeClientVpnAuthorizationRulesResult

    Declaration

    Objective-C

    - (void)
        describeClientVpnAuthorizationRules:
            (nonnull AWSEC2DescribeClientVpnAuthorizationRulesRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeClientVpnAuthorizationRulesResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeClientVpnAuthorizationRules(_ request: AWSEC2DescribeClientVpnAuthorizationRulesRequest) async throws -> AWSEC2DescribeClientVpnAuthorizationRulesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClientVpnAuthorizationRules service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint.

    See

    AWSEC2DescribeClientVpnConnectionsRequest

    See

    AWSEC2DescribeClientVpnConnectionsResult

    Declaration

    Objective-C

    - (id)describeClientVpnConnections:
        (nonnull AWSEC2DescribeClientVpnConnectionsRequest *)request;

    Swift

    func describeClientVpnConnections(_ request: AWSEC2DescribeClientVpnConnectionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClientVpnConnections service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeClientVpnConnectionsResult.

  • Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint.

    See

    AWSEC2DescribeClientVpnConnectionsRequest

    See

    AWSEC2DescribeClientVpnConnectionsResult

    Declaration

    Objective-C

    - (void)describeClientVpnConnections:
                (nonnull AWSEC2DescribeClientVpnConnectionsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeClientVpnConnectionsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeClientVpnConnections(_ request: AWSEC2DescribeClientVpnConnectionsRequest) async throws -> AWSEC2DescribeClientVpnConnectionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClientVpnConnections service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more Client VPN endpoints in the account.

    See

    AWSEC2DescribeClientVpnEndpointsRequest

    See

    AWSEC2DescribeClientVpnEndpointsResult

    Declaration

    Objective-C

    - (id)describeClientVpnEndpoints:
        (nonnull AWSEC2DescribeClientVpnEndpointsRequest *)request;

    Swift

    func describeClientVpnEndpoints(_ request: AWSEC2DescribeClientVpnEndpointsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClientVpnEndpoints service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeClientVpnEndpointsResult.

  • Describes one or more Client VPN endpoints in the account.

    See

    AWSEC2DescribeClientVpnEndpointsRequest

    See

    AWSEC2DescribeClientVpnEndpointsResult

    Declaration

    Objective-C

    - (void)describeClientVpnEndpoints:
                (nonnull AWSEC2DescribeClientVpnEndpointsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeClientVpnEndpointsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeClientVpnEndpoints(_ request: AWSEC2DescribeClientVpnEndpointsRequest) async throws -> AWSEC2DescribeClientVpnEndpointsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClientVpnEndpoints service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the routes for the specified Client VPN endpoint.

    See

    AWSEC2DescribeClientVpnRoutesRequest

    See

    AWSEC2DescribeClientVpnRoutesResult

    Declaration

    Objective-C

    - (id)describeClientVpnRoutes:
        (nonnull AWSEC2DescribeClientVpnRoutesRequest *)request;

    Swift

    func describeClientVpnRoutes(_ request: AWSEC2DescribeClientVpnRoutesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClientVpnRoutes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeClientVpnRoutesResult.

  • Describes the routes for the specified Client VPN endpoint.

    See

    AWSEC2DescribeClientVpnRoutesRequest

    See

    AWSEC2DescribeClientVpnRoutesResult

    Declaration

    Objective-C

    - (void)
        describeClientVpnRoutes:
            (nonnull AWSEC2DescribeClientVpnRoutesRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeClientVpnRoutesResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeClientVpnRoutes(_ request: AWSEC2DescribeClientVpnRoutesRequest) async throws -> AWSEC2DescribeClientVpnRoutesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClientVpnRoutes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the target networks associated with the specified Client VPN endpoint.

    See

    AWSEC2DescribeClientVpnTargetNetworksRequest

    See

    AWSEC2DescribeClientVpnTargetNetworksResult

    Declaration

    Objective-C

    - (id)describeClientVpnTargetNetworks:
        (nonnull AWSEC2DescribeClientVpnTargetNetworksRequest *)request;

    Swift

    func describeClientVpnTargetNetworks(_ request: AWSEC2DescribeClientVpnTargetNetworksRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClientVpnTargetNetworks service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeClientVpnTargetNetworksResult.

  • Describes the target networks associated with the specified Client VPN endpoint.

    See

    AWSEC2DescribeClientVpnTargetNetworksRequest

    See

    AWSEC2DescribeClientVpnTargetNetworksResult

    Declaration

    Objective-C

    - (void)describeClientVpnTargetNetworks:
                (nonnull AWSEC2DescribeClientVpnTargetNetworksRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeClientVpnTargetNetworksResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeClientVpnTargetNetworks(_ request: AWSEC2DescribeClientVpnTargetNetworksRequest) async throws -> AWSEC2DescribeClientVpnTargetNetworksResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeClientVpnTargetNetworks service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified customer-owned address pools or all of your customer-owned address pools.

    See

    AWSEC2DescribeCoipPoolsRequest

    See

    AWSEC2DescribeCoipPoolsResult

    Declaration

    Objective-C

    - (id)describeCoipPools:(nonnull AWSEC2DescribeCoipPoolsRequest *)request;

    Swift

    func describeCoipPools(_ request: AWSEC2DescribeCoipPoolsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCoipPools service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeCoipPoolsResult.

  • Describes the specified customer-owned address pools or all of your customer-owned address pools.

    See

    AWSEC2DescribeCoipPoolsRequest

    See

    AWSEC2DescribeCoipPoolsResult

    Declaration

    Objective-C

    - (void)describeCoipPools:(nonnull AWSEC2DescribeCoipPoolsRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2DescribeCoipPoolsResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeCoipPools(_ request: AWSEC2DescribeCoipPoolsRequest) async throws -> AWSEC2DescribeCoipPoolsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCoipPools service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified conversion tasks or all your conversion tasks. For more information, see the VM Import/Export User Guide.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    See

    AWSEC2DescribeConversionTasksRequest

    See

    AWSEC2DescribeConversionTasksResult

    Declaration

    Objective-C

    - (id)describeConversionTasks:
        (nonnull AWSEC2DescribeConversionTasksRequest *)request;

    Swift

    func describeConversionTasks(_ request: AWSEC2DescribeConversionTasksRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeConversionTasks service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeConversionTasksResult.

  • Describes the specified conversion tasks or all your conversion tasks. For more information, see the VM Import/Export User Guide.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    See

    AWSEC2DescribeConversionTasksRequest

    See

    AWSEC2DescribeConversionTasksResult

    Declaration

    Objective-C

    - (void)
        describeConversionTasks:
            (nonnull AWSEC2DescribeConversionTasksRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeConversionTasksResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeConversionTasks(_ request: AWSEC2DescribeConversionTasksRequest) async throws -> AWSEC2DescribeConversionTasksResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeConversionTasks service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more of your VPN customer gateways.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2DescribeCustomerGatewaysRequest

    See

    AWSEC2DescribeCustomerGatewaysResult

    Declaration

    Objective-C

    - (id)describeCustomerGateways:
        (nonnull AWSEC2DescribeCustomerGatewaysRequest *)request;

    Swift

    func describeCustomerGateways(_ request: AWSEC2DescribeCustomerGatewaysRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCustomerGateways service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeCustomerGatewaysResult.

  • Describes one or more of your VPN customer gateways.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2DescribeCustomerGatewaysRequest

    See

    AWSEC2DescribeCustomerGatewaysResult

    Declaration

    Objective-C

    - (void)describeCustomerGateways:
                (nonnull AWSEC2DescribeCustomerGatewaysRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DescribeCustomerGatewaysResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func describeCustomerGateways(_ request: AWSEC2DescribeCustomerGatewaysRequest) async throws -> AWSEC2DescribeCustomerGatewaysResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeCustomerGateways service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your DHCP option sets. The default is to describe all your DHCP option sets. Alternatively, you can specify specific DHCP option set IDs or filter the results to include only the DHCP option sets that match specific criteria.

    For more information, see DHCP option sets in the Amazon VPC User Guide.

    See

    AWSEC2DescribeDhcpOptionsRequest

    See

    AWSEC2DescribeDhcpOptionsResult

    Declaration

    Objective-C

    - (id)describeDhcpOptions:(nonnull AWSEC2DescribeDhcpOptionsRequest *)request;

    Swift

    func describeDhcpOptions(_ request: AWSEC2DescribeDhcpOptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeDhcpOptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeDhcpOptionsResult.

  • Describes your DHCP option sets. The default is to describe all your DHCP option sets. Alternatively, you can specify specific DHCP option set IDs or filter the results to include only the DHCP option sets that match specific criteria.

    For more information, see DHCP option sets in the Amazon VPC User Guide.

    See

    AWSEC2DescribeDhcpOptionsRequest

    See

    AWSEC2DescribeDhcpOptionsResult

    Declaration

    Objective-C

    - (void)describeDhcpOptions:(nonnull AWSEC2DescribeDhcpOptionsRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeDhcpOptionsResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeDhcpOptions(_ request: AWSEC2DescribeDhcpOptionsRequest) async throws -> AWSEC2DescribeDhcpOptionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeDhcpOptions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your egress-only internet gateways. The default is to describe all your egress-only internet gateways. Alternatively, you can specify specific egress-only internet gateway IDs or filter the results to include only the egress-only internet gateways that match specific criteria.

    See

    AWSEC2DescribeEgressOnlyInternetGatewaysRequest

    See

    AWSEC2DescribeEgressOnlyInternetGatewaysResult

    Declaration

    Objective-C

    - (id)describeEgressOnlyInternetGateways:
        (nonnull AWSEC2DescribeEgressOnlyInternetGatewaysRequest *)request;

    Swift

    func describeEgressOnlyInternetGateways(_ request: AWSEC2DescribeEgressOnlyInternetGatewaysRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeEgressOnlyInternetGateways service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeEgressOnlyInternetGatewaysResult.

  • Describes your egress-only internet gateways. The default is to describe all your egress-only internet gateways. Alternatively, you can specify specific egress-only internet gateway IDs or filter the results to include only the egress-only internet gateways that match specific criteria.

    See

    AWSEC2DescribeEgressOnlyInternetGatewaysRequest

    See

    AWSEC2DescribeEgressOnlyInternetGatewaysResult

    Declaration

    Objective-C

    - (void)describeEgressOnlyInternetGateways:
                (nonnull AWSEC2DescribeEgressOnlyInternetGatewaysRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2DescribeEgressOnlyInternetGatewaysResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeEgressOnlyInternetGateways(_ request: AWSEC2DescribeEgressOnlyInternetGatewaysRequest) async throws -> AWSEC2DescribeEgressOnlyInternetGatewaysResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeEgressOnlyInternetGateways service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4, G5, or G6 instances.

    Describes the Elastic Graphics accelerator associated with your instances.

    See

    AWSEC2DescribeElasticGpusRequest

    See

    AWSEC2DescribeElasticGpusResult

    Declaration

    Objective-C

    - (id)describeElasticGpus:(nonnull AWSEC2DescribeElasticGpusRequest *)request;

    Swift

    func describeElasticGpus(_ request: AWSEC2DescribeElasticGpusRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeElasticGpus service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeElasticGpusResult.

  • Amazon Elastic Graphics reached end of life on January 8, 2024. For workloads that require graphics acceleration, we recommend that you use Amazon EC2 G4, G5, or G6 instances.

    Describes the Elastic Graphics accelerator associated with your instances.

    See

    AWSEC2DescribeElasticGpusRequest

    See

    AWSEC2DescribeElasticGpusResult

    Declaration

    Objective-C

    - (void)describeElasticGpus:(nonnull AWSEC2DescribeElasticGpusRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeElasticGpusResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeElasticGpus(_ request: AWSEC2DescribeElasticGpusRequest) async throws -> AWSEC2DescribeElasticGpusResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeElasticGpus service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified export image tasks or all of your export image tasks.

    See

    AWSEC2DescribeExportImageTasksRequest

    See

    AWSEC2DescribeExportImageTasksResult

    Declaration

    Objective-C

    - (id)describeExportImageTasks:
        (nonnull AWSEC2DescribeExportImageTasksRequest *)request;

    Swift

    func describeExportImageTasks(_ request: AWSEC2DescribeExportImageTasksRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeExportImageTasks service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeExportImageTasksResult.

  • Describes the specified export image tasks or all of your export image tasks.

    See

    AWSEC2DescribeExportImageTasksRequest

    See

    AWSEC2DescribeExportImageTasksResult

    Declaration

    Objective-C

    - (void)describeExportImageTasks:
                (nonnull AWSEC2DescribeExportImageTasksRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DescribeExportImageTasksResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func describeExportImageTasks(_ request: AWSEC2DescribeExportImageTasksRequest) async throws -> AWSEC2DescribeExportImageTasksResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeExportImageTasks service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified export instance tasks or all of your export instance tasks.

    See

    AWSEC2DescribeExportTasksRequest

    See

    AWSEC2DescribeExportTasksResult

    Declaration

    Objective-C

    - (id)describeExportTasks:(nonnull AWSEC2DescribeExportTasksRequest *)request;

    Swift

    func describeExportTasks(_ request: AWSEC2DescribeExportTasksRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeExportTasks service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeExportTasksResult.

  • Describes the specified export instance tasks or all of your export instance tasks.

    See

    AWSEC2DescribeExportTasksRequest

    See

    AWSEC2DescribeExportTasksResult

    Declaration

    Objective-C

    - (void)describeExportTasks:(nonnull AWSEC2DescribeExportTasksRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeExportTasksResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeExportTasks(_ request: AWSEC2DescribeExportTasksRequest) async throws -> AWSEC2DescribeExportTasksResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeExportTasks service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describe details for Windows AMIs that are configured for Windows fast launch.

    See

    AWSEC2DescribeFastLaunchImagesRequest

    See

    AWSEC2DescribeFastLaunchImagesResult

    Declaration

    Objective-C

    - (id)describeFastLaunchImages:
        (nonnull AWSEC2DescribeFastLaunchImagesRequest *)request;

    Swift

    func describeFastLaunchImages(_ request: AWSEC2DescribeFastLaunchImagesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFastLaunchImages service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeFastLaunchImagesResult.

  • Describe details for Windows AMIs that are configured for Windows fast launch.

    See

    AWSEC2DescribeFastLaunchImagesRequest

    See

    AWSEC2DescribeFastLaunchImagesResult

    Declaration

    Objective-C

    - (void)describeFastLaunchImages:
                (nonnull AWSEC2DescribeFastLaunchImagesRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DescribeFastLaunchImagesResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func describeFastLaunchImages(_ request: AWSEC2DescribeFastLaunchImagesRequest) async throws -> AWSEC2DescribeFastLaunchImagesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFastLaunchImages service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the state of fast snapshot restores for your snapshots.

    See

    AWSEC2DescribeFastSnapshotRestoresRequest

    See

    AWSEC2DescribeFastSnapshotRestoresResult

    Declaration

    Objective-C

    - (id)describeFastSnapshotRestores:
        (nonnull AWSEC2DescribeFastSnapshotRestoresRequest *)request;

    Swift

    func describeFastSnapshotRestores(_ request: AWSEC2DescribeFastSnapshotRestoresRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFastSnapshotRestores service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeFastSnapshotRestoresResult.

  • Describes the state of fast snapshot restores for your snapshots.

    See

    AWSEC2DescribeFastSnapshotRestoresRequest

    See

    AWSEC2DescribeFastSnapshotRestoresResult

    Declaration

    Objective-C

    - (void)describeFastSnapshotRestores:
                (nonnull AWSEC2DescribeFastSnapshotRestoresRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeFastSnapshotRestoresResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeFastSnapshotRestores(_ request: AWSEC2DescribeFastSnapshotRestoresRequest) async throws -> AWSEC2DescribeFastSnapshotRestoresResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFastSnapshotRestores service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the events for the specified EC2 Fleet during the specified time.

    EC2 Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. EC2 Fleet events are available for 48 hours.

    For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeFleetHistoryRequest

    See

    AWSEC2DescribeFleetHistoryResult

    Declaration

    Objective-C

    - (id)describeFleetHistory:(nonnull AWSEC2DescribeFleetHistoryRequest *)request;

    Swift

    func describeFleetHistory(_ request: AWSEC2DescribeFleetHistoryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFleetHistory service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeFleetHistoryResult.

  • Describes the events for the specified EC2 Fleet during the specified time.

    EC2 Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. EC2 Fleet events are available for 48 hours.

    For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeFleetHistoryRequest

    See

    AWSEC2DescribeFleetHistoryResult

    Declaration

    Objective-C

    - (void)describeFleetHistory:
                (nonnull AWSEC2DescribeFleetHistoryRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DescribeFleetHistoryResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func describeFleetHistory(_ request: AWSEC2DescribeFleetHistoryRequest) async throws -> AWSEC2DescribeFleetHistoryResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFleetHistory service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the running instances for the specified EC2 Fleet.

    Currently, DescribeFleetInstances does not support fleets of type instant. Instead, use DescribeFleets, specifying the instant fleet ID in the request.

    For more information, see Describe your EC2 Fleet in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeFleetInstancesRequest

    See

    AWSEC2DescribeFleetInstancesResult

    Declaration

    Objective-C

    - (id)describeFleetInstances:
        (nonnull AWSEC2DescribeFleetInstancesRequest *)request;

    Swift

    func describeFleetInstances(_ request: AWSEC2DescribeFleetInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFleetInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeFleetInstancesResult.

  • Describes the running instances for the specified EC2 Fleet.

    Currently, DescribeFleetInstances does not support fleets of type instant. Instead, use DescribeFleets, specifying the instant fleet ID in the request.

    For more information, see Describe your EC2 Fleet in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeFleetInstancesRequest

    See

    AWSEC2DescribeFleetInstancesResult

    Declaration

    Objective-C

    - (void)
        describeFleetInstances:
            (nonnull AWSEC2DescribeFleetInstancesRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DescribeFleetInstancesResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeFleetInstances(_ request: AWSEC2DescribeFleetInstancesRequest) async throws -> AWSEC2DescribeFleetInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFleetInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified EC2 Fleet or all of your EC2 Fleets.

    If a fleet is of type instant, you must specify the fleet ID in the request, otherwise the fleet does not appear in the response.

    For more information, see Describe your EC2 Fleet in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeFleetsRequest

    See

    AWSEC2DescribeFleetsResult

    Declaration

    Objective-C

    - (id)describeFleets:(nonnull AWSEC2DescribeFleetsRequest *)request;

    Swift

    func describeFleets(_ request: AWSEC2DescribeFleetsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFleets service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeFleetsResult.

  • Describes the specified EC2 Fleet or all of your EC2 Fleets.

    If a fleet is of type instant, you must specify the fleet ID in the request, otherwise the fleet does not appear in the response.

    For more information, see Describe your EC2 Fleet in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeFleetsRequest

    See

    AWSEC2DescribeFleetsResult

    Declaration

    Objective-C

    - (void)describeFleets:(nonnull AWSEC2DescribeFleetsRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2DescribeFleetsResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func describeFleets(_ request: AWSEC2DescribeFleetsRequest) async throws -> AWSEC2DescribeFleetsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFleets service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more flow logs.

    To view the published flow log records, you must view the log destination. For example, the CloudWatch Logs log group, the Amazon S3 bucket, or the Kinesis Data Firehose delivery stream.

    See

    AWSEC2DescribeFlowLogsRequest

    See

    AWSEC2DescribeFlowLogsResult

    Declaration

    Objective-C

    - (id)describeFlowLogs:(nonnull AWSEC2DescribeFlowLogsRequest *)request;

    Swift

    func describeFlowLogs(_ request: AWSEC2DescribeFlowLogsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFlowLogs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeFlowLogsResult.

  • Describes one or more flow logs.

    To view the published flow log records, you must view the log destination. For example, the CloudWatch Logs log group, the Amazon S3 bucket, or the Kinesis Data Firehose delivery stream.

    See

    AWSEC2DescribeFlowLogsRequest

    See

    AWSEC2DescribeFlowLogsResult

    Declaration

    Objective-C

    - (void)describeFlowLogs:(nonnull AWSEC2DescribeFlowLogsRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2DescribeFlowLogsResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeFlowLogs(_ request: AWSEC2DescribeFlowLogsRequest) async throws -> AWSEC2DescribeFlowLogsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFlowLogs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified attribute of the specified Amazon FPGA Image (AFI).

    See

    AWSEC2DescribeFpgaImageAttributeRequest

    See

    AWSEC2DescribeFpgaImageAttributeResult

    Declaration

    Objective-C

    - (id)describeFpgaImageAttribute:
        (nonnull AWSEC2DescribeFpgaImageAttributeRequest *)request;

    Swift

    func describeFpgaImageAttribute(_ request: AWSEC2DescribeFpgaImageAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFpgaImageAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeFpgaImageAttributeResult.

  • Describes the specified attribute of the specified Amazon FPGA Image (AFI).

    See

    AWSEC2DescribeFpgaImageAttributeRequest

    See

    AWSEC2DescribeFpgaImageAttributeResult

    Declaration

    Objective-C

    - (void)describeFpgaImageAttribute:
                (nonnull AWSEC2DescribeFpgaImageAttributeRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeFpgaImageAttributeResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeFpgaImageAttribute(_ request: AWSEC2DescribeFpgaImageAttributeRequest) async throws -> AWSEC2DescribeFpgaImageAttributeResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFpgaImageAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other Amazon Web Services accounts for which you have load permissions.

    See

    AWSEC2DescribeFpgaImagesRequest

    See

    AWSEC2DescribeFpgaImagesResult

    Declaration

    Objective-C

    - (id)describeFpgaImages:(nonnull AWSEC2DescribeFpgaImagesRequest *)request;

    Swift

    func describeFpgaImages(_ request: AWSEC2DescribeFpgaImagesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFpgaImages service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeFpgaImagesResult.

  • Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other Amazon Web Services accounts for which you have load permissions.

    See

    AWSEC2DescribeFpgaImagesRequest

    See

    AWSEC2DescribeFpgaImagesResult

    Declaration

    Objective-C

    - (void)describeFpgaImages:(nonnull AWSEC2DescribeFpgaImagesRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DescribeFpgaImagesResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeFpgaImages(_ request: AWSEC2DescribeFpgaImagesRequest) async throws -> AWSEC2DescribeFpgaImagesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeFpgaImages service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the Dedicated Host reservations that are available to purchase.

    The results describe all of the Dedicated Host reservation offerings, including offerings that might not match the instance family and Region of your Dedicated Hosts. When purchasing an offering, ensure that the instance family and Region of the offering matches that of the Dedicated Hosts with which it is to be associated. For more information about supported instance types, see Dedicated Hosts in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeHostReservationOfferingsRequest

    See

    AWSEC2DescribeHostReservationOfferingsResult

    Declaration

    Objective-C

    - (id)describeHostReservationOfferings:
        (nonnull AWSEC2DescribeHostReservationOfferingsRequest *)request;

    Swift

    func describeHostReservationOfferings(_ request: AWSEC2DescribeHostReservationOfferingsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeHostReservationOfferings service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeHostReservationOfferingsResult.

  • Describes the Dedicated Host reservations that are available to purchase.

    The results describe all of the Dedicated Host reservation offerings, including offerings that might not match the instance family and Region of your Dedicated Hosts. When purchasing an offering, ensure that the instance family and Region of the offering matches that of the Dedicated Hosts with which it is to be associated. For more information about supported instance types, see Dedicated Hosts in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeHostReservationOfferingsRequest

    See

    AWSEC2DescribeHostReservationOfferingsResult

    Declaration

    Objective-C

    - (void)describeHostReservationOfferings:
                (nonnull AWSEC2DescribeHostReservationOfferingsRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DescribeHostReservationOfferingsResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeHostReservationOfferings(_ request: AWSEC2DescribeHostReservationOfferingsRequest) async throws -> AWSEC2DescribeHostReservationOfferingsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeHostReservationOfferings service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes reservations that are associated with Dedicated Hosts in your account.

    See

    AWSEC2DescribeHostReservationsRequest

    See

    AWSEC2DescribeHostReservationsResult

    Declaration

    Objective-C

    - (id)describeHostReservations:
        (nonnull AWSEC2DescribeHostReservationsRequest *)request;

    Swift

    func describeHostReservations(_ request: AWSEC2DescribeHostReservationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeHostReservations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeHostReservationsResult.

  • Describes reservations that are associated with Dedicated Hosts in your account.

    See

    AWSEC2DescribeHostReservationsRequest

    See

    AWSEC2DescribeHostReservationsResult

    Declaration

    Objective-C

    - (void)describeHostReservations:
                (nonnull AWSEC2DescribeHostReservationsRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DescribeHostReservationsResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func describeHostReservations(_ request: AWSEC2DescribeHostReservationsRequest) async throws -> AWSEC2DescribeHostReservationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeHostReservations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Dedicated Hosts or all your Dedicated Hosts.

    The results describe only the Dedicated Hosts in the Region you’re currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state released.

    See

    AWSEC2DescribeHostsRequest

    See

    AWSEC2DescribeHostsResult

    Declaration

    Objective-C

    - (id)describeHosts:(nonnull AWSEC2DescribeHostsRequest *)request;

    Swift

    func describeHosts(_ request: AWSEC2DescribeHostsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeHosts service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeHostsResult.

  • Describes the specified Dedicated Hosts or all your Dedicated Hosts.

    The results describe only the Dedicated Hosts in the Region you’re currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state released.

    See

    AWSEC2DescribeHostsRequest

    See

    AWSEC2DescribeHostsResult

    Declaration

    Objective-C

    - (void)describeHosts:(nonnull AWSEC2DescribeHostsRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2DescribeHostsResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func describeHosts(_ request: AWSEC2DescribeHostsRequest) async throws -> AWSEC2DescribeHostsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeHosts service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your IAM instance profile associations.

    See

    AWSEC2DescribeIamInstanceProfileAssociationsRequest

    See

    AWSEC2DescribeIamInstanceProfileAssociationsResult

    Declaration

    Objective-C

    - (id)describeIamInstanceProfileAssociations:
        (nonnull AWSEC2DescribeIamInstanceProfileAssociationsRequest *)request;

    Swift

    func describeIamInstanceProfileAssociations(_ request: AWSEC2DescribeIamInstanceProfileAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIamInstanceProfileAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeIamInstanceProfileAssociationsResult.

  • Describes your IAM instance profile associations.

    See

    AWSEC2DescribeIamInstanceProfileAssociationsRequest

    See

    AWSEC2DescribeIamInstanceProfileAssociationsResult

    Declaration

    Objective-C

    - (void)
        describeIamInstanceProfileAssociations:
            (nonnull AWSEC2DescribeIamInstanceProfileAssociationsRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2DescribeIamInstanceProfileAssociationsResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeIamInstanceProfileAssociations(_ request: AWSEC2DescribeIamInstanceProfileAssociationsRequest) async throws -> AWSEC2DescribeIamInstanceProfileAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIamInstanceProfileAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

    The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    These settings apply to the IAM user who makes the request; they do not apply to the entire Amazon Web Services account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    See

    AWSEC2DescribeIdFormatRequest

    See

    AWSEC2DescribeIdFormatResult

    Declaration

    Objective-C

    - (id)describeIdFormat:(nonnull AWSEC2DescribeIdFormatRequest *)request;

    Swift

    func describeIdFormat(_ request: AWSEC2DescribeIdFormatRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIdFormat service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeIdFormatResult.

  • Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

    The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    These settings apply to the IAM user who makes the request; they do not apply to the entire Amazon Web Services account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    See

    AWSEC2DescribeIdFormatRequest

    See

    AWSEC2DescribeIdFormatResult

    Declaration

    Objective-C

    - (void)describeIdFormat:(nonnull AWSEC2DescribeIdFormatRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2DescribeIdFormatResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeIdFormat(_ request: AWSEC2DescribeIdFormatRequest) async throws -> AWSEC2DescribeIdFormatResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIdFormat service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.

    See

    AWSEC2DescribeIdentityIdFormatRequest

    See

    AWSEC2DescribeIdentityIdFormatResult

    Declaration

    Objective-C

    - (id)describeIdentityIdFormat:
        (nonnull AWSEC2DescribeIdentityIdFormatRequest *)request;

    Swift

    func describeIdentityIdFormat(_ request: AWSEC2DescribeIdentityIdFormatRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIdentityIdFormat service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeIdentityIdFormatResult.

  • Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.

    See

    AWSEC2DescribeIdentityIdFormatRequest

    See

    AWSEC2DescribeIdentityIdFormatResult

    Declaration

    Objective-C

    - (void)describeIdentityIdFormat:
                (nonnull AWSEC2DescribeIdentityIdFormatRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DescribeIdentityIdFormatResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func describeIdentityIdFormat(_ request: AWSEC2DescribeIdentityIdFormatRequest) async throws -> AWSEC2DescribeIdentityIdFormatResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIdentityIdFormat service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeImageAttributeRequest

    See

    AWSEC2ImageAttribute

    Declaration

    Objective-C

    - (id)describeImageAttribute:
        (nonnull AWSEC2DescribeImageAttributeRequest *)request;

    Swift

    func describeImageAttribute(_ request: AWSEC2DescribeImageAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeImageAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ImageAttribute.

  • Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeImageAttributeRequest

    See

    AWSEC2ImageAttribute

    Declaration

    Objective-C

    - (void)describeImageAttribute:
                (nonnull AWSEC2DescribeImageAttributeRequest *)request
                 completionHandler:
                     (void (^_Nullable)(AWSEC2ImageAttribute *_Nullable,
                                        NSError *_Nullable))completionHandler;

    Swift

    func describeImageAttribute(_ request: AWSEC2DescribeImageAttributeRequest) async throws -> AWSEC2ImageAttribute

    Parameters

    request

    A container for the necessary parameters to execute the DescribeImageAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

    The images available to you include public images, private images that you own, and private images owned by other Amazon Web Services accounts for which you have explicit launch permissions.

    Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image will eventually return an error indicating that the AMI ID cannot be found.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeImagesRequest

    See

    AWSEC2DescribeImagesResult

    Declaration

    Objective-C

    - (id)describeImages:(nonnull AWSEC2DescribeImagesRequest *)request;

    Swift

    func describeImages(_ request: AWSEC2DescribeImagesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeImages service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeImagesResult.

  • Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.

    The images available to you include public images, private images that you own, and private images owned by other Amazon Web Services accounts for which you have explicit launch permissions.

    Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image will eventually return an error indicating that the AMI ID cannot be found.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeImagesRequest

    See

    AWSEC2DescribeImagesResult

    Declaration

    Objective-C

    - (void)describeImages:(nonnull AWSEC2DescribeImagesRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2DescribeImagesResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func describeImages(_ request: AWSEC2DescribeImagesRequest) async throws -> AWSEC2DescribeImagesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeImages service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Displays details about an import virtual machine or import snapshot tasks that are already created.

    See

    AWSEC2DescribeImportImageTasksRequest

    See

    AWSEC2DescribeImportImageTasksResult

    Declaration

    Objective-C

    - (id)describeImportImageTasks:
        (nonnull AWSEC2DescribeImportImageTasksRequest *)request;

    Swift

    func describeImportImageTasks(_ request: AWSEC2DescribeImportImageTasksRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeImportImageTasks service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeImportImageTasksResult.

  • Displays details about an import virtual machine or import snapshot tasks that are already created.

    See

    AWSEC2DescribeImportImageTasksRequest

    See

    AWSEC2DescribeImportImageTasksResult

    Declaration

    Objective-C

    - (void)describeImportImageTasks:
                (nonnull AWSEC2DescribeImportImageTasksRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DescribeImportImageTasksResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func describeImportImageTasks(_ request: AWSEC2DescribeImportImageTasksRequest) async throws -> AWSEC2DescribeImportImageTasksResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeImportImageTasks service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your import snapshot tasks.

    See

    AWSEC2DescribeImportSnapshotTasksRequest

    See

    AWSEC2DescribeImportSnapshotTasksResult

    Declaration

    Objective-C

    - (id)describeImportSnapshotTasks:
        (nonnull AWSEC2DescribeImportSnapshotTasksRequest *)request;

    Swift

    func describeImportSnapshotTasks(_ request: AWSEC2DescribeImportSnapshotTasksRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeImportSnapshotTasks service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeImportSnapshotTasksResult.

  • Describes your import snapshot tasks.

    See

    AWSEC2DescribeImportSnapshotTasksRequest

    See

    AWSEC2DescribeImportSnapshotTasksResult

    Declaration

    Objective-C

    - (void)describeImportSnapshotTasks:
                (nonnull AWSEC2DescribeImportSnapshotTasksRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2DescribeImportSnapshotTasksResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func describeImportSnapshotTasks(_ request: AWSEC2DescribeImportSnapshotTasksRequest) async throws -> AWSEC2DescribeImportSnapshotTasksResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeImportSnapshotTasks service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport

    See

    AWSEC2DescribeInstanceAttributeRequest

    See

    AWSEC2InstanceAttribute

    Declaration

    Objective-C

    - (id)describeInstanceAttribute:
        (nonnull AWSEC2DescribeInstanceAttributeRequest *)request;

    Swift

    func describeInstanceAttribute(_ request: AWSEC2DescribeInstanceAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2InstanceAttribute.

  • Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are: instanceType | kernel | ramdisk | userData | disableApiTermination | instanceInitiatedShutdownBehavior | rootDeviceName | blockDeviceMapping | productCodes | sourceDestCheck | groupSet | ebsOptimized | sriovNetSupport

    See

    AWSEC2DescribeInstanceAttributeRequest

    See

    AWSEC2InstanceAttribute

    Declaration

    Objective-C

    - (void)describeInstanceAttribute:
                (nonnull AWSEC2DescribeInstanceAttributeRequest *)request
                    completionHandler:
                        (void (^_Nullable)(AWSEC2InstanceAttribute *_Nullable,
                                           NSError *_Nullable))completionHandler;

    Swift

    func describeInstanceAttribute(_ request: AWSEC2DescribeInstanceAttributeRequest) async throws -> AWSEC2InstanceAttribute

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance Connect Endpoints.

    See

    AWSEC2DescribeInstanceConnectEndpointsRequest

    See

    AWSEC2DescribeInstanceConnectEndpointsResult

    Declaration

    Objective-C

    - (id)describeInstanceConnectEndpoints:
        (nonnull AWSEC2DescribeInstanceConnectEndpointsRequest *)request;

    Swift

    func describeInstanceConnectEndpoints(_ request: AWSEC2DescribeInstanceConnectEndpointsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceConnectEndpoints service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeInstanceConnectEndpointsResult.

  • Describes the specified EC2 Instance Connect Endpoints or all EC2 Instance Connect Endpoints.

    See

    AWSEC2DescribeInstanceConnectEndpointsRequest

    See

    AWSEC2DescribeInstanceConnectEndpointsResult

    Declaration

    Objective-C

    - (void)describeInstanceConnectEndpoints:
                (nonnull AWSEC2DescribeInstanceConnectEndpointsRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DescribeInstanceConnectEndpointsResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeInstanceConnectEndpoints(_ request: AWSEC2DescribeInstanceConnectEndpointsRequest) async throws -> AWSEC2DescribeInstanceConnectEndpointsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceConnectEndpoints service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the credit option for CPU usage of the specified burstable performance instances. The credit options are standard and unlimited.

    If you do not specify an instance ID, Amazon EC2 returns burstable performance instances with the unlimited credit option, as well as instances that were previously configured as T2, T3, and T3a with the unlimited credit option. For example, if you resize a T2 instance, while it is configured as unlimited, to an M4 instance, Amazon EC2 returns the M4 instance.

    If you specify one or more instance IDs, Amazon EC2 returns the credit option (standard or unlimited) of those instances. If you specify an instance ID that is not valid, such as an instance that is not a burstable performance instance, an error is returned.

    Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

    If an Availability Zone is experiencing a service disruption and you specify instance IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs in an unaffected zone, the call works normally.

    For more information, see Burstable performance instances in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeInstanceCreditSpecificationsRequest

    See

    AWSEC2DescribeInstanceCreditSpecificationsResult

    Declaration

    Objective-C

    - (id)describeInstanceCreditSpecifications:
        (nonnull AWSEC2DescribeInstanceCreditSpecificationsRequest *)request;

    Swift

    func describeInstanceCreditSpecifications(_ request: AWSEC2DescribeInstanceCreditSpecificationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceCreditSpecifications service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeInstanceCreditSpecificationsResult.

  • Describes the credit option for CPU usage of the specified burstable performance instances. The credit options are standard and unlimited.

    If you do not specify an instance ID, Amazon EC2 returns burstable performance instances with the unlimited credit option, as well as instances that were previously configured as T2, T3, and T3a with the unlimited credit option. For example, if you resize a T2 instance, while it is configured as unlimited, to an M4 instance, Amazon EC2 returns the M4 instance.

    If you specify one or more instance IDs, Amazon EC2 returns the credit option (standard or unlimited) of those instances. If you specify an instance ID that is not valid, such as an instance that is not a burstable performance instance, an error is returned.

    Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

    If an Availability Zone is experiencing a service disruption and you specify instance IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs in an unaffected zone, the call works normally.

    For more information, see Burstable performance instances in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeInstanceCreditSpecificationsRequest

    See

    AWSEC2DescribeInstanceCreditSpecificationsResult

    Declaration

    Objective-C

    - (void)
        describeInstanceCreditSpecifications:
            (nonnull AWSEC2DescribeInstanceCreditSpecificationsRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DescribeInstanceCreditSpecificationsResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeInstanceCreditSpecifications(_ request: AWSEC2DescribeInstanceCreditSpecificationsRequest) async throws -> AWSEC2DescribeInstanceCreditSpecificationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceCreditSpecifications service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region.

    See

    AWSEC2DescribeInstanceEventNotificationAttributesRequest

    See

    AWSEC2DescribeInstanceEventNotificationAttributesResult

    Declaration

    Objective-C

    - (id)describeInstanceEventNotificationAttributes:
        (nonnull AWSEC2DescribeInstanceEventNotificationAttributesRequest *)request;

    Swift

    func describeInstanceEventNotificationAttributes(_ request: AWSEC2DescribeInstanceEventNotificationAttributesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceEventNotificationAttributes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeInstanceEventNotificationAttributesResult.

  • Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region.

    See

    AWSEC2DescribeInstanceEventNotificationAttributesRequest

    See

    AWSEC2DescribeInstanceEventNotificationAttributesResult

    Declaration

    Objective-C

    - (void)
        describeInstanceEventNotificationAttributes:
            (nonnull AWSEC2DescribeInstanceEventNotificationAttributesRequest *)
                request
                                  completionHandler:
                                      (void (^_Nullable)(
                                          AWSEC2DescribeInstanceEventNotificationAttributesResult
                                              *_Nullable,
                                          NSError *_Nullable))completionHandler;

    Swift

    func describeInstanceEventNotificationAttributes(_ request: AWSEC2DescribeInstanceEventNotificationAttributesRequest) async throws -> AWSEC2DescribeInstanceEventNotificationAttributesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceEventNotificationAttributes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified event windows or all event windows.

    If you specify event window IDs, the output includes information for only the specified event windows. If you specify filters, the output includes information for only those event windows that meet the filter criteria. If you do not specify event windows IDs or filters, the output includes information for all event windows, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeInstanceEventWindowsRequest

    See

    AWSEC2DescribeInstanceEventWindowsResult

    Declaration

    Objective-C

    - (id)describeInstanceEventWindows:
        (nonnull AWSEC2DescribeInstanceEventWindowsRequest *)request;

    Swift

    func describeInstanceEventWindows(_ request: AWSEC2DescribeInstanceEventWindowsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceEventWindows service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeInstanceEventWindowsResult.

  • Describes the specified event windows or all event windows.

    If you specify event window IDs, the output includes information for only the specified event windows. If you specify filters, the output includes information for only those event windows that meet the filter criteria. If you do not specify event windows IDs or filters, the output includes information for all event windows, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeInstanceEventWindowsRequest

    See

    AWSEC2DescribeInstanceEventWindowsResult

    Declaration

    Objective-C

    - (void)describeInstanceEventWindows:
                (nonnull AWSEC2DescribeInstanceEventWindowsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeInstanceEventWindowsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeInstanceEventWindows(_ request: AWSEC2DescribeInstanceEventWindowsRequest) async throws -> AWSEC2DescribeInstanceEventWindowsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceEventWindows service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances.

    Instance status includes the following components:

    • Status checks - Amazon EC2 performs status checks on running EC2 instances to identify hardware and software issues. For more information, see Status checks for your instances and Troubleshoot instances with failed status checks in the Amazon EC2 User Guide.

    • Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, or terminate) for your instances related to hardware issues, software updates, or system maintenance. For more information, see Scheduled events for your instances in the Amazon EC2 User Guide.

    • Instance state - You can manage your instances from the moment you launch them through their termination. For more information, see Instance lifecycle in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeInstanceStatusRequest

    See

    AWSEC2DescribeInstanceStatusResult

    Declaration

    Objective-C

    - (id)describeInstanceStatus:
        (nonnull AWSEC2DescribeInstanceStatusRequest *)request;

    Swift

    func describeInstanceStatus(_ request: AWSEC2DescribeInstanceStatusRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceStatus service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeInstanceStatusResult.

  • Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances.

    Instance status includes the following components:

    • Status checks - Amazon EC2 performs status checks on running EC2 instances to identify hardware and software issues. For more information, see Status checks for your instances and Troubleshoot instances with failed status checks in the Amazon EC2 User Guide.

    • Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, or terminate) for your instances related to hardware issues, software updates, or system maintenance. For more information, see Scheduled events for your instances in the Amazon EC2 User Guide.

    • Instance state - You can manage your instances from the moment you launch them through their termination. For more information, see Instance lifecycle in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeInstanceStatusRequest

    See

    AWSEC2DescribeInstanceStatusResult

    Declaration

    Objective-C

    - (void)
        describeInstanceStatus:
            (nonnull AWSEC2DescribeInstanceStatusRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DescribeInstanceStatusResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeInstanceStatus(_ request: AWSEC2DescribeInstanceStatusRequest) async throws -> AWSEC2DescribeInstanceStatusResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceStatus service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes a tree-based hierarchy that represents the physical host placement of your EC2 instances within an Availability Zone or Local Zone. You can use this information to determine the relative proximity of your EC2 instances within the Amazon Web Services network to support your tightly coupled workloads.

    Limitations

    • Supported zones

      • Availability Zone

      • Local Zone

    • Supported instance types

      • hpc6a.48xlarge | hpc6id.32xlarge | hpc7a.12xlarge | hpc7a.24xlarge | hpc7a.48xlarge | hpc7a.96xlarge | hpc7g.4xlarge | hpc7g.8xlarge | hpc7g.16xlarge

      • p3dn.24xlarge | p4d.24xlarge | p4de.24xlarge | p5.48xlarge

      • trn1.2xlarge | trn1.32xlarge | trn1n.32xlarge

    For more information, see Amazon EC2 instance topology in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeInstanceTopologyRequest

    See

    AWSEC2DescribeInstanceTopologyResult

    Declaration

    Objective-C

    - (id)describeInstanceTopology:
        (nonnull AWSEC2DescribeInstanceTopologyRequest *)request;

    Swift

    func describeInstanceTopology(_ request: AWSEC2DescribeInstanceTopologyRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceTopology service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeInstanceTopologyResult.

  • Describes a tree-based hierarchy that represents the physical host placement of your EC2 instances within an Availability Zone or Local Zone. You can use this information to determine the relative proximity of your EC2 instances within the Amazon Web Services network to support your tightly coupled workloads.

    Limitations

    • Supported zones

      • Availability Zone

      • Local Zone

    • Supported instance types

      • hpc6a.48xlarge | hpc6id.32xlarge | hpc7a.12xlarge | hpc7a.24xlarge | hpc7a.48xlarge | hpc7a.96xlarge | hpc7g.4xlarge | hpc7g.8xlarge | hpc7g.16xlarge

      • p3dn.24xlarge | p4d.24xlarge | p4de.24xlarge | p5.48xlarge

      • trn1.2xlarge | trn1.32xlarge | trn1n.32xlarge

    For more information, see Amazon EC2 instance topology in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeInstanceTopologyRequest

    See

    AWSEC2DescribeInstanceTopologyResult

    Declaration

    Objective-C

    - (void)describeInstanceTopology:
                (nonnull AWSEC2DescribeInstanceTopologyRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DescribeInstanceTopologyResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func describeInstanceTopology(_ request: AWSEC2DescribeInstanceTopologyRequest) async throws -> AWSEC2DescribeInstanceTopologyResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceTopology service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Lists the instance types that are offered for the specified location. If no location is specified, the default is to list the instance types that are offered in the current Region.

    See

    AWSEC2DescribeInstanceTypeOfferingsRequest

    See

    AWSEC2DescribeInstanceTypeOfferingsResult

    Declaration

    Objective-C

    - (id)describeInstanceTypeOfferings:
        (nonnull AWSEC2DescribeInstanceTypeOfferingsRequest *)request;

    Swift

    func describeInstanceTypeOfferings(_ request: AWSEC2DescribeInstanceTypeOfferingsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceTypeOfferings service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeInstanceTypeOfferingsResult.

  • Lists the instance types that are offered for the specified location. If no location is specified, the default is to list the instance types that are offered in the current Region.

    See

    AWSEC2DescribeInstanceTypeOfferingsRequest

    See

    AWSEC2DescribeInstanceTypeOfferingsResult

    Declaration

    Objective-C

    - (void)
        describeInstanceTypeOfferings:
            (nonnull AWSEC2DescribeInstanceTypeOfferingsRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribeInstanceTypeOfferingsResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describeInstanceTypeOfferings(_ request: AWSEC2DescribeInstanceTypeOfferingsRequest) async throws -> AWSEC2DescribeInstanceTypeOfferingsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceTypeOfferings service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified instance types. By default, all instance types for the current Region are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeInstanceTypesRequest

    See

    AWSEC2DescribeInstanceTypesResult

    Declaration

    Objective-C

    - (id)describeInstanceTypes:
        (nonnull AWSEC2DescribeInstanceTypesRequest *)request;

    Swift

    func describeInstanceTypes(_ request: AWSEC2DescribeInstanceTypesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceTypes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeInstanceTypesResult.

  • Describes the specified instance types. By default, all instance types for the current Region are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeInstanceTypesRequest

    See

    AWSEC2DescribeInstanceTypesResult

    Declaration

    Objective-C

    - (void)describeInstanceTypes:
                (nonnull AWSEC2DescribeInstanceTypesRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2DescribeInstanceTypesResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func describeInstanceTypes(_ request: AWSEC2DescribeInstanceTypesRequest) async throws -> AWSEC2DescribeInstanceTypesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstanceTypes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified instances or all instances.

    If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.

    If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the output.

    Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

    If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeInstancesRequest

    See

    AWSEC2DescribeInstancesResult

    Declaration

    Objective-C

    - (id)describeInstances:(nonnull AWSEC2DescribeInstancesRequest *)request;

    Swift

    func describeInstances(_ request: AWSEC2DescribeInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeInstancesResult.

  • Describes the specified instances or all instances.

    If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.

    If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the output.

    Recently terminated instances might appear in the returned results. This interval is usually less than one hour.

    If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeInstancesRequest

    See

    AWSEC2DescribeInstancesResult

    Declaration

    Objective-C

    - (void)describeInstances:(nonnull AWSEC2DescribeInstancesRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2DescribeInstancesResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeInstances(_ request: AWSEC2DescribeInstancesRequest) async throws -> AWSEC2DescribeInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your internet gateways. The default is to describe all your internet gateways. Alternatively, you can specify specific internet gateway IDs or filter the results to include only the internet gateways that match specific criteria.

    See

    AWSEC2DescribeInternetGatewaysRequest

    See

    AWSEC2DescribeInternetGatewaysResult

    Declaration

    Objective-C

    - (id)describeInternetGateways:
        (nonnull AWSEC2DescribeInternetGatewaysRequest *)request;

    Swift

    func describeInternetGateways(_ request: AWSEC2DescribeInternetGatewaysRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInternetGateways service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeInternetGatewaysResult.

  • Describes your internet gateways. The default is to describe all your internet gateways. Alternatively, you can specify specific internet gateway IDs or filter the results to include only the internet gateways that match specific criteria.

    See

    AWSEC2DescribeInternetGatewaysRequest

    See

    AWSEC2DescribeInternetGatewaysResult

    Declaration

    Objective-C

    - (void)describeInternetGateways:
                (nonnull AWSEC2DescribeInternetGatewaysRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DescribeInternetGatewaysResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func describeInternetGateways(_ request: AWSEC2DescribeInternetGatewaysRequest) async throws -> AWSEC2DescribeInternetGatewaysResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeInternetGateways service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your Autonomous System Numbers (ASNs), their provisioning statuses, and the BYOIP CIDRs with which they are associated. For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

    See

    AWSEC2DescribeIpamByoasnRequest

    See

    AWSEC2DescribeIpamByoasnResult

    Declaration

    Objective-C

    - (id)describeIpamByoasn:(nonnull AWSEC2DescribeIpamByoasnRequest *)request;

    Swift

    func describeIpamByoasn(_ request: AWSEC2DescribeIpamByoasnRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpamByoasn service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeIpamByoasnResult.

  • Describes your Autonomous System Numbers (ASNs), their provisioning statuses, and the BYOIP CIDRs with which they are associated. For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

    See

    AWSEC2DescribeIpamByoasnRequest

    See

    AWSEC2DescribeIpamByoasnResult

    Declaration

    Objective-C

    - (void)describeIpamByoasn:(nonnull AWSEC2DescribeIpamByoasnRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DescribeIpamByoasnResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeIpamByoasn(_ request: AWSEC2DescribeIpamByoasnRequest) async throws -> AWSEC2DescribeIpamByoasnResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpamByoasn service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Get information about your IPAM pools.

    See

    AWSEC2DescribeIpamPoolsRequest

    See

    AWSEC2DescribeIpamPoolsResult

    Declaration

    Objective-C

    - (id)describeIpamPools:(nonnull AWSEC2DescribeIpamPoolsRequest *)request;

    Swift

    func describeIpamPools(_ request: AWSEC2DescribeIpamPoolsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpamPools service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeIpamPoolsResult.

  • Get information about your IPAM pools.

    See

    AWSEC2DescribeIpamPoolsRequest

    See

    AWSEC2DescribeIpamPoolsResult

    Declaration

    Objective-C

    - (void)describeIpamPools:(nonnull AWSEC2DescribeIpamPoolsRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2DescribeIpamPoolsResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeIpamPools(_ request: AWSEC2DescribeIpamPoolsRequest) async throws -> AWSEC2DescribeIpamPoolsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpamPools service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes IPAM resource discoveries. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2DescribeIpamResourceDiscoveriesRequest

    See

    AWSEC2DescribeIpamResourceDiscoveriesResult

    Declaration

    Objective-C

    - (id)describeIpamResourceDiscoveries:
        (nonnull AWSEC2DescribeIpamResourceDiscoveriesRequest *)request;

    Swift

    func describeIpamResourceDiscoveries(_ request: AWSEC2DescribeIpamResourceDiscoveriesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpamResourceDiscoveries service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeIpamResourceDiscoveriesResult.

  • Describes IPAM resource discoveries. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2DescribeIpamResourceDiscoveriesRequest

    See

    AWSEC2DescribeIpamResourceDiscoveriesResult

    Declaration

    Objective-C

    - (void)describeIpamResourceDiscoveries:
                (nonnull AWSEC2DescribeIpamResourceDiscoveriesRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeIpamResourceDiscoveriesResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeIpamResourceDiscoveries(_ request: AWSEC2DescribeIpamResourceDiscoveriesRequest) async throws -> AWSEC2DescribeIpamResourceDiscoveriesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpamResourceDiscoveries service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes resource discovery association with an Amazon VPC IPAM. An associated resource discovery is a resource discovery that has been associated with an IPAM..

    See

    AWSEC2DescribeIpamResourceDiscoveryAssociationsRequest

    See

    AWSEC2DescribeIpamResourceDiscoveryAssociationsResult

    Declaration

    Objective-C

    - (id)describeIpamResourceDiscoveryAssociations:
        (nonnull AWSEC2DescribeIpamResourceDiscoveryAssociationsRequest *)request;

    Swift

    func describeIpamResourceDiscoveryAssociations(_ request: AWSEC2DescribeIpamResourceDiscoveryAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpamResourceDiscoveryAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeIpamResourceDiscoveryAssociationsResult.

  • Describes resource discovery association with an Amazon VPC IPAM. An associated resource discovery is a resource discovery that has been associated with an IPAM..

    See

    AWSEC2DescribeIpamResourceDiscoveryAssociationsRequest

    See

    AWSEC2DescribeIpamResourceDiscoveryAssociationsResult

    Declaration

    Objective-C

    - (void)
        describeIpamResourceDiscoveryAssociations:
            (nonnull AWSEC2DescribeIpamResourceDiscoveryAssociationsRequest *)
                request
                                completionHandler:
                                    (void (^_Nullable)(
                                        AWSEC2DescribeIpamResourceDiscoveryAssociationsResult
                                            *_Nullable,
                                        NSError *_Nullable))completionHandler;

    Swift

    func describeIpamResourceDiscoveryAssociations(_ request: AWSEC2DescribeIpamResourceDiscoveryAssociationsRequest) async throws -> AWSEC2DescribeIpamResourceDiscoveryAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpamResourceDiscoveryAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Get information about your IPAM scopes.

    See

    AWSEC2DescribeIpamScopesRequest

    See

    AWSEC2DescribeIpamScopesResult

    Declaration

    Objective-C

    - (id)describeIpamScopes:(nonnull AWSEC2DescribeIpamScopesRequest *)request;

    Swift

    func describeIpamScopes(_ request: AWSEC2DescribeIpamScopesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpamScopes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeIpamScopesResult.

  • Get information about your IPAM scopes.

    See

    AWSEC2DescribeIpamScopesRequest

    See

    AWSEC2DescribeIpamScopesResult

    Declaration

    Objective-C

    - (void)describeIpamScopes:(nonnull AWSEC2DescribeIpamScopesRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DescribeIpamScopesResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeIpamScopes(_ request: AWSEC2DescribeIpamScopesRequest) async throws -> AWSEC2DescribeIpamScopesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpamScopes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Get information about your IPAM pools.

    For more information, see What is IPAM? in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DescribeIpamsRequest

    See

    AWSEC2DescribeIpamsResult

    Declaration

    Objective-C

    - (id)describeIpams:(nonnull AWSEC2DescribeIpamsRequest *)request;

    Swift

    func describeIpams(_ request: AWSEC2DescribeIpamsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpams service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeIpamsResult.

  • Get information about your IPAM pools.

    For more information, see What is IPAM? in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DescribeIpamsRequest

    See

    AWSEC2DescribeIpamsResult

    Declaration

    Objective-C

    - (void)describeIpams:(nonnull AWSEC2DescribeIpamsRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2DescribeIpamsResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func describeIpams(_ request: AWSEC2DescribeIpamsRequest) async throws -> AWSEC2DescribeIpamsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpams service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your IPv6 address pools.

    See

    AWSEC2DescribeIpv6PoolsRequest

    See

    AWSEC2DescribeIpv6PoolsResult

    Declaration

    Objective-C

    - (id)describeIpv6Pools:(nonnull AWSEC2DescribeIpv6PoolsRequest *)request;

    Swift

    func describeIpv6Pools(_ request: AWSEC2DescribeIpv6PoolsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpv6Pools service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeIpv6PoolsResult.

  • Describes your IPv6 address pools.

    See

    AWSEC2DescribeIpv6PoolsRequest

    See

    AWSEC2DescribeIpv6PoolsResult

    Declaration

    Objective-C

    - (void)describeIpv6Pools:(nonnull AWSEC2DescribeIpv6PoolsRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2DescribeIpv6PoolsResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeIpv6Pools(_ request: AWSEC2DescribeIpv6PoolsRequest) async throws -> AWSEC2DescribeIpv6PoolsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeIpv6Pools service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified key pairs or all of your key pairs.

    For more information about key pairs, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.

    See

    AWSEC2DescribeKeyPairsRequest

    See

    AWSEC2DescribeKeyPairsResult

    Declaration

    Objective-C

    - (id)describeKeyPairs:(nonnull AWSEC2DescribeKeyPairsRequest *)request;

    Swift

    func describeKeyPairs(_ request: AWSEC2DescribeKeyPairsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeKeyPairs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeKeyPairsResult.

  • Describes the specified key pairs or all of your key pairs.

    For more information about key pairs, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.

    See

    AWSEC2DescribeKeyPairsRequest

    See

    AWSEC2DescribeKeyPairsResult

    Declaration

    Objective-C

    - (void)describeKeyPairs:(nonnull AWSEC2DescribeKeyPairsRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2DescribeKeyPairsResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeKeyPairs(_ request: AWSEC2DescribeKeyPairsRequest) async throws -> AWSEC2DescribeKeyPairsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeKeyPairs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more versions of a specified launch template. You can describe all versions, individual versions, or a range of versions. You can also describe all the latest versions or all the default versions of all the launch templates in your account.

    See

    AWSEC2DescribeLaunchTemplateVersionsRequest

    See

    AWSEC2DescribeLaunchTemplateVersionsResult

    Declaration

    Objective-C

    - (id)describeLaunchTemplateVersions:
        (nonnull AWSEC2DescribeLaunchTemplateVersionsRequest *)request;

    Swift

    func describeLaunchTemplateVersions(_ request: AWSEC2DescribeLaunchTemplateVersionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLaunchTemplateVersions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeLaunchTemplateVersionsResult.

  • Describes one or more versions of a specified launch template. You can describe all versions, individual versions, or a range of versions. You can also describe all the latest versions or all the default versions of all the launch templates in your account.

    See

    AWSEC2DescribeLaunchTemplateVersionsRequest

    See

    AWSEC2DescribeLaunchTemplateVersionsResult

    Declaration

    Objective-C

    - (void)
        describeLaunchTemplateVersions:
            (nonnull AWSEC2DescribeLaunchTemplateVersionsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeLaunchTemplateVersionsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeLaunchTemplateVersions(_ request: AWSEC2DescribeLaunchTemplateVersionsRequest) async throws -> AWSEC2DescribeLaunchTemplateVersionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLaunchTemplateVersions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more launch templates.

    See

    AWSEC2DescribeLaunchTemplatesRequest

    See

    AWSEC2DescribeLaunchTemplatesResult

    Declaration

    Objective-C

    - (id)describeLaunchTemplates:
        (nonnull AWSEC2DescribeLaunchTemplatesRequest *)request;

    Swift

    func describeLaunchTemplates(_ request: AWSEC2DescribeLaunchTemplatesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLaunchTemplates service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeLaunchTemplatesResult.

  • Describes one or more launch templates.

    See

    AWSEC2DescribeLaunchTemplatesRequest

    See

    AWSEC2DescribeLaunchTemplatesResult

    Declaration

    Objective-C

    - (void)
        describeLaunchTemplates:
            (nonnull AWSEC2DescribeLaunchTemplatesRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeLaunchTemplatesResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeLaunchTemplates(_ request: AWSEC2DescribeLaunchTemplatesRequest) async throws -> AWSEC2DescribeLaunchTemplatesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLaunchTemplates service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the associations between virtual interface groups and local gateway route tables.

    See

    AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest

    See

    AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult

    Declaration

    Objective-C

    - (id)describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations:
        (nonnull
             AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest
                 *)request;

    Swift

    func describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(_ request: AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult.

  • Describes the associations between virtual interface groups and local gateway route tables.

    See

    AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest

    See

    AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult

    Declaration

    Objective-C

    - (void)
        describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations:
            (nonnull
                 AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest
                     *)request
                                                      completionHandler:
                                                          (void (^_Nullable)(
                                                              AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult
                                                                  *_Nullable,
                                                              NSError *_Nullable))
                                                              completionHandler;

    Swift

    func describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(_ request: AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest) async throws -> AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified associations between VPCs and local gateway route tables.

    See

    AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest

    See

    AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsResult

    Declaration

    Objective-C

    - (id)describeLocalGatewayRouteTableVpcAssociations:
        (nonnull AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest *)
            request;

    Swift

    func describeLocalGatewayRouteTableVpcAssociations(_ request: AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGatewayRouteTableVpcAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsResult.

  • Describes the specified associations between VPCs and local gateway route tables.

    See

    AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest

    See

    AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsResult

    Declaration

    Objective-C

    - (void)
        describeLocalGatewayRouteTableVpcAssociations:
            (nonnull AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest *)
                request
                                    completionHandler:
                                        (void (^_Nullable)(
                                            AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsResult
                                                *_Nullable,
                                            NSError *_Nullable))completionHandler;

    Swift

    func describeLocalGatewayRouteTableVpcAssociations(_ request: AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest) async throws -> AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGatewayRouteTableVpcAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more local gateway route tables. By default, all local gateway route tables are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeLocalGatewayRouteTablesRequest

    See

    AWSEC2DescribeLocalGatewayRouteTablesResult

    Declaration

    Objective-C

    - (id)describeLocalGatewayRouteTables:
        (nonnull AWSEC2DescribeLocalGatewayRouteTablesRequest *)request;

    Swift

    func describeLocalGatewayRouteTables(_ request: AWSEC2DescribeLocalGatewayRouteTablesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGatewayRouteTables service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeLocalGatewayRouteTablesResult.

  • Describes one or more local gateway route tables. By default, all local gateway route tables are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeLocalGatewayRouteTablesRequest

    See

    AWSEC2DescribeLocalGatewayRouteTablesResult

    Declaration

    Objective-C

    - (void)describeLocalGatewayRouteTables:
                (nonnull AWSEC2DescribeLocalGatewayRouteTablesRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeLocalGatewayRouteTablesResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeLocalGatewayRouteTables(_ request: AWSEC2DescribeLocalGatewayRouteTablesRequest) async throws -> AWSEC2DescribeLocalGatewayRouteTablesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGatewayRouteTables service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified local gateway virtual interface groups.

    See

    AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest

    See

    AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsResult

    Declaration

    Objective-C

    - (id)describeLocalGatewayVirtualInterfaceGroups:
        (nonnull AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest *)request;

    Swift

    func describeLocalGatewayVirtualInterfaceGroups(_ request: AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGatewayVirtualInterfaceGroups service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsResult.

  • Describes the specified local gateway virtual interface groups.

    See

    AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest

    See

    AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsResult

    Declaration

    Objective-C

    - (void)
        describeLocalGatewayVirtualInterfaceGroups:
            (nonnull AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest *)
                request
                                 completionHandler:
                                     (void (^_Nullable)(
                                         AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsResult
                                             *_Nullable,
                                         NSError *_Nullable))completionHandler;

    Swift

    func describeLocalGatewayVirtualInterfaceGroups(_ request: AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest) async throws -> AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGatewayVirtualInterfaceGroups service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified local gateway virtual interfaces.

    See

    AWSEC2DescribeLocalGatewayVirtualInterfacesRequest

    See

    AWSEC2DescribeLocalGatewayVirtualInterfacesResult

    Declaration

    Objective-C

    - (id)describeLocalGatewayVirtualInterfaces:
        (nonnull AWSEC2DescribeLocalGatewayVirtualInterfacesRequest *)request;

    Swift

    func describeLocalGatewayVirtualInterfaces(_ request: AWSEC2DescribeLocalGatewayVirtualInterfacesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGatewayVirtualInterfaces service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeLocalGatewayVirtualInterfacesResult.

  • Describes the specified local gateway virtual interfaces.

    See

    AWSEC2DescribeLocalGatewayVirtualInterfacesRequest

    See

    AWSEC2DescribeLocalGatewayVirtualInterfacesResult

    Declaration

    Objective-C

    - (void)
        describeLocalGatewayVirtualInterfaces:
            (nonnull AWSEC2DescribeLocalGatewayVirtualInterfacesRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DescribeLocalGatewayVirtualInterfacesResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeLocalGatewayVirtualInterfaces(_ request: AWSEC2DescribeLocalGatewayVirtualInterfacesRequest) async throws -> AWSEC2DescribeLocalGatewayVirtualInterfacesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGatewayVirtualInterfaces service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeLocalGatewaysRequest

    See

    AWSEC2DescribeLocalGatewaysResult

    Declaration

    Objective-C

    - (id)describeLocalGateways:
        (nonnull AWSEC2DescribeLocalGatewaysRequest *)request;

    Swift

    func describeLocalGateways(_ request: AWSEC2DescribeLocalGatewaysRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGateways service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeLocalGatewaysResult.

  • Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeLocalGatewaysRequest

    See

    AWSEC2DescribeLocalGatewaysResult

    Declaration

    Objective-C

    - (void)describeLocalGateways:
                (nonnull AWSEC2DescribeLocalGatewaysRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2DescribeLocalGatewaysResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func describeLocalGateways(_ request: AWSEC2DescribeLocalGatewaysRequest) async throws -> AWSEC2DescribeLocalGatewaysResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLocalGateways service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the lock status for a snapshot.

    See

    AWSEC2DescribeLockedSnapshotsRequest

    See

    AWSEC2DescribeLockedSnapshotsResult

    Declaration

    Objective-C

    - (id)describeLockedSnapshots:
        (nonnull AWSEC2DescribeLockedSnapshotsRequest *)request;

    Swift

    func describeLockedSnapshots(_ request: AWSEC2DescribeLockedSnapshotsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLockedSnapshots service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeLockedSnapshotsResult.

  • Describes the lock status for a snapshot.

    See

    AWSEC2DescribeLockedSnapshotsRequest

    See

    AWSEC2DescribeLockedSnapshotsResult

    Declaration

    Objective-C

    - (void)
        describeLockedSnapshots:
            (nonnull AWSEC2DescribeLockedSnapshotsRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeLockedSnapshotsResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeLockedSnapshots(_ request: AWSEC2DescribeLockedSnapshotsRequest) async throws -> AWSEC2DescribeLockedSnapshotsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeLockedSnapshots service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts.

    See

    AWSEC2DescribeMacHostsRequest

    See

    AWSEC2DescribeMacHostsResult

    Declaration

    Objective-C

    - (id)describeMacHosts:(nonnull AWSEC2DescribeMacHostsRequest *)request;

    Swift

    func describeMacHosts(_ request: AWSEC2DescribeMacHostsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeMacHosts service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeMacHostsResult.

  • Describes the specified EC2 Mac Dedicated Host or all of your EC2 Mac Dedicated Hosts.

    See

    AWSEC2DescribeMacHostsRequest

    See

    AWSEC2DescribeMacHostsResult

    Declaration

    Objective-C

    - (void)describeMacHosts:(nonnull AWSEC2DescribeMacHostsRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2DescribeMacHostsResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeMacHosts(_ request: AWSEC2DescribeMacHostsRequest) async throws -> AWSEC2DescribeMacHostsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeMacHosts service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your managed prefix lists and any Amazon Web Services-managed prefix lists.

    To view the entries for your prefix list, use GetManagedPrefixListEntries.

    See

    AWSEC2DescribeManagedPrefixListsRequest

    See

    AWSEC2DescribeManagedPrefixListsResult

    Declaration

    Objective-C

    - (id)describeManagedPrefixLists:
        (nonnull AWSEC2DescribeManagedPrefixListsRequest *)request;

    Swift

    func describeManagedPrefixLists(_ request: AWSEC2DescribeManagedPrefixListsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeManagedPrefixLists service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeManagedPrefixListsResult.

  • Describes your managed prefix lists and any Amazon Web Services-managed prefix lists.

    To view the entries for your prefix list, use GetManagedPrefixListEntries.

    See

    AWSEC2DescribeManagedPrefixListsRequest

    See

    AWSEC2DescribeManagedPrefixListsResult

    Declaration

    Objective-C

    - (void)describeManagedPrefixLists:
                (nonnull AWSEC2DescribeManagedPrefixListsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeManagedPrefixListsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeManagedPrefixLists(_ request: AWSEC2DescribeManagedPrefixListsRequest) async throws -> AWSEC2DescribeManagedPrefixListsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeManagedPrefixLists service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Describes your Elastic IP addresses that are being moved from or being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account.

    See

    AWSEC2DescribeMovingAddressesRequest

    See

    AWSEC2DescribeMovingAddressesResult

    Declaration

    Objective-C

    - (id)describeMovingAddresses:
        (nonnull AWSEC2DescribeMovingAddressesRequest *)request;

    Swift

    func describeMovingAddresses(_ request: AWSEC2DescribeMovingAddressesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeMovingAddresses service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeMovingAddressesResult.

  • This action is deprecated.

    Describes your Elastic IP addresses that are being moved from or being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account.

    See

    AWSEC2DescribeMovingAddressesRequest

    See

    AWSEC2DescribeMovingAddressesResult

    Declaration

    Objective-C

    - (void)
        describeMovingAddresses:
            (nonnull AWSEC2DescribeMovingAddressesRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeMovingAddressesResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeMovingAddresses(_ request: AWSEC2DescribeMovingAddressesRequest) async throws -> AWSEC2DescribeMovingAddressesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeMovingAddresses service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your NAT gateways. The default is to describe all your NAT gateways. Alternatively, you can specify specific NAT gateway IDs or filter the results to include only the NAT gateways that match specific criteria.

    See

    AWSEC2DescribeNatGatewaysRequest

    See

    AWSEC2DescribeNatGatewaysResult

    Declaration

    Objective-C

    - (id)describeNatGateways:(nonnull AWSEC2DescribeNatGatewaysRequest *)request;

    Swift

    func describeNatGateways(_ request: AWSEC2DescribeNatGatewaysRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNatGateways service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeNatGatewaysResult.

  • Describes your NAT gateways. The default is to describe all your NAT gateways. Alternatively, you can specify specific NAT gateway IDs or filter the results to include only the NAT gateways that match specific criteria.

    See

    AWSEC2DescribeNatGatewaysRequest

    See

    AWSEC2DescribeNatGatewaysResult

    Declaration

    Objective-C

    - (void)describeNatGateways:(nonnull AWSEC2DescribeNatGatewaysRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeNatGatewaysResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeNatGateways(_ request: AWSEC2DescribeNatGatewaysRequest) async throws -> AWSEC2DescribeNatGatewaysResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNatGateways service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your network ACLs. The default is to describe all your network ACLs. Alternatively, you can specify specific network ACL IDs or filter the results to include only the network ACLs that match specific criteria.

    For more information, see Network ACLs in the Amazon VPC User Guide.

    See

    AWSEC2DescribeNetworkAclsRequest

    See

    AWSEC2DescribeNetworkAclsResult

    Declaration

    Objective-C

    - (id)describeNetworkAcls:(nonnull AWSEC2DescribeNetworkAclsRequest *)request;

    Swift

    func describeNetworkAcls(_ request: AWSEC2DescribeNetworkAclsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkAcls service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeNetworkAclsResult.

  • Describes your network ACLs. The default is to describe all your network ACLs. Alternatively, you can specify specific network ACL IDs or filter the results to include only the network ACLs that match specific criteria.

    For more information, see Network ACLs in the Amazon VPC User Guide.

    See

    AWSEC2DescribeNetworkAclsRequest

    See

    AWSEC2DescribeNetworkAclsResult

    Declaration

    Objective-C

    - (void)describeNetworkAcls:(nonnull AWSEC2DescribeNetworkAclsRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeNetworkAclsResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeNetworkAcls(_ request: AWSEC2DescribeNetworkAclsRequest) async throws -> AWSEC2DescribeNetworkAclsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkAcls service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Network Access Scope analyses.

    See

    AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest

    See

    AWSEC2DescribeNetworkInsightsAccessScopeAnalysesResult

    Declaration

    Objective-C

    - (id)describeNetworkInsightsAccessScopeAnalyses:
        (nonnull AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest *)request;

    Swift

    func describeNetworkInsightsAccessScopeAnalyses(_ request: AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInsightsAccessScopeAnalyses service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeNetworkInsightsAccessScopeAnalysesResult.

  • Describes the specified Network Access Scope analyses.

    See

    AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest

    See

    AWSEC2DescribeNetworkInsightsAccessScopeAnalysesResult

    Declaration

    Objective-C

    - (void)
        describeNetworkInsightsAccessScopeAnalyses:
            (nonnull AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest *)
                request
                                 completionHandler:
                                     (void (^_Nullable)(
                                         AWSEC2DescribeNetworkInsightsAccessScopeAnalysesResult
                                             *_Nullable,
                                         NSError *_Nullable))completionHandler;

    Swift

    func describeNetworkInsightsAccessScopeAnalyses(_ request: AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest) async throws -> AWSEC2DescribeNetworkInsightsAccessScopeAnalysesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInsightsAccessScopeAnalyses service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Network Access Scopes.

    See

    AWSEC2DescribeNetworkInsightsAccessScopesRequest

    See

    AWSEC2DescribeNetworkInsightsAccessScopesResult

    Declaration

    Objective-C

    - (id)describeNetworkInsightsAccessScopes:
        (nonnull AWSEC2DescribeNetworkInsightsAccessScopesRequest *)request;

    Swift

    func describeNetworkInsightsAccessScopes(_ request: AWSEC2DescribeNetworkInsightsAccessScopesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInsightsAccessScopes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeNetworkInsightsAccessScopesResult.

  • Describes the specified Network Access Scopes.

    See

    AWSEC2DescribeNetworkInsightsAccessScopesRequest

    See

    AWSEC2DescribeNetworkInsightsAccessScopesResult

    Declaration

    Objective-C

    - (void)
        describeNetworkInsightsAccessScopes:
            (nonnull AWSEC2DescribeNetworkInsightsAccessScopesRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeNetworkInsightsAccessScopesResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeNetworkInsightsAccessScopes(_ request: AWSEC2DescribeNetworkInsightsAccessScopesRequest) async throws -> AWSEC2DescribeNetworkInsightsAccessScopesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInsightsAccessScopes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more of your network insights analyses.

    See

    AWSEC2DescribeNetworkInsightsAnalysesRequest

    See

    AWSEC2DescribeNetworkInsightsAnalysesResult

    Declaration

    Objective-C

    - (id)describeNetworkInsightsAnalyses:
        (nonnull AWSEC2DescribeNetworkInsightsAnalysesRequest *)request;

    Swift

    func describeNetworkInsightsAnalyses(_ request: AWSEC2DescribeNetworkInsightsAnalysesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInsightsAnalyses service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeNetworkInsightsAnalysesResult.

  • Describes one or more of your network insights analyses.

    See

    AWSEC2DescribeNetworkInsightsAnalysesRequest

    See

    AWSEC2DescribeNetworkInsightsAnalysesResult

    Declaration

    Objective-C

    - (void)describeNetworkInsightsAnalyses:
                (nonnull AWSEC2DescribeNetworkInsightsAnalysesRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeNetworkInsightsAnalysesResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeNetworkInsightsAnalyses(_ request: AWSEC2DescribeNetworkInsightsAnalysesRequest) async throws -> AWSEC2DescribeNetworkInsightsAnalysesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInsightsAnalyses service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more of your paths.

    See

    AWSEC2DescribeNetworkInsightsPathsRequest

    See

    AWSEC2DescribeNetworkInsightsPathsResult

    Declaration

    Objective-C

    - (id)describeNetworkInsightsPaths:
        (nonnull AWSEC2DescribeNetworkInsightsPathsRequest *)request;

    Swift

    func describeNetworkInsightsPaths(_ request: AWSEC2DescribeNetworkInsightsPathsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInsightsPaths service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeNetworkInsightsPathsResult.

  • Describes one or more of your paths.

    See

    AWSEC2DescribeNetworkInsightsPathsRequest

    See

    AWSEC2DescribeNetworkInsightsPathsResult

    Declaration

    Objective-C

    - (void)describeNetworkInsightsPaths:
                (nonnull AWSEC2DescribeNetworkInsightsPathsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeNetworkInsightsPathsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeNetworkInsightsPaths(_ request: AWSEC2DescribeNetworkInsightsPathsRequest) async throws -> AWSEC2DescribeNetworkInsightsPathsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInsightsPaths service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes a network interface attribute. You can specify only one attribute at a time.

    See

    AWSEC2DescribeNetworkInterfaceAttributeRequest

    See

    AWSEC2DescribeNetworkInterfaceAttributeResult

    Declaration

    Objective-C

    - (id)describeNetworkInterfaceAttribute:
        (nonnull AWSEC2DescribeNetworkInterfaceAttributeRequest *)request;

    Swift

    func describeNetworkInterfaceAttribute(_ request: AWSEC2DescribeNetworkInterfaceAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInterfaceAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeNetworkInterfaceAttributeResult.

  • Describes a network interface attribute. You can specify only one attribute at a time.

    See

    AWSEC2DescribeNetworkInterfaceAttributeRequest

    See

    AWSEC2DescribeNetworkInterfaceAttributeResult

    Declaration

    Objective-C

    - (void)describeNetworkInterfaceAttribute:
                (nonnull AWSEC2DescribeNetworkInterfaceAttributeRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DescribeNetworkInterfaceAttributeResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeNetworkInterfaceAttribute(_ request: AWSEC2DescribeNetworkInterfaceAttributeRequest) async throws -> AWSEC2DescribeNetworkInterfaceAttributeResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInterfaceAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the permissions for your network interfaces.

    See

    AWSEC2DescribeNetworkInterfacePermissionsRequest

    See

    AWSEC2DescribeNetworkInterfacePermissionsResult

    Declaration

    Objective-C

    - (id)describeNetworkInterfacePermissions:
        (nonnull AWSEC2DescribeNetworkInterfacePermissionsRequest *)request;

    Swift

    func describeNetworkInterfacePermissions(_ request: AWSEC2DescribeNetworkInterfacePermissionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInterfacePermissions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeNetworkInterfacePermissionsResult.

  • Describes the permissions for your network interfaces.

    See

    AWSEC2DescribeNetworkInterfacePermissionsRequest

    See

    AWSEC2DescribeNetworkInterfacePermissionsResult

    Declaration

    Objective-C

    - (void)
        describeNetworkInterfacePermissions:
            (nonnull AWSEC2DescribeNetworkInterfacePermissionsRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeNetworkInterfacePermissionsResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeNetworkInterfacePermissions(_ request: AWSEC2DescribeNetworkInterfacePermissionsRequest) async throws -> AWSEC2DescribeNetworkInterfacePermissionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInterfacePermissions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more of your network interfaces.

    If you have a large number of network interfaces, the operation fails unless you use pagination or one of the following filters: group-id, mac-address, private-dns-name, private-ip-address, private-dns-name, subnet-id, or vpc-id.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    See

    AWSEC2DescribeNetworkInterfacesRequest

    See

    AWSEC2DescribeNetworkInterfacesResult

    Declaration

    Objective-C

    - (id)describeNetworkInterfaces:
        (nonnull AWSEC2DescribeNetworkInterfacesRequest *)request;

    Swift

    func describeNetworkInterfaces(_ request: AWSEC2DescribeNetworkInterfacesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInterfaces service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeNetworkInterfacesResult.

  • Describes one or more of your network interfaces.

    If you have a large number of network interfaces, the operation fails unless you use pagination or one of the following filters: group-id, mac-address, private-dns-name, private-ip-address, private-dns-name, subnet-id, or vpc-id.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    See

    AWSEC2DescribeNetworkInterfacesRequest

    See

    AWSEC2DescribeNetworkInterfacesResult

    Declaration

    Objective-C

    - (void)describeNetworkInterfaces:
                (nonnull AWSEC2DescribeNetworkInterfacesRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribeNetworkInterfacesResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describeNetworkInterfaces(_ request: AWSEC2DescribeNetworkInterfacesRequest) async throws -> AWSEC2DescribeNetworkInterfacesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeNetworkInterfaces service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified placement groups or all of your placement groups. For more information, see Placement groups in the Amazon EC2 User Guide.

    See

    AWSEC2DescribePlacementGroupsRequest

    See

    AWSEC2DescribePlacementGroupsResult

    Declaration

    Objective-C

    - (id)describePlacementGroups:
        (nonnull AWSEC2DescribePlacementGroupsRequest *)request;

    Swift

    func describePlacementGroups(_ request: AWSEC2DescribePlacementGroupsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribePlacementGroups service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribePlacementGroupsResult.

  • Describes the specified placement groups or all of your placement groups. For more information, see Placement groups in the Amazon EC2 User Guide.

    See

    AWSEC2DescribePlacementGroupsRequest

    See

    AWSEC2DescribePlacementGroupsResult

    Declaration

    Objective-C

    - (void)
        describePlacementGroups:
            (nonnull AWSEC2DescribePlacementGroupsRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribePlacementGroupsResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describePlacementGroups(_ request: AWSEC2DescribePlacementGroupsRequest) async throws -> AWSEC2DescribePlacementGroupsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribePlacementGroups service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes available Amazon Web Services services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service.

    We recommend that you use DescribeManagedPrefixLists instead.

    See

    AWSEC2DescribePrefixListsRequest

    See

    AWSEC2DescribePrefixListsResult

    Declaration

    Objective-C

    - (id)describePrefixLists:(nonnull AWSEC2DescribePrefixListsRequest *)request;

    Swift

    func describePrefixLists(_ request: AWSEC2DescribePrefixListsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribePrefixLists service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribePrefixListsResult.

  • Describes available Amazon Web Services services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service.

    We recommend that you use DescribeManagedPrefixLists instead.

    See

    AWSEC2DescribePrefixListsRequest

    See

    AWSEC2DescribePrefixListsResult

    Declaration

    Objective-C

    - (void)describePrefixLists:(nonnull AWSEC2DescribePrefixListsRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribePrefixListsResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describePrefixLists(_ request: AWSEC2DescribePrefixListsRequest) async throws -> AWSEC2DescribePrefixListsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribePrefixLists service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.

    By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.

    The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    See

    AWSEC2DescribePrincipalIdFormatRequest

    See

    AWSEC2DescribePrincipalIdFormatResult

    Declaration

    Objective-C

    - (id)describePrincipalIdFormat:
        (nonnull AWSEC2DescribePrincipalIdFormatRequest *)request;

    Swift

    func describePrincipalIdFormat(_ request: AWSEC2DescribePrincipalIdFormatRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribePrincipalIdFormat service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribePrincipalIdFormatResult.

  • Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.

    By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.

    The following resource types support longer IDs: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | instance | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | reservation | route-table | route-table-association | security-group | snapshot | subnet | subnet-cidr-block-association | volume | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    See

    AWSEC2DescribePrincipalIdFormatRequest

    See

    AWSEC2DescribePrincipalIdFormatResult

    Declaration

    Objective-C

    - (void)describePrincipalIdFormat:
                (nonnull AWSEC2DescribePrincipalIdFormatRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribePrincipalIdFormatResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describePrincipalIdFormat(_ request: AWSEC2DescribePrincipalIdFormatRequest) async throws -> AWSEC2DescribePrincipalIdFormatResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribePrincipalIdFormat service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified IPv4 address pools.

    See

    AWSEC2DescribePublicIpv4PoolsRequest

    See

    AWSEC2DescribePublicIpv4PoolsResult

    Declaration

    Objective-C

    - (id)describePublicIpv4Pools:
        (nonnull AWSEC2DescribePublicIpv4PoolsRequest *)request;

    Swift

    func describePublicIpv4Pools(_ request: AWSEC2DescribePublicIpv4PoolsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribePublicIpv4Pools service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribePublicIpv4PoolsResult.

  • Describes the specified IPv4 address pools.

    See

    AWSEC2DescribePublicIpv4PoolsRequest

    See

    AWSEC2DescribePublicIpv4PoolsResult

    Declaration

    Objective-C

    - (void)
        describePublicIpv4Pools:
            (nonnull AWSEC2DescribePublicIpv4PoolsRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribePublicIpv4PoolsResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describePublicIpv4Pools(_ request: AWSEC2DescribePublicIpv4PoolsRequest) async throws -> AWSEC2DescribePublicIpv4PoolsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribePublicIpv4Pools service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the Regions that are enabled for your account, or all Regions.

    For a list of the Regions supported by Amazon EC2, see Amazon EC2 service endpoints.

    For information about enabling and disabling Regions for your account, see Specify which Amazon Web Services Regions your account can use in the Amazon Web Services Account Management Reference Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeRegionsRequest

    See

    AWSEC2DescribeRegionsResult

    Declaration

    Objective-C

    - (id)describeRegions:(nonnull AWSEC2DescribeRegionsRequest *)request;

    Swift

    func describeRegions(_ request: AWSEC2DescribeRegionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeRegions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeRegionsResult.

  • Describes the Regions that are enabled for your account, or all Regions.

    For a list of the Regions supported by Amazon EC2, see Amazon EC2 service endpoints.

    For information about enabling and disabling Regions for your account, see Specify which Amazon Web Services Regions your account can use in the Amazon Web Services Account Management Reference Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeRegionsRequest

    See

    AWSEC2DescribeRegionsResult

    Declaration

    Objective-C

    - (void)describeRegions:(nonnull AWSEC2DescribeRegionsRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2DescribeRegionsResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func describeRegions(_ request: AWSEC2DescribeRegionsRequest) async throws -> AWSEC2DescribeRegionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeRegions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes a root volume replacement task. For more information, see Replace a root volume in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeReplaceRootVolumeTasksRequest

    See

    AWSEC2DescribeReplaceRootVolumeTasksResult

    Declaration

    Objective-C

    - (id)describeReplaceRootVolumeTasks:
        (nonnull AWSEC2DescribeReplaceRootVolumeTasksRequest *)request;

    Swift

    func describeReplaceRootVolumeTasks(_ request: AWSEC2DescribeReplaceRootVolumeTasksRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeReplaceRootVolumeTasks service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeReplaceRootVolumeTasksResult.

  • Describes a root volume replacement task. For more information, see Replace a root volume in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeReplaceRootVolumeTasksRequest

    See

    AWSEC2DescribeReplaceRootVolumeTasksResult

    Declaration

    Objective-C

    - (void)
        describeReplaceRootVolumeTasks:
            (nonnull AWSEC2DescribeReplaceRootVolumeTasksRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeReplaceRootVolumeTasksResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeReplaceRootVolumeTasks(_ request: AWSEC2DescribeReplaceRootVolumeTasksRequest) async throws -> AWSEC2DescribeReplaceRootVolumeTasksResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeReplaceRootVolumeTasks service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more of the Reserved Instances that you purchased.

    For more information about Reserved Instances, see Reserved Instances in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeReservedInstancesRequest

    See

    AWSEC2DescribeReservedInstancesResult

    Declaration

    Objective-C

    - (id)describeReservedInstances:
        (nonnull AWSEC2DescribeReservedInstancesRequest *)request;

    Swift

    func describeReservedInstances(_ request: AWSEC2DescribeReservedInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeReservedInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeReservedInstancesResult.

  • Describes one or more of the Reserved Instances that you purchased.

    For more information about Reserved Instances, see Reserved Instances in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeReservedInstancesRequest

    See

    AWSEC2DescribeReservedInstancesResult

    Declaration

    Objective-C

    - (void)describeReservedInstances:
                (nonnull AWSEC2DescribeReservedInstancesRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribeReservedInstancesResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describeReservedInstances(_ request: AWSEC2DescribeReservedInstancesRequest) async throws -> AWSEC2DescribeReservedInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeReservedInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your account’s Reserved Instance listings in the Reserved Instance Marketplace.

    The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

    As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

    As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you’re searching for with what’s available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

    For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeReservedInstancesListingsRequest

    See

    AWSEC2DescribeReservedInstancesListingsResult

    Declaration

    Objective-C

    - (id)describeReservedInstancesListings:
        (nonnull AWSEC2DescribeReservedInstancesListingsRequest *)request;

    Swift

    func describeReservedInstancesListings(_ request: AWSEC2DescribeReservedInstancesListingsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeReservedInstancesListings service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeReservedInstancesListingsResult.

  • Describes your account’s Reserved Instance listings in the Reserved Instance Marketplace.

    The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.

    As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.

    As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you’re searching for with what’s available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.

    For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeReservedInstancesListingsRequest

    See

    AWSEC2DescribeReservedInstancesListingsResult

    Declaration

    Objective-C

    - (void)describeReservedInstancesListings:
                (nonnull AWSEC2DescribeReservedInstancesListingsRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DescribeReservedInstancesListingsResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeReservedInstancesListings(_ request: AWSEC2DescribeReservedInstancesListingsRequest) async throws -> AWSEC2DescribeReservedInstancesListingsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeReservedInstancesListings service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.

    For more information, see Modify Reserved Instances in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeReservedInstancesModificationsRequest

    See

    AWSEC2DescribeReservedInstancesModificationsResult

    Declaration

    Objective-C

    - (id)describeReservedInstancesModifications:
        (nonnull AWSEC2DescribeReservedInstancesModificationsRequest *)request;

    Swift

    func describeReservedInstancesModifications(_ request: AWSEC2DescribeReservedInstancesModificationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeReservedInstancesModifications service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeReservedInstancesModificationsResult.

  • Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.

    For more information, see Modify Reserved Instances in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeReservedInstancesModificationsRequest

    See

    AWSEC2DescribeReservedInstancesModificationsResult

    Declaration

    Objective-C

    - (void)
        describeReservedInstancesModifications:
            (nonnull AWSEC2DescribeReservedInstancesModificationsRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2DescribeReservedInstancesModificationsResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeReservedInstancesModifications(_ request: AWSEC2DescribeReservedInstancesModificationsRequest) async throws -> AWSEC2DescribeReservedInstancesModificationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeReservedInstancesModifications service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.

    If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.

    For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeReservedInstancesOfferingsRequest

    See

    AWSEC2DescribeReservedInstancesOfferingsResult

    Declaration

    Objective-C

    - (id)describeReservedInstancesOfferings:
        (nonnull AWSEC2DescribeReservedInstancesOfferingsRequest *)request;

    Swift

    func describeReservedInstancesOfferings(_ request: AWSEC2DescribeReservedInstancesOfferingsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeReservedInstancesOfferings service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeReservedInstancesOfferingsResult.

  • Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.

    If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.

    For more information, see Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeReservedInstancesOfferingsRequest

    See

    AWSEC2DescribeReservedInstancesOfferingsResult

    Declaration

    Objective-C

    - (void)describeReservedInstancesOfferings:
                (nonnull AWSEC2DescribeReservedInstancesOfferingsRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2DescribeReservedInstancesOfferingsResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeReservedInstancesOfferings(_ request: AWSEC2DescribeReservedInstancesOfferingsRequest) async throws -> AWSEC2DescribeReservedInstancesOfferingsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeReservedInstancesOfferings service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your route tables. The default is to describe all your route tables. Alternatively, you can specify specific route table IDs or filter the results to include only the route tables that match specific criteria.

    Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

    For more information, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2DescribeRouteTablesRequest

    See

    AWSEC2DescribeRouteTablesResult

    Declaration

    Objective-C

    - (id)describeRouteTables:(nonnull AWSEC2DescribeRouteTablesRequest *)request;

    Swift

    func describeRouteTables(_ request: AWSEC2DescribeRouteTablesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeRouteTables service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeRouteTablesResult.

  • Describes your route tables. The default is to describe all your route tables. Alternatively, you can specify specific route table IDs or filter the results to include only the route tables that match specific criteria.

    Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.

    For more information, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2DescribeRouteTablesRequest

    See

    AWSEC2DescribeRouteTablesResult

    Declaration

    Objective-C

    - (void)describeRouteTables:(nonnull AWSEC2DescribeRouteTablesRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeRouteTablesResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeRouteTables(_ request: AWSEC2DescribeRouteTablesRequest) async throws -> AWSEC2DescribeRouteTablesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeRouteTables service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Finds available schedules that meet the specified criteria.

    You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

    After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

    See

    AWSEC2DescribeScheduledInstanceAvailabilityRequest

    See

    AWSEC2DescribeScheduledInstanceAvailabilityResult

    Declaration

    Objective-C

    - (id)describeScheduledInstanceAvailability:
        (nonnull AWSEC2DescribeScheduledInstanceAvailabilityRequest *)request;

    Swift

    func describeScheduledInstanceAvailability(_ request: AWSEC2DescribeScheduledInstanceAvailabilityRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeScheduledInstanceAvailability service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeScheduledInstanceAvailabilityResult.

  • Finds available schedules that meet the specified criteria.

    You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.

    After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.

    See

    AWSEC2DescribeScheduledInstanceAvailabilityRequest

    See

    AWSEC2DescribeScheduledInstanceAvailabilityResult

    Declaration

    Objective-C

    - (void)
        describeScheduledInstanceAvailability:
            (nonnull AWSEC2DescribeScheduledInstanceAvailabilityRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DescribeScheduledInstanceAvailabilityResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeScheduledInstanceAvailability(_ request: AWSEC2DescribeScheduledInstanceAvailabilityRequest) async throws -> AWSEC2DescribeScheduledInstanceAvailabilityResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeScheduledInstanceAvailability service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Scheduled Instances or all your Scheduled Instances.

    See

    AWSEC2DescribeScheduledInstancesRequest

    See

    AWSEC2DescribeScheduledInstancesResult

    Declaration

    Objective-C

    - (id)describeScheduledInstances:
        (nonnull AWSEC2DescribeScheduledInstancesRequest *)request;

    Swift

    func describeScheduledInstances(_ request: AWSEC2DescribeScheduledInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeScheduledInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeScheduledInstancesResult.

  • Describes the specified Scheduled Instances or all your Scheduled Instances.

    See

    AWSEC2DescribeScheduledInstancesRequest

    See

    AWSEC2DescribeScheduledInstancesResult

    Declaration

    Objective-C

    - (void)describeScheduledInstances:
                (nonnull AWSEC2DescribeScheduledInstancesRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeScheduledInstancesResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeScheduledInstances(_ request: AWSEC2DescribeScheduledInstancesRequest) async throws -> AWSEC2DescribeScheduledInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeScheduledInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you’ve specified in this request.

    See

    AWSEC2DescribeSecurityGroupReferencesRequest

    See

    AWSEC2DescribeSecurityGroupReferencesResult

    Declaration

    Objective-C

    - (id)describeSecurityGroupReferences:
        (nonnull AWSEC2DescribeSecurityGroupReferencesRequest *)request;

    Swift

    func describeSecurityGroupReferences(_ request: AWSEC2DescribeSecurityGroupReferencesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSecurityGroupReferences service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSecurityGroupReferencesResult.

  • Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you’ve specified in this request.

    See

    AWSEC2DescribeSecurityGroupReferencesRequest

    See

    AWSEC2DescribeSecurityGroupReferencesResult

    Declaration

    Objective-C

    - (void)describeSecurityGroupReferences:
                (nonnull AWSEC2DescribeSecurityGroupReferencesRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeSecurityGroupReferencesResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeSecurityGroupReferences(_ request: AWSEC2DescribeSecurityGroupReferencesRequest) async throws -> AWSEC2DescribeSecurityGroupReferencesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSecurityGroupReferences service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more of your security group rules.

    See

    AWSEC2DescribeSecurityGroupRulesRequest

    See

    AWSEC2DescribeSecurityGroupRulesResult

    Declaration

    Objective-C

    - (id)describeSecurityGroupRules:
        (nonnull AWSEC2DescribeSecurityGroupRulesRequest *)request;

    Swift

    func describeSecurityGroupRules(_ request: AWSEC2DescribeSecurityGroupRulesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSecurityGroupRules service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSecurityGroupRulesResult.

  • Describes one or more of your security group rules.

    See

    AWSEC2DescribeSecurityGroupRulesRequest

    See

    AWSEC2DescribeSecurityGroupRulesResult

    Declaration

    Objective-C

    - (void)describeSecurityGroupRules:
                (nonnull AWSEC2DescribeSecurityGroupRulesRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeSecurityGroupRulesResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeSecurityGroupRules(_ request: AWSEC2DescribeSecurityGroupRulesRequest) async throws -> AWSEC2DescribeSecurityGroupRulesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSecurityGroupRules service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified security groups or all of your security groups.

    See

    AWSEC2DescribeSecurityGroupsRequest

    See

    AWSEC2DescribeSecurityGroupsResult

    Declaration

    Objective-C

    - (id)describeSecurityGroups:
        (nonnull AWSEC2DescribeSecurityGroupsRequest *)request;

    Swift

    func describeSecurityGroups(_ request: AWSEC2DescribeSecurityGroupsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSecurityGroups service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSecurityGroupsResult.

  • Describes the specified security groups or all of your security groups.

    See

    AWSEC2DescribeSecurityGroupsRequest

    See

    AWSEC2DescribeSecurityGroupsResult

    Declaration

    Objective-C

    - (void)
        describeSecurityGroups:
            (nonnull AWSEC2DescribeSecurityGroupsRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DescribeSecurityGroupsResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeSecurityGroups(_ request: AWSEC2DescribeSecurityGroupsRequest) async throws -> AWSEC2DescribeSecurityGroupsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSecurityGroups service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

    For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon EBS User Guide.

    See

    AWSEC2DescribeSnapshotAttributeRequest

    See

    AWSEC2DescribeSnapshotAttributeResult

    Declaration

    Objective-C

    - (id)describeSnapshotAttribute:
        (nonnull AWSEC2DescribeSnapshotAttributeRequest *)request;

    Swift

    func describeSnapshotAttribute(_ request: AWSEC2DescribeSnapshotAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSnapshotAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSnapshotAttributeResult.

  • Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.

    For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon EBS User Guide.

    See

    AWSEC2DescribeSnapshotAttributeRequest

    See

    AWSEC2DescribeSnapshotAttributeResult

    Declaration

    Objective-C

    - (void)describeSnapshotAttribute:
                (nonnull AWSEC2DescribeSnapshotAttributeRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribeSnapshotAttributeResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describeSnapshotAttribute(_ request: AWSEC2DescribeSnapshotAttributeRequest) async throws -> AWSEC2DescribeSnapshotAttributeResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSnapshotAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the storage tier status of one or more Amazon EBS snapshots.

    See

    AWSEC2DescribeSnapshotTierStatusRequest

    See

    AWSEC2DescribeSnapshotTierStatusResult

    Declaration

    Objective-C

    - (id)describeSnapshotTierStatus:
        (nonnull AWSEC2DescribeSnapshotTierStatusRequest *)request;

    Swift

    func describeSnapshotTierStatus(_ request: AWSEC2DescribeSnapshotTierStatusRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSnapshotTierStatus service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSnapshotTierStatusResult.

  • Describes the storage tier status of one or more Amazon EBS snapshots.

    See

    AWSEC2DescribeSnapshotTierStatusRequest

    See

    AWSEC2DescribeSnapshotTierStatusResult

    Declaration

    Objective-C

    - (void)describeSnapshotTierStatus:
                (nonnull AWSEC2DescribeSnapshotTierStatusRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeSnapshotTierStatusResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeSnapshotTierStatus(_ request: AWSEC2DescribeSnapshotTierStatusRequest) async throws -> AWSEC2DescribeSnapshotTierStatusResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSnapshotTierStatus service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.

    The snapshots available to you include public snapshots, private snapshots that you own, and private snapshots owned by other Amazon Web Services accounts for which you have explicit create volume permissions.

    The create volume permissions fall into the following categories:

    • public: The owner of the snapshot granted create volume permissions for the snapshot to the all group. All Amazon Web Services accounts have create volume permissions for these snapshots.

    • explicit: The owner of the snapshot granted create volume permissions to a specific Amazon Web Services account.

    • implicit: An Amazon Web Services account has implicit create volume permissions for all snapshots it owns.

    The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot owners, or Amazon Web Services accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.

    If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.

    If you specify one or more snapshot owners using the OwnerIds option, only snapshots from the specified owners and for which you have access are returned. The results can include the Amazon Web Services account IDs of the specified owners, amazon for snapshots owned by Amazon, or self for snapshots that you own.

    If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify Amazon Web Services account IDs (if you own the snapshots), self for snapshots for which you own or have explicit permissions, or all for public snapshots.

    If you are describing a long list of snapshots, we recommend that you paginate the output to make the list more manageable. For more information, see Pagination.

    To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

    For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon EBS User Guide.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    See

    AWSEC2DescribeSnapshotsRequest

    See

    AWSEC2DescribeSnapshotsResult

    Declaration

    Objective-C

    - (id)describeSnapshots:(nonnull AWSEC2DescribeSnapshotsRequest *)request;

    Swift

    func describeSnapshots(_ request: AWSEC2DescribeSnapshotsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSnapshots service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSnapshotsResult.

  • Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.

    The snapshots available to you include public snapshots, private snapshots that you own, and private snapshots owned by other Amazon Web Services accounts for which you have explicit create volume permissions.

    The create volume permissions fall into the following categories:

    • public: The owner of the snapshot granted create volume permissions for the snapshot to the all group. All Amazon Web Services accounts have create volume permissions for these snapshots.

    • explicit: The owner of the snapshot granted create volume permissions to a specific Amazon Web Services account.

    • implicit: An Amazon Web Services account has implicit create volume permissions for all snapshots it owns.

    The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot owners, or Amazon Web Services accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.

    If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.

    If you specify one or more snapshot owners using the OwnerIds option, only snapshots from the specified owners and for which you have access are returned. The results can include the Amazon Web Services account IDs of the specified owners, amazon for snapshots owned by Amazon, or self for snapshots that you own.

    If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify Amazon Web Services account IDs (if you own the snapshots), self for snapshots for which you own or have explicit permissions, or all for public snapshots.

    If you are describing a long list of snapshots, we recommend that you paginate the output to make the list more manageable. For more information, see Pagination.

    To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.

    For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon EBS User Guide.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    See

    AWSEC2DescribeSnapshotsRequest

    See

    AWSEC2DescribeSnapshotsResult

    Declaration

    Objective-C

    - (void)describeSnapshots:(nonnull AWSEC2DescribeSnapshotsRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2DescribeSnapshotsResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeSnapshots(_ request: AWSEC2DescribeSnapshotsRequest) async throws -> AWSEC2DescribeSnapshotsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSnapshots service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the data feed for Spot Instances. For more information, see Spot Instance data feed in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeSpotDatafeedSubscriptionRequest

    See

    AWSEC2DescribeSpotDatafeedSubscriptionResult

    Declaration

    Objective-C

    - (id)describeSpotDatafeedSubscription:
        (nonnull AWSEC2DescribeSpotDatafeedSubscriptionRequest *)request;

    Swift

    func describeSpotDatafeedSubscription(_ request: AWSEC2DescribeSpotDatafeedSubscriptionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotDatafeedSubscription service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSpotDatafeedSubscriptionResult.

  • Describes the data feed for Spot Instances. For more information, see Spot Instance data feed in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeSpotDatafeedSubscriptionRequest

    See

    AWSEC2DescribeSpotDatafeedSubscriptionResult

    Declaration

    Objective-C

    - (void)describeSpotDatafeedSubscription:
                (nonnull AWSEC2DescribeSpotDatafeedSubscriptionRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DescribeSpotDatafeedSubscriptionResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeSpotDatafeedSubscription(_ request: AWSEC2DescribeSpotDatafeedSubscriptionRequest) async throws -> AWSEC2DescribeSpotDatafeedSubscriptionResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotDatafeedSubscription service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the running instances for the specified Spot Fleet.

    See

    AWSEC2DescribeSpotFleetInstancesRequest

    See

    AWSEC2DescribeSpotFleetInstancesResponse

    Declaration

    Objective-C

    - (id)describeSpotFleetInstances:
        (nonnull AWSEC2DescribeSpotFleetInstancesRequest *)request;

    Swift

    func describeSpotFleetInstances(_ request: AWSEC2DescribeSpotFleetInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotFleetInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSpotFleetInstancesResponse.

  • Describes the running instances for the specified Spot Fleet.

    See

    AWSEC2DescribeSpotFleetInstancesRequest

    See

    AWSEC2DescribeSpotFleetInstancesResponse

    Declaration

    Objective-C

    - (void)describeSpotFleetInstances:
                (nonnull AWSEC2DescribeSpotFleetInstancesRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeSpotFleetInstancesResponse *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeSpotFleetInstances(_ request: AWSEC2DescribeSpotFleetInstancesRequest) async throws -> AWSEC2DescribeSpotFleetInstancesResponse

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotFleetInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the events for the specified Spot Fleet request during the specified time.

    Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.

    For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeSpotFleetRequestHistoryRequest

    See

    AWSEC2DescribeSpotFleetRequestHistoryResponse

    Declaration

    Objective-C

    - (id)describeSpotFleetRequestHistory:
        (nonnull AWSEC2DescribeSpotFleetRequestHistoryRequest *)request;

    Swift

    func describeSpotFleetRequestHistory(_ request: AWSEC2DescribeSpotFleetRequestHistoryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotFleetRequestHistory service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSpotFleetRequestHistoryResponse.

  • Describes the events for the specified Spot Fleet request during the specified time.

    Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.

    For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeSpotFleetRequestHistoryRequest

    See

    AWSEC2DescribeSpotFleetRequestHistoryResponse

    Declaration

    Objective-C

    - (void)describeSpotFleetRequestHistory:
                (nonnull AWSEC2DescribeSpotFleetRequestHistoryRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeSpotFleetRequestHistoryResponse
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeSpotFleetRequestHistory(_ request: AWSEC2DescribeSpotFleetRequestHistoryRequest) async throws -> AWSEC2DescribeSpotFleetRequestHistoryResponse

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotFleetRequestHistory service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your Spot Fleet requests.

    Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

    See

    AWSEC2DescribeSpotFleetRequestsRequest

    See

    AWSEC2DescribeSpotFleetRequestsResponse

    Declaration

    Objective-C

    - (id)describeSpotFleetRequests:
        (nonnull AWSEC2DescribeSpotFleetRequestsRequest *)request;

    Swift

    func describeSpotFleetRequests(_ request: AWSEC2DescribeSpotFleetRequestsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotFleetRequests service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSpotFleetRequestsResponse.

  • Describes your Spot Fleet requests.

    Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.

    See

    AWSEC2DescribeSpotFleetRequestsRequest

    See

    AWSEC2DescribeSpotFleetRequestsResponse

    Declaration

    Objective-C

    - (void)describeSpotFleetRequests:
                (nonnull AWSEC2DescribeSpotFleetRequestsRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribeSpotFleetRequestsResponse *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describeSpotFleetRequests(_ request: AWSEC2DescribeSpotFleetRequestsRequest) async throws -> AWSEC2DescribeSpotFleetRequestsResponse

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotFleetRequests service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Spot Instance requests.

    You can use DescribeSpotInstanceRequests to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

    We recommend that you set MaxResults to a value between 5 and 1000 to limit the number of items returned. This paginates the output, which makes the list more manageable and returns the items faster. If the list of items exceeds your MaxResults value, then that number of items is returned along with a NextToken value that can be passed to a subsequent DescribeSpotInstanceRequests request to retrieve the remaining items.

    Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.

    See

    AWSEC2DescribeSpotInstanceRequestsRequest

    See

    AWSEC2DescribeSpotInstanceRequestsResult

    Declaration

    Objective-C

    - (id)describeSpotInstanceRequests:
        (nonnull AWSEC2DescribeSpotInstanceRequestsRequest *)request;

    Swift

    func describeSpotInstanceRequests(_ request: AWSEC2DescribeSpotInstanceRequestsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotInstanceRequests service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSpotInstanceRequestsResult.

  • Describes the specified Spot Instance requests.

    You can use DescribeSpotInstanceRequests to find a running Spot Instance by examining the response. If the status of the Spot Instance is fulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle is spot.

    We recommend that you set MaxResults to a value between 5 and 1000 to limit the number of items returned. This paginates the output, which makes the list more manageable and returns the items faster. If the list of items exceeds your MaxResults value, then that number of items is returned along with a NextToken value that can be passed to a subsequent DescribeSpotInstanceRequests request to retrieve the remaining items.

    Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.

    See

    AWSEC2DescribeSpotInstanceRequestsRequest

    See

    AWSEC2DescribeSpotInstanceRequestsResult

    Declaration

    Objective-C

    - (void)describeSpotInstanceRequests:
                (nonnull AWSEC2DescribeSpotInstanceRequestsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeSpotInstanceRequestsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeSpotInstanceRequests(_ request: AWSEC2DescribeSpotInstanceRequestsRequest) async throws -> AWSEC2DescribeSpotInstanceRequestsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotInstanceRequests service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the Spot price history. For more information, see Spot Instance pricing history in the Amazon EC2 User Guide.

    When you specify a start and end time, the operation returns the prices of the instance types within that time range. It also returns the last price change before the start time, which is the effective price as of the start time.

    See

    AWSEC2DescribeSpotPriceHistoryRequest

    See

    AWSEC2DescribeSpotPriceHistoryResult

    Declaration

    Objective-C

    - (id)describeSpotPriceHistory:
        (nonnull AWSEC2DescribeSpotPriceHistoryRequest *)request;

    Swift

    func describeSpotPriceHistory(_ request: AWSEC2DescribeSpotPriceHistoryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotPriceHistory service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSpotPriceHistoryResult.

  • Describes the Spot price history. For more information, see Spot Instance pricing history in the Amazon EC2 User Guide.

    When you specify a start and end time, the operation returns the prices of the instance types within that time range. It also returns the last price change before the start time, which is the effective price as of the start time.

    See

    AWSEC2DescribeSpotPriceHistoryRequest

    See

    AWSEC2DescribeSpotPriceHistoryResult

    Declaration

    Objective-C

    - (void)describeSpotPriceHistory:
                (nonnull AWSEC2DescribeSpotPriceHistoryRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DescribeSpotPriceHistoryResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func describeSpotPriceHistory(_ request: AWSEC2DescribeSpotPriceHistoryRequest) async throws -> AWSEC2DescribeSpotPriceHistoryResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSpotPriceHistory service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in the same VPC or peered VPC. Rules can also be stale if they reference a security group in a peer VPC for which the VPC peering connection has been deleted.

    See

    AWSEC2DescribeStaleSecurityGroupsRequest

    See

    AWSEC2DescribeStaleSecurityGroupsResult

    Declaration

    Objective-C

    - (id)describeStaleSecurityGroups:
        (nonnull AWSEC2DescribeStaleSecurityGroupsRequest *)request;

    Swift

    func describeStaleSecurityGroups(_ request: AWSEC2DescribeStaleSecurityGroupsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeStaleSecurityGroups service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeStaleSecurityGroupsResult.

  • Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in the same VPC or peered VPC. Rules can also be stale if they reference a security group in a peer VPC for which the VPC peering connection has been deleted.

    See

    AWSEC2DescribeStaleSecurityGroupsRequest

    See

    AWSEC2DescribeStaleSecurityGroupsResult

    Declaration

    Objective-C

    - (void)describeStaleSecurityGroups:
                (nonnull AWSEC2DescribeStaleSecurityGroupsRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2DescribeStaleSecurityGroupsResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func describeStaleSecurityGroups(_ request: AWSEC2DescribeStaleSecurityGroupsRequest) async throws -> AWSEC2DescribeStaleSecurityGroupsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeStaleSecurityGroups service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the progress of the AMI store tasks. You can describe the store tasks for specified AMIs. If you don’t specify the AMIs, you get a paginated list of store tasks from the last 31 days.

    For each AMI task, the response indicates if the task is InProgress, Completed, or Failed. For tasks InProgress, the response shows the estimated progress as a percentage.

    Tasks are listed in reverse chronological order. Currently, only tasks from the past 31 days can be viewed.

    To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon EC2 User Guide.

    For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeStoreImageTasksRequest

    See

    AWSEC2DescribeStoreImageTasksResult

    Declaration

    Objective-C

    - (id)describeStoreImageTasks:
        (nonnull AWSEC2DescribeStoreImageTasksRequest *)request;

    Swift

    func describeStoreImageTasks(_ request: AWSEC2DescribeStoreImageTasksRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeStoreImageTasks service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeStoreImageTasksResult.

  • Describes the progress of the AMI store tasks. You can describe the store tasks for specified AMIs. If you don’t specify the AMIs, you get a paginated list of store tasks from the last 31 days.

    For each AMI task, the response indicates if the task is InProgress, Completed, or Failed. For tasks InProgress, the response shows the estimated progress as a percentage.

    Tasks are listed in reverse chronological order. Currently, only tasks from the past 31 days can be viewed.

    To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon EC2 User Guide.

    For more information, see Store and restore an AMI using Amazon S3 in the Amazon EC2 User Guide.

    See

    AWSEC2DescribeStoreImageTasksRequest

    See

    AWSEC2DescribeStoreImageTasksResult

    Declaration

    Objective-C

    - (void)
        describeStoreImageTasks:
            (nonnull AWSEC2DescribeStoreImageTasksRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeStoreImageTasksResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeStoreImageTasks(_ request: AWSEC2DescribeStoreImageTasksRequest) async throws -> AWSEC2DescribeStoreImageTasksResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeStoreImageTasks service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your subnets. The default is to describe all your subnets. Alternatively, you can specify specific subnet IDs or filter the results to include only the subnets that match specific criteria.

    For more information, see Subnets in the Amazon VPC User Guide.

    See

    AWSEC2DescribeSubnetsRequest

    See

    AWSEC2DescribeSubnetsResult

    Declaration

    Objective-C

    - (id)describeSubnets:(nonnull AWSEC2DescribeSubnetsRequest *)request;

    Swift

    func describeSubnets(_ request: AWSEC2DescribeSubnetsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSubnets service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeSubnetsResult.

  • Describes your subnets. The default is to describe all your subnets. Alternatively, you can specify specific subnet IDs or filter the results to include only the subnets that match specific criteria.

    For more information, see Subnets in the Amazon VPC User Guide.

    See

    AWSEC2DescribeSubnetsRequest

    See

    AWSEC2DescribeSubnetsResult

    Declaration

    Objective-C

    - (void)describeSubnets:(nonnull AWSEC2DescribeSubnetsRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2DescribeSubnetsResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func describeSubnets(_ request: AWSEC2DescribeSubnetsRequest) async throws -> AWSEC2DescribeSubnetsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeSubnets service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • 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.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeTagsRequest

    See

    AWSEC2DescribeTagsResult

    Declaration

    Objective-C

    - (id)describeTags:(nonnull AWSEC2DescribeTagsRequest *)request;

    Swift

    func describeTags(_ request: AWSEC2DescribeTagsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTags service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTagsResult.

  • 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.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeTagsRequest

    See

    AWSEC2DescribeTagsResult

    Declaration

    Objective-C

    - (void)describeTags:(nonnull AWSEC2DescribeTagsRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2DescribeTagsResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func describeTags(_ request: AWSEC2DescribeTagsRequest) async throws -> AWSEC2DescribeTagsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTags service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

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

    See

    AWSEC2DescribeTrafficMirrorFilterRulesRequest

    See

    AWSEC2DescribeTrafficMirrorFilterRulesResult

    Declaration

    Objective-C

    - (id)describeTrafficMirrorFilterRules:
        (nonnull AWSEC2DescribeTrafficMirrorFilterRulesRequest *)request;

    Swift

    func describeTrafficMirrorFilterRules(_ request: AWSEC2DescribeTrafficMirrorFilterRulesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTrafficMirrorFilterRules service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTrafficMirrorFilterRulesResult.

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

    See

    AWSEC2DescribeTrafficMirrorFilterRulesRequest

    See

    AWSEC2DescribeTrafficMirrorFilterRulesResult

    Declaration

    Objective-C

    - (void)describeTrafficMirrorFilterRules:
                (nonnull AWSEC2DescribeTrafficMirrorFilterRulesRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DescribeTrafficMirrorFilterRulesResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeTrafficMirrorFilterRules(_ request: AWSEC2DescribeTrafficMirrorFilterRulesRequest) async throws -> AWSEC2DescribeTrafficMirrorFilterRulesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTrafficMirrorFilterRules service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more Traffic Mirror filters.

    See

    AWSEC2DescribeTrafficMirrorFiltersRequest

    See

    AWSEC2DescribeTrafficMirrorFiltersResult

    Declaration

    Objective-C

    - (id)describeTrafficMirrorFilters:
        (nonnull AWSEC2DescribeTrafficMirrorFiltersRequest *)request;

    Swift

    func describeTrafficMirrorFilters(_ request: AWSEC2DescribeTrafficMirrorFiltersRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTrafficMirrorFilters service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTrafficMirrorFiltersResult.

  • Describes one or more Traffic Mirror filters.

    See

    AWSEC2DescribeTrafficMirrorFiltersRequest

    See

    AWSEC2DescribeTrafficMirrorFiltersResult

    Declaration

    Objective-C

    - (void)describeTrafficMirrorFilters:
                (nonnull AWSEC2DescribeTrafficMirrorFiltersRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeTrafficMirrorFiltersResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeTrafficMirrorFilters(_ request: AWSEC2DescribeTrafficMirrorFiltersRequest) async throws -> AWSEC2DescribeTrafficMirrorFiltersResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTrafficMirrorFilters service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeTrafficMirrorSessionsRequest

    See

    AWSEC2DescribeTrafficMirrorSessionsResult

    Declaration

    Objective-C

    - (id)describeTrafficMirrorSessions:
        (nonnull AWSEC2DescribeTrafficMirrorSessionsRequest *)request;

    Swift

    func describeTrafficMirrorSessions(_ request: AWSEC2DescribeTrafficMirrorSessionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTrafficMirrorSessions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTrafficMirrorSessionsResult.

  • Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeTrafficMirrorSessionsRequest

    See

    AWSEC2DescribeTrafficMirrorSessionsResult

    Declaration

    Objective-C

    - (void)
        describeTrafficMirrorSessions:
            (nonnull AWSEC2DescribeTrafficMirrorSessionsRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribeTrafficMirrorSessionsResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describeTrafficMirrorSessions(_ request: AWSEC2DescribeTrafficMirrorSessionsRequest) async throws -> AWSEC2DescribeTrafficMirrorSessionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTrafficMirrorSessions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Information about one or more Traffic Mirror targets.

    See

    AWSEC2DescribeTrafficMirrorTargetsRequest

    See

    AWSEC2DescribeTrafficMirrorTargetsResult

    Declaration

    Objective-C

    - (id)describeTrafficMirrorTargets:
        (nonnull AWSEC2DescribeTrafficMirrorTargetsRequest *)request;

    Swift

    func describeTrafficMirrorTargets(_ request: AWSEC2DescribeTrafficMirrorTargetsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTrafficMirrorTargets service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTrafficMirrorTargetsResult.

  • Information about one or more Traffic Mirror targets.

    See

    AWSEC2DescribeTrafficMirrorTargetsRequest

    See

    AWSEC2DescribeTrafficMirrorTargetsResult

    Declaration

    Objective-C

    - (void)describeTrafficMirrorTargets:
                (nonnull AWSEC2DescribeTrafficMirrorTargetsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeTrafficMirrorTargetsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeTrafficMirrorTargets(_ request: AWSEC2DescribeTrafficMirrorTargetsRequest) async throws -> AWSEC2DescribeTrafficMirrorTargetsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTrafficMirrorTargets service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner.

    See

    AWSEC2DescribeTransitGatewayAttachmentsRequest

    See

    AWSEC2DescribeTransitGatewayAttachmentsResult

    Declaration

    Objective-C

    - (id)describeTransitGatewayAttachments:
        (nonnull AWSEC2DescribeTransitGatewayAttachmentsRequest *)request;

    Swift

    func describeTransitGatewayAttachments(_ request: AWSEC2DescribeTransitGatewayAttachmentsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayAttachments service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTransitGatewayAttachmentsResult.

  • Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner.

    See

    AWSEC2DescribeTransitGatewayAttachmentsRequest

    See

    AWSEC2DescribeTransitGatewayAttachmentsResult

    Declaration

    Objective-C

    - (void)describeTransitGatewayAttachments:
                (nonnull AWSEC2DescribeTransitGatewayAttachmentsRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DescribeTransitGatewayAttachmentsResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeTransitGatewayAttachments(_ request: AWSEC2DescribeTransitGatewayAttachmentsRequest) async throws -> AWSEC2DescribeTransitGatewayAttachmentsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayAttachments service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more Connect peers.

    See

    AWSEC2DescribeTransitGatewayConnectPeersRequest

    See

    AWSEC2DescribeTransitGatewayConnectPeersResult

    Declaration

    Objective-C

    - (id)describeTransitGatewayConnectPeers:
        (nonnull AWSEC2DescribeTransitGatewayConnectPeersRequest *)request;

    Swift

    func describeTransitGatewayConnectPeers(_ request: AWSEC2DescribeTransitGatewayConnectPeersRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayConnectPeers service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTransitGatewayConnectPeersResult.

  • Describes one or more Connect peers.

    See

    AWSEC2DescribeTransitGatewayConnectPeersRequest

    See

    AWSEC2DescribeTransitGatewayConnectPeersResult

    Declaration

    Objective-C

    - (void)describeTransitGatewayConnectPeers:
                (nonnull AWSEC2DescribeTransitGatewayConnectPeersRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2DescribeTransitGatewayConnectPeersResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeTransitGatewayConnectPeers(_ request: AWSEC2DescribeTransitGatewayConnectPeersRequest) async throws -> AWSEC2DescribeTransitGatewayConnectPeersResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayConnectPeers service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more Connect attachments.

    See

    AWSEC2DescribeTransitGatewayConnectsRequest

    See

    AWSEC2DescribeTransitGatewayConnectsResult

    Declaration

    Objective-C

    - (id)describeTransitGatewayConnects:
        (nonnull AWSEC2DescribeTransitGatewayConnectsRequest *)request;

    Swift

    func describeTransitGatewayConnects(_ request: AWSEC2DescribeTransitGatewayConnectsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayConnects service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTransitGatewayConnectsResult.

  • Describes one or more Connect attachments.

    See

    AWSEC2DescribeTransitGatewayConnectsRequest

    See

    AWSEC2DescribeTransitGatewayConnectsResult

    Declaration

    Objective-C

    - (void)
        describeTransitGatewayConnects:
            (nonnull AWSEC2DescribeTransitGatewayConnectsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeTransitGatewayConnectsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeTransitGatewayConnects(_ request: AWSEC2DescribeTransitGatewayConnectsRequest) async throws -> AWSEC2DescribeTransitGatewayConnectsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayConnects service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more transit gateway multicast domains.

    See

    AWSEC2DescribeTransitGatewayMulticastDomainsRequest

    See

    AWSEC2DescribeTransitGatewayMulticastDomainsResult

    Declaration

    Objective-C

    - (id)describeTransitGatewayMulticastDomains:
        (nonnull AWSEC2DescribeTransitGatewayMulticastDomainsRequest *)request;

    Swift

    func describeTransitGatewayMulticastDomains(_ request: AWSEC2DescribeTransitGatewayMulticastDomainsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayMulticastDomains service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTransitGatewayMulticastDomainsResult.

  • Describes one or more transit gateway multicast domains.

    See

    AWSEC2DescribeTransitGatewayMulticastDomainsRequest

    See

    AWSEC2DescribeTransitGatewayMulticastDomainsResult

    Declaration

    Objective-C

    - (void)
        describeTransitGatewayMulticastDomains:
            (nonnull AWSEC2DescribeTransitGatewayMulticastDomainsRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2DescribeTransitGatewayMulticastDomainsResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeTransitGatewayMulticastDomains(_ request: AWSEC2DescribeTransitGatewayMulticastDomainsRequest) async throws -> AWSEC2DescribeTransitGatewayMulticastDomainsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayMulticastDomains service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your transit gateway peering attachments.

    See

    AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest

    See

    AWSEC2DescribeTransitGatewayPeeringAttachmentsResult

    Declaration

    Objective-C

    - (id)describeTransitGatewayPeeringAttachments:
        (nonnull AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest *)request;

    Swift

    func describeTransitGatewayPeeringAttachments(_ request: AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayPeeringAttachments service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTransitGatewayPeeringAttachmentsResult.

  • Describes your transit gateway peering attachments.

    See

    AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest

    See

    AWSEC2DescribeTransitGatewayPeeringAttachmentsResult

    Declaration

    Objective-C

    - (void)
        describeTransitGatewayPeeringAttachments:
            (nonnull AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest *)request
                               completionHandler:
                                   (void (^_Nullable)(
                                       AWSEC2DescribeTransitGatewayPeeringAttachmentsResult
                                           *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func describeTransitGatewayPeeringAttachments(_ request: AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest) async throws -> AWSEC2DescribeTransitGatewayPeeringAttachmentsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayPeeringAttachments service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more transit gateway route policy tables.

    See

    AWSEC2DescribeTransitGatewayPolicyTablesRequest

    See

    AWSEC2DescribeTransitGatewayPolicyTablesResult

    Declaration

    Objective-C

    - (id)describeTransitGatewayPolicyTables:
        (nonnull AWSEC2DescribeTransitGatewayPolicyTablesRequest *)request;

    Swift

    func describeTransitGatewayPolicyTables(_ request: AWSEC2DescribeTransitGatewayPolicyTablesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayPolicyTables service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTransitGatewayPolicyTablesResult.

  • Describes one or more transit gateway route policy tables.

    See

    AWSEC2DescribeTransitGatewayPolicyTablesRequest

    See

    AWSEC2DescribeTransitGatewayPolicyTablesResult

    Declaration

    Objective-C

    - (void)describeTransitGatewayPolicyTables:
                (nonnull AWSEC2DescribeTransitGatewayPolicyTablesRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2DescribeTransitGatewayPolicyTablesResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeTransitGatewayPolicyTables(_ request: AWSEC2DescribeTransitGatewayPolicyTablesRequest) async throws -> AWSEC2DescribeTransitGatewayPolicyTablesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayPolicyTables service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more transit gateway route table advertisements.

    See

    AWSEC2DescribeTransitGatewayRouteTableAnnouncementsRequest

    See

    AWSEC2DescribeTransitGatewayRouteTableAnnouncementsResult

    Declaration

    Objective-C

    - (id)describeTransitGatewayRouteTableAnnouncements:
        (nonnull AWSEC2DescribeTransitGatewayRouteTableAnnouncementsRequest *)
            request;

    Swift

    func describeTransitGatewayRouteTableAnnouncements(_ request: AWSEC2DescribeTransitGatewayRouteTableAnnouncementsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayRouteTableAnnouncements service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTransitGatewayRouteTableAnnouncementsResult.

  • Describes one or more transit gateway route table advertisements.

    See

    AWSEC2DescribeTransitGatewayRouteTableAnnouncementsRequest

    See

    AWSEC2DescribeTransitGatewayRouteTableAnnouncementsResult

    Declaration

    Objective-C

    - (void)
        describeTransitGatewayRouteTableAnnouncements:
            (nonnull AWSEC2DescribeTransitGatewayRouteTableAnnouncementsRequest *)
                request
                                    completionHandler:
                                        (void (^_Nullable)(
                                            AWSEC2DescribeTransitGatewayRouteTableAnnouncementsResult
                                                *_Nullable,
                                            NSError *_Nullable))completionHandler;

    Swift

    func describeTransitGatewayRouteTableAnnouncements(_ request: AWSEC2DescribeTransitGatewayRouteTableAnnouncementsRequest) async throws -> AWSEC2DescribeTransitGatewayRouteTableAnnouncementsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayRouteTableAnnouncements service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeTransitGatewayRouteTablesRequest

    See

    AWSEC2DescribeTransitGatewayRouteTablesResult

    Declaration

    Objective-C

    - (id)describeTransitGatewayRouteTables:
        (nonnull AWSEC2DescribeTransitGatewayRouteTablesRequest *)request;

    Swift

    func describeTransitGatewayRouteTables(_ request: AWSEC2DescribeTransitGatewayRouteTablesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayRouteTables service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTransitGatewayRouteTablesResult.

  • Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeTransitGatewayRouteTablesRequest

    See

    AWSEC2DescribeTransitGatewayRouteTablesResult

    Declaration

    Objective-C

    - (void)describeTransitGatewayRouteTables:
                (nonnull AWSEC2DescribeTransitGatewayRouteTablesRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DescribeTransitGatewayRouteTablesResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeTransitGatewayRouteTables(_ request: AWSEC2DescribeTransitGatewayRouteTablesRequest) async throws -> AWSEC2DescribeTransitGatewayRouteTablesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayRouteTables service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeTransitGatewayVpcAttachmentsRequest

    See

    AWSEC2DescribeTransitGatewayVpcAttachmentsResult

    Declaration

    Objective-C

    - (id)describeTransitGatewayVpcAttachments:
        (nonnull AWSEC2DescribeTransitGatewayVpcAttachmentsRequest *)request;

    Swift

    func describeTransitGatewayVpcAttachments(_ request: AWSEC2DescribeTransitGatewayVpcAttachmentsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayVpcAttachments service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTransitGatewayVpcAttachmentsResult.

  • Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeTransitGatewayVpcAttachmentsRequest

    See

    AWSEC2DescribeTransitGatewayVpcAttachmentsResult

    Declaration

    Objective-C

    - (void)
        describeTransitGatewayVpcAttachments:
            (nonnull AWSEC2DescribeTransitGatewayVpcAttachmentsRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DescribeTransitGatewayVpcAttachmentsResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeTransitGatewayVpcAttachments(_ request: AWSEC2DescribeTransitGatewayVpcAttachmentsRequest) async throws -> AWSEC2DescribeTransitGatewayVpcAttachmentsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGatewayVpcAttachments service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeTransitGatewaysRequest

    See

    AWSEC2DescribeTransitGatewaysResult

    Declaration

    Objective-C

    - (id)describeTransitGateways:
        (nonnull AWSEC2DescribeTransitGatewaysRequest *)request;

    Swift

    func describeTransitGateways(_ request: AWSEC2DescribeTransitGatewaysRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGateways service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTransitGatewaysResult.

  • Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results.

    See

    AWSEC2DescribeTransitGatewaysRequest

    See

    AWSEC2DescribeTransitGatewaysResult

    Declaration

    Objective-C

    - (void)
        describeTransitGateways:
            (nonnull AWSEC2DescribeTransitGatewaysRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeTransitGatewaysResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeTransitGateways(_ request: AWSEC2DescribeTransitGatewaysRequest) async throws -> AWSEC2DescribeTransitGatewaysResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTransitGateways service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more network interface trunk associations.

    See

    AWSEC2DescribeTrunkInterfaceAssociationsRequest

    See

    AWSEC2DescribeTrunkInterfaceAssociationsResult

    Declaration

    Objective-C

    - (id)describeTrunkInterfaceAssociations:
        (nonnull AWSEC2DescribeTrunkInterfaceAssociationsRequest *)request;

    Swift

    func describeTrunkInterfaceAssociations(_ request: AWSEC2DescribeTrunkInterfaceAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTrunkInterfaceAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeTrunkInterfaceAssociationsResult.

  • Describes one or more network interface trunk associations.

    See

    AWSEC2DescribeTrunkInterfaceAssociationsRequest

    See

    AWSEC2DescribeTrunkInterfaceAssociationsResult

    Declaration

    Objective-C

    - (void)describeTrunkInterfaceAssociations:
                (nonnull AWSEC2DescribeTrunkInterfaceAssociationsRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2DescribeTrunkInterfaceAssociationsResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeTrunkInterfaceAssociations(_ request: AWSEC2DescribeTrunkInterfaceAssociationsRequest) async throws -> AWSEC2DescribeTrunkInterfaceAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeTrunkInterfaceAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Amazon Web Services Verified Access endpoints.

    See

    AWSEC2DescribeVerifiedAccessEndpointsRequest

    See

    AWSEC2DescribeVerifiedAccessEndpointsResult

    Declaration

    Objective-C

    - (id)describeVerifiedAccessEndpoints:
        (nonnull AWSEC2DescribeVerifiedAccessEndpointsRequest *)request;

    Swift

    func describeVerifiedAccessEndpoints(_ request: AWSEC2DescribeVerifiedAccessEndpointsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVerifiedAccessEndpoints service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVerifiedAccessEndpointsResult.

  • Describes the specified Amazon Web Services Verified Access endpoints.

    See

    AWSEC2DescribeVerifiedAccessEndpointsRequest

    See

    AWSEC2DescribeVerifiedAccessEndpointsResult

    Declaration

    Objective-C

    - (void)describeVerifiedAccessEndpoints:
                (nonnull AWSEC2DescribeVerifiedAccessEndpointsRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeVerifiedAccessEndpointsResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeVerifiedAccessEndpoints(_ request: AWSEC2DescribeVerifiedAccessEndpointsRequest) async throws -> AWSEC2DescribeVerifiedAccessEndpointsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVerifiedAccessEndpoints service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Verified Access groups.

    See

    AWSEC2DescribeVerifiedAccessGroupsRequest

    See

    AWSEC2DescribeVerifiedAccessGroupsResult

    Declaration

    Objective-C

    - (id)describeVerifiedAccessGroups:
        (nonnull AWSEC2DescribeVerifiedAccessGroupsRequest *)request;

    Swift

    func describeVerifiedAccessGroups(_ request: AWSEC2DescribeVerifiedAccessGroupsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVerifiedAccessGroups service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVerifiedAccessGroupsResult.

  • Describes the specified Verified Access groups.

    See

    AWSEC2DescribeVerifiedAccessGroupsRequest

    See

    AWSEC2DescribeVerifiedAccessGroupsResult

    Declaration

    Objective-C

    - (void)describeVerifiedAccessGroups:
                (nonnull AWSEC2DescribeVerifiedAccessGroupsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeVerifiedAccessGroupsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeVerifiedAccessGroups(_ request: AWSEC2DescribeVerifiedAccessGroupsRequest) async throws -> AWSEC2DescribeVerifiedAccessGroupsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVerifiedAccessGroups service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Amazon Web Services Verified Access instances.

    See

    AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsRequest

    See

    AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsResult

    Declaration

    Objective-C

    - (id)describeVerifiedAccessInstanceLoggingConfigurations:
        (nonnull AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsRequest *)
            request;

    Swift

    func describeVerifiedAccessInstanceLoggingConfigurations(_ request: AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVerifiedAccessInstanceLoggingConfigurations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsResult.

  • Describes the specified Amazon Web Services Verified Access instances.

    See

    AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsRequest

    See

    AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsResult

    Declaration

    Objective-C

    - (void)
        describeVerifiedAccessInstanceLoggingConfigurations:
            (nonnull
                 AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsRequest *)
                request
                                          completionHandler:
                                              (void (^_Nullable)(
                                                  AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsResult
                                                      *_Nullable,
                                                  NSError *_Nullable))
                                                  completionHandler;

    Swift

    func describeVerifiedAccessInstanceLoggingConfigurations(_ request: AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsRequest) async throws -> AWSEC2DescribeVerifiedAccessInstanceLoggingConfigurationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVerifiedAccessInstanceLoggingConfigurations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Amazon Web Services Verified Access instances.

    See

    AWSEC2DescribeVerifiedAccessInstancesRequest

    See

    AWSEC2DescribeVerifiedAccessInstancesResult

    Declaration

    Objective-C

    - (id)describeVerifiedAccessInstances:
        (nonnull AWSEC2DescribeVerifiedAccessInstancesRequest *)request;

    Swift

    func describeVerifiedAccessInstances(_ request: AWSEC2DescribeVerifiedAccessInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVerifiedAccessInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVerifiedAccessInstancesResult.

  • Describes the specified Amazon Web Services Verified Access instances.

    See

    AWSEC2DescribeVerifiedAccessInstancesRequest

    See

    AWSEC2DescribeVerifiedAccessInstancesResult

    Declaration

    Objective-C

    - (void)describeVerifiedAccessInstances:
                (nonnull AWSEC2DescribeVerifiedAccessInstancesRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DescribeVerifiedAccessInstancesResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func describeVerifiedAccessInstances(_ request: AWSEC2DescribeVerifiedAccessInstancesRequest) async throws -> AWSEC2DescribeVerifiedAccessInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVerifiedAccessInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified Amazon Web Services Verified Access trust providers.

    See

    AWSEC2DescribeVerifiedAccessTrustProvidersRequest

    See

    AWSEC2DescribeVerifiedAccessTrustProvidersResult

    Declaration

    Objective-C

    - (id)describeVerifiedAccessTrustProviders:
        (nonnull AWSEC2DescribeVerifiedAccessTrustProvidersRequest *)request;

    Swift

    func describeVerifiedAccessTrustProviders(_ request: AWSEC2DescribeVerifiedAccessTrustProvidersRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVerifiedAccessTrustProviders service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVerifiedAccessTrustProvidersResult.

  • Describes the specified Amazon Web Services Verified Access trust providers.

    See

    AWSEC2DescribeVerifiedAccessTrustProvidersRequest

    See

    AWSEC2DescribeVerifiedAccessTrustProvidersResult

    Declaration

    Objective-C

    - (void)
        describeVerifiedAccessTrustProviders:
            (nonnull AWSEC2DescribeVerifiedAccessTrustProvidersRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DescribeVerifiedAccessTrustProvidersResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeVerifiedAccessTrustProviders(_ request: AWSEC2DescribeVerifiedAccessTrustProvidersRequest) async throws -> AWSEC2DescribeVerifiedAccessTrustProvidersResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVerifiedAccessTrustProviders service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

    For more information about EBS volumes, see Amazon EBS volumes in the Amazon EBS User Guide.

    See

    AWSEC2DescribeVolumeAttributeRequest

    See

    AWSEC2DescribeVolumeAttributeResult

    Declaration

    Objective-C

    - (id)describeVolumeAttribute:
        (nonnull AWSEC2DescribeVolumeAttributeRequest *)request;

    Swift

    func describeVolumeAttribute(_ request: AWSEC2DescribeVolumeAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVolumeAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVolumeAttributeResult.

  • Describes the specified attribute of the specified volume. You can specify only one attribute at a time.

    For more information about EBS volumes, see Amazon EBS volumes in the Amazon EBS User Guide.

    See

    AWSEC2DescribeVolumeAttributeRequest

    See

    AWSEC2DescribeVolumeAttributeResult

    Declaration

    Objective-C

    - (void)
        describeVolumeAttribute:
            (nonnull AWSEC2DescribeVolumeAttributeRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeVolumeAttributeResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeVolumeAttribute(_ request: AWSEC2DescribeVolumeAttributeRequest) async throws -> AWSEC2DescribeVolumeAttributeResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVolumeAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume’s underlying host. If the volume’s underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.

    The DescribeVolumeStatus operation provides the following information about the specified volumes:

    Status: Reflects the current status of the volume. The possible values are ok, impaired , warning, or insufficient-data. If all checks pass, the overall status of the volume is ok. If the check fails, the overall status is impaired. If the status is insufficient-data, then the checks might still be taking place on your volume at the time. We recommend that you retry the request. For more information about volume status, see Monitor the status of your volumes in the Amazon EBS User Guide.

    Events: Reflect the cause of a volume status and might require you to take action. For example, if your volume returns an impaired status, then the volume event might be potential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and might have inconsistent data.

    Actions: Reflect the actions you might have to take in response to an event. For example, if the status of the volume is impaired and the volume event shows potential-data-inconsistency, then the action shows enable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.

    Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the error state (for example, when a volume is incapable of accepting I/O.)

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeVolumeStatusRequest

    See

    AWSEC2DescribeVolumeStatusResult

    Declaration

    Objective-C

    - (id)describeVolumeStatus:(nonnull AWSEC2DescribeVolumeStatusRequest *)request;

    Swift

    func describeVolumeStatus(_ request: AWSEC2DescribeVolumeStatusRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVolumeStatus service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVolumeStatusResult.

  • Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume’s underlying host. If the volume’s underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.

    The DescribeVolumeStatus operation provides the following information about the specified volumes:

    Status: Reflects the current status of the volume. The possible values are ok, impaired , warning, or insufficient-data. If all checks pass, the overall status of the volume is ok. If the check fails, the overall status is impaired. If the status is insufficient-data, then the checks might still be taking place on your volume at the time. We recommend that you retry the request. For more information about volume status, see Monitor the status of your volumes in the Amazon EBS User Guide.

    Events: Reflect the cause of a volume status and might require you to take action. For example, if your volume returns an impaired status, then the volume event might be potential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and might have inconsistent data.

    Actions: Reflect the actions you might have to take in response to an event. For example, if the status of the volume is impaired and the volume event shows potential-data-inconsistency, then the action shows enable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.

    Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the error state (for example, when a volume is incapable of accepting I/O.)

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeVolumeStatusRequest

    See

    AWSEC2DescribeVolumeStatusResult

    Declaration

    Objective-C

    - (void)describeVolumeStatus:
                (nonnull AWSEC2DescribeVolumeStatusRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DescribeVolumeStatusResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func describeVolumeStatus(_ request: AWSEC2DescribeVolumeStatusRequest) async throws -> AWSEC2DescribeVolumeStatusResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVolumeStatus service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified EBS volumes or all of your EBS volumes.

    If you are describing a long list of volumes, we recommend that you paginate the output to make the list more manageable. For more information, see Pagination.

    For more information about EBS volumes, see Amazon EBS volumes in the Amazon EBS User Guide.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeVolumesRequest

    See

    AWSEC2DescribeVolumesResult

    Declaration

    Objective-C

    - (id)describeVolumes:(nonnull AWSEC2DescribeVolumesRequest *)request;

    Swift

    func describeVolumes(_ request: AWSEC2DescribeVolumesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVolumes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVolumesResult.

  • Describes the specified EBS volumes or all of your EBS volumes.

    If you are describing a long list of volumes, we recommend that you paginate the output to make the list more manageable. For more information, see Pagination.

    For more information about EBS volumes, see Amazon EBS volumes in the Amazon EBS User Guide.

    We strongly recommend using only paginated requests. Unpaginated requests are susceptible to throttling and timeouts.

    The order of the elements in the response, including those within nested structures, might vary. Applications should not assume the elements appear in a particular order.

    See

    AWSEC2DescribeVolumesRequest

    See

    AWSEC2DescribeVolumesResult

    Declaration

    Objective-C

    - (void)describeVolumes:(nonnull AWSEC2DescribeVolumesRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2DescribeVolumesResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func describeVolumes(_ request: AWSEC2DescribeVolumesRequest) async throws -> AWSEC2DescribeVolumesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVolumes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the most recent volume modification request for the specified EBS volumes.

    If a volume has never been modified, some information in the output will be null. If a volume has been modified more than once, the output includes only the most recent modification request.

    For more information, see Monitor the progress of volume modifications in the Amazon EBS User Guide.

    See

    AWSEC2DescribeVolumesModificationsRequest

    See

    AWSEC2DescribeVolumesModificationsResult

    Declaration

    Objective-C

    - (id)describeVolumesModifications:
        (nonnull AWSEC2DescribeVolumesModificationsRequest *)request;

    Swift

    func describeVolumesModifications(_ request: AWSEC2DescribeVolumesModificationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVolumesModifications service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVolumesModificationsResult.

  • Describes the most recent volume modification request for the specified EBS volumes.

    If a volume has never been modified, some information in the output will be null. If a volume has been modified more than once, the output includes only the most recent modification request.

    For more information, see Monitor the progress of volume modifications in the Amazon EBS User Guide.

    See

    AWSEC2DescribeVolumesModificationsRequest

    See

    AWSEC2DescribeVolumesModificationsResult

    Declaration

    Objective-C

    - (void)describeVolumesModifications:
                (nonnull AWSEC2DescribeVolumesModificationsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2DescribeVolumesModificationsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func describeVolumesModifications(_ request: AWSEC2DescribeVolumesModificationsRequest) async throws -> AWSEC2DescribeVolumesModificationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVolumesModifications service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.

    See

    AWSEC2DescribeVpcAttributeRequest

    See

    AWSEC2DescribeVpcAttributeResult

    Declaration

    Objective-C

    - (id)describeVpcAttribute:(nonnull AWSEC2DescribeVpcAttributeRequest *)request;

    Swift

    func describeVpcAttribute(_ request: AWSEC2DescribeVpcAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcAttributeResult.

  • Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.

    See

    AWSEC2DescribeVpcAttributeRequest

    See

    AWSEC2DescribeVpcAttributeResult

    Declaration

    Objective-C

    - (void)describeVpcAttribute:
                (nonnull AWSEC2DescribeVpcAttributeRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DescribeVpcAttributeResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func describeVpcAttribute(_ request: AWSEC2DescribeVpcAttributeRequest) async throws -> AWSEC2DescribeVpcAttributeResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Describes the ClassicLink status of the specified VPCs.

    See

    AWSEC2DescribeVpcClassicLinkRequest

    See

    AWSEC2DescribeVpcClassicLinkResult

    Declaration

    Objective-C

    - (id)describeVpcClassicLink:
        (nonnull AWSEC2DescribeVpcClassicLinkRequest *)request;

    Swift

    func describeVpcClassicLink(_ request: AWSEC2DescribeVpcClassicLinkRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcClassicLink service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcClassicLinkResult.

  • This action is deprecated.

    Describes the ClassicLink status of the specified VPCs.

    See

    AWSEC2DescribeVpcClassicLinkRequest

    See

    AWSEC2DescribeVpcClassicLinkResult

    Declaration

    Objective-C

    - (void)
        describeVpcClassicLink:
            (nonnull AWSEC2DescribeVpcClassicLinkRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DescribeVpcClassicLinkResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeVpcClassicLink(_ request: AWSEC2DescribeVpcClassicLinkRequest) async throws -> AWSEC2DescribeVpcClassicLinkResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcClassicLink service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it’s linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance.

    See

    AWSEC2DescribeVpcClassicLinkDnsSupportRequest

    See

    AWSEC2DescribeVpcClassicLinkDnsSupportResult

    Declaration

    Objective-C

    - (id)describeVpcClassicLinkDnsSupport:
        (nonnull AWSEC2DescribeVpcClassicLinkDnsSupportRequest *)request;

    Swift

    func describeVpcClassicLinkDnsSupport(_ request: AWSEC2DescribeVpcClassicLinkDnsSupportRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcClassicLinkDnsSupport service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcClassicLinkDnsSupportResult.

  • This action is deprecated.

    Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it’s linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance.

    See

    AWSEC2DescribeVpcClassicLinkDnsSupportRequest

    See

    AWSEC2DescribeVpcClassicLinkDnsSupportResult

    Declaration

    Objective-C

    - (void)describeVpcClassicLinkDnsSupport:
                (nonnull AWSEC2DescribeVpcClassicLinkDnsSupportRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DescribeVpcClassicLinkDnsSupportResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func describeVpcClassicLinkDnsSupport(_ request: AWSEC2DescribeVpcClassicLinkDnsSupportRequest) async throws -> AWSEC2DescribeVpcClassicLinkDnsSupportResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcClassicLinkDnsSupport service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the connection notifications for VPC endpoints and VPC endpoint services.

    See

    AWSEC2DescribeVpcEndpointConnectionNotificationsRequest

    See

    AWSEC2DescribeVpcEndpointConnectionNotificationsResult

    Declaration

    Objective-C

    - (id)describeVpcEndpointConnectionNotifications:
        (nonnull AWSEC2DescribeVpcEndpointConnectionNotificationsRequest *)request;

    Swift

    func describeVpcEndpointConnectionNotifications(_ request: AWSEC2DescribeVpcEndpointConnectionNotificationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpointConnectionNotifications service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcEndpointConnectionNotificationsResult.

  • Describes the connection notifications for VPC endpoints and VPC endpoint services.

    See

    AWSEC2DescribeVpcEndpointConnectionNotificationsRequest

    See

    AWSEC2DescribeVpcEndpointConnectionNotificationsResult

    Declaration

    Objective-C

    - (void)
        describeVpcEndpointConnectionNotifications:
            (nonnull AWSEC2DescribeVpcEndpointConnectionNotificationsRequest *)
                request
                                 completionHandler:
                                     (void (^_Nullable)(
                                         AWSEC2DescribeVpcEndpointConnectionNotificationsResult
                                             *_Nullable,
                                         NSError *_Nullable))completionHandler;

    Swift

    func describeVpcEndpointConnectionNotifications(_ request: AWSEC2DescribeVpcEndpointConnectionNotificationsRequest) async throws -> AWSEC2DescribeVpcEndpointConnectionNotificationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpointConnectionNotifications service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.

    See

    AWSEC2DescribeVpcEndpointConnectionsRequest

    See

    AWSEC2DescribeVpcEndpointConnectionsResult

    Declaration

    Objective-C

    - (id)describeVpcEndpointConnections:
        (nonnull AWSEC2DescribeVpcEndpointConnectionsRequest *)request;

    Swift

    func describeVpcEndpointConnections(_ request: AWSEC2DescribeVpcEndpointConnectionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpointConnections service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcEndpointConnectionsResult.

  • Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.

    See

    AWSEC2DescribeVpcEndpointConnectionsRequest

    See

    AWSEC2DescribeVpcEndpointConnectionsResult

    Declaration

    Objective-C

    - (void)
        describeVpcEndpointConnections:
            (nonnull AWSEC2DescribeVpcEndpointConnectionsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DescribeVpcEndpointConnectionsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func describeVpcEndpointConnections(_ request: AWSEC2DescribeVpcEndpointConnectionsRequest) async throws -> AWSEC2DescribeVpcEndpointConnectionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpointConnections service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the VPC endpoint service configurations in your account (your services).

    See

    AWSEC2DescribeVpcEndpointServiceConfigurationsRequest

    See

    AWSEC2DescribeVpcEndpointServiceConfigurationsResult

    Declaration

    Objective-C

    - (id)describeVpcEndpointServiceConfigurations:
        (nonnull AWSEC2DescribeVpcEndpointServiceConfigurationsRequest *)request;

    Swift

    func describeVpcEndpointServiceConfigurations(_ request: AWSEC2DescribeVpcEndpointServiceConfigurationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpointServiceConfigurations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcEndpointServiceConfigurationsResult.

  • Describes the VPC endpoint service configurations in your account (your services).

    See

    AWSEC2DescribeVpcEndpointServiceConfigurationsRequest

    See

    AWSEC2DescribeVpcEndpointServiceConfigurationsResult

    Declaration

    Objective-C

    - (void)
        describeVpcEndpointServiceConfigurations:
            (nonnull AWSEC2DescribeVpcEndpointServiceConfigurationsRequest *)request
                               completionHandler:
                                   (void (^_Nullable)(
                                       AWSEC2DescribeVpcEndpointServiceConfigurationsResult
                                           *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func describeVpcEndpointServiceConfigurations(_ request: AWSEC2DescribeVpcEndpointServiceConfigurationsRequest) async throws -> AWSEC2DescribeVpcEndpointServiceConfigurationsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpointServiceConfigurations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the principals (service consumers) that are permitted to discover your VPC endpoint service.

    See

    AWSEC2DescribeVpcEndpointServicePermissionsRequest

    See

    AWSEC2DescribeVpcEndpointServicePermissionsResult

    Declaration

    Objective-C

    - (id)describeVpcEndpointServicePermissions:
        (nonnull AWSEC2DescribeVpcEndpointServicePermissionsRequest *)request;

    Swift

    func describeVpcEndpointServicePermissions(_ request: AWSEC2DescribeVpcEndpointServicePermissionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpointServicePermissions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcEndpointServicePermissionsResult.

  • Describes the principals (service consumers) that are permitted to discover your VPC endpoint service.

    See

    AWSEC2DescribeVpcEndpointServicePermissionsRequest

    See

    AWSEC2DescribeVpcEndpointServicePermissionsResult

    Declaration

    Objective-C

    - (void)
        describeVpcEndpointServicePermissions:
            (nonnull AWSEC2DescribeVpcEndpointServicePermissionsRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DescribeVpcEndpointServicePermissionsResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeVpcEndpointServicePermissions(_ request: AWSEC2DescribeVpcEndpointServicePermissionsRequest) async throws -> AWSEC2DescribeVpcEndpointServicePermissionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpointServicePermissions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes available services to which you can create a VPC endpoint.

    When the service provider and the consumer have different accounts in multiple Availability Zones, and the consumer views the VPC endpoint service information, the response only includes the common Availability Zones. For example, when the service provider account uses us-east-1a and us-east-1c and the consumer uses us-east-1a and us-east-1b, the response includes the VPC endpoint services in the common Availability Zone, us-east-1a.

    See

    AWSEC2DescribeVpcEndpointServicesRequest

    See

    AWSEC2DescribeVpcEndpointServicesResult

    Declaration

    Objective-C

    - (id)describeVpcEndpointServices:
        (nonnull AWSEC2DescribeVpcEndpointServicesRequest *)request;

    Swift

    func describeVpcEndpointServices(_ request: AWSEC2DescribeVpcEndpointServicesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpointServices service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcEndpointServicesResult.

  • Describes available services to which you can create a VPC endpoint.

    When the service provider and the consumer have different accounts in multiple Availability Zones, and the consumer views the VPC endpoint service information, the response only includes the common Availability Zones. For example, when the service provider account uses us-east-1a and us-east-1c and the consumer uses us-east-1a and us-east-1b, the response includes the VPC endpoint services in the common Availability Zone, us-east-1a.

    See

    AWSEC2DescribeVpcEndpointServicesRequest

    See

    AWSEC2DescribeVpcEndpointServicesResult

    Declaration

    Objective-C

    - (void)describeVpcEndpointServices:
                (nonnull AWSEC2DescribeVpcEndpointServicesRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2DescribeVpcEndpointServicesResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func describeVpcEndpointServices(_ request: AWSEC2DescribeVpcEndpointServicesRequest) async throws -> AWSEC2DescribeVpcEndpointServicesResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpointServices service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your VPC endpoints. The default is to describe all your VPC endpoints. Alternatively, you can specify specific VPC endpoint IDs or filter the results to include only the VPC endpoints that match specific criteria.

    See

    AWSEC2DescribeVpcEndpointsRequest

    See

    AWSEC2DescribeVpcEndpointsResult

    Declaration

    Objective-C

    - (id)describeVpcEndpoints:(nonnull AWSEC2DescribeVpcEndpointsRequest *)request;

    Swift

    func describeVpcEndpoints(_ request: AWSEC2DescribeVpcEndpointsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpoints service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcEndpointsResult.

  • Describes your VPC endpoints. The default is to describe all your VPC endpoints. Alternatively, you can specify specific VPC endpoint IDs or filter the results to include only the VPC endpoints that match specific criteria.

    See

    AWSEC2DescribeVpcEndpointsRequest

    See

    AWSEC2DescribeVpcEndpointsResult

    Declaration

    Objective-C

    - (void)describeVpcEndpoints:
                (nonnull AWSEC2DescribeVpcEndpointsRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DescribeVpcEndpointsResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func describeVpcEndpoints(_ request: AWSEC2DescribeVpcEndpointsRequest) async throws -> AWSEC2DescribeVpcEndpointsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcEndpoints service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your VPC peering connections. The default is to describe all your VPC peering connections. Alternatively, you can specify specific VPC peering connection IDs or filter the results to include only the VPC peering connections that match specific criteria.

    See

    AWSEC2DescribeVpcPeeringConnectionsRequest

    See

    AWSEC2DescribeVpcPeeringConnectionsResult

    Declaration

    Objective-C

    - (id)describeVpcPeeringConnections:
        (nonnull AWSEC2DescribeVpcPeeringConnectionsRequest *)request;

    Swift

    func describeVpcPeeringConnections(_ request: AWSEC2DescribeVpcPeeringConnectionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcPeeringConnections service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcPeeringConnectionsResult.

  • Describes your VPC peering connections. The default is to describe all your VPC peering connections. Alternatively, you can specify specific VPC peering connection IDs or filter the results to include only the VPC peering connections that match specific criteria.

    See

    AWSEC2DescribeVpcPeeringConnectionsRequest

    See

    AWSEC2DescribeVpcPeeringConnectionsResult

    Declaration

    Objective-C

    - (void)
        describeVpcPeeringConnections:
            (nonnull AWSEC2DescribeVpcPeeringConnectionsRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DescribeVpcPeeringConnectionsResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func describeVpcPeeringConnections(_ request: AWSEC2DescribeVpcPeeringConnectionsRequest) async throws -> AWSEC2DescribeVpcPeeringConnectionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcPeeringConnections service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes your VPCs. The default is to describe all your VPCs. Alternatively, you can specify specific VPC IDs or filter the results to include only the VPCs that match specific criteria.

    See

    AWSEC2DescribeVpcsRequest

    See

    AWSEC2DescribeVpcsResult

    Declaration

    Objective-C

    - (id)describeVpcs:(nonnull AWSEC2DescribeVpcsRequest *)request;

    Swift

    func describeVpcs(_ request: AWSEC2DescribeVpcsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpcsResult.

  • Describes your VPCs. The default is to describe all your VPCs. Alternatively, you can specify specific VPC IDs or filter the results to include only the VPCs that match specific criteria.

    See

    AWSEC2DescribeVpcsRequest

    See

    AWSEC2DescribeVpcsResult

    Declaration

    Objective-C

    - (void)describeVpcs:(nonnull AWSEC2DescribeVpcsRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2DescribeVpcsResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func describeVpcs(_ request: AWSEC2DescribeVpcsRequest) async throws -> AWSEC2DescribeVpcsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpcs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more of your VPN connections.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2DescribeVpnConnectionsRequest

    See

    AWSEC2DescribeVpnConnectionsResult

    Declaration

    Objective-C

    - (id)describeVpnConnections:
        (nonnull AWSEC2DescribeVpnConnectionsRequest *)request;

    Swift

    func describeVpnConnections(_ request: AWSEC2DescribeVpnConnectionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpnConnections service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpnConnectionsResult.

  • Describes one or more of your VPN connections.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2DescribeVpnConnectionsRequest

    See

    AWSEC2DescribeVpnConnectionsResult

    Declaration

    Objective-C

    - (void)
        describeVpnConnections:
            (nonnull AWSEC2DescribeVpnConnectionsRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DescribeVpnConnectionsResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func describeVpnConnections(_ request: AWSEC2DescribeVpnConnectionsRequest) async throws -> AWSEC2DescribeVpnConnectionsResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpnConnections service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes one or more of your virtual private gateways.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2DescribeVpnGatewaysRequest

    See

    AWSEC2DescribeVpnGatewaysResult

    Declaration

    Objective-C

    - (id)describeVpnGateways:(nonnull AWSEC2DescribeVpnGatewaysRequest *)request;

    Swift

    func describeVpnGateways(_ request: AWSEC2DescribeVpnGatewaysRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpnGateways service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DescribeVpnGatewaysResult.

  • Describes one or more of your virtual private gateways.

    For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2DescribeVpnGatewaysRequest

    See

    AWSEC2DescribeVpnGatewaysResult

    Declaration

    Objective-C

    - (void)describeVpnGateways:(nonnull AWSEC2DescribeVpnGatewaysRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DescribeVpnGatewaysResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func describeVpnGateways(_ request: AWSEC2DescribeVpnGatewaysRequest) async throws -> AWSEC2DescribeVpnGatewaysResult

    Parameters

    request

    A container for the necessary parameters to execute the DescribeVpnGateways service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it’s stopped.

    See

    AWSEC2DetachClassicLinkVpcRequest

    See

    AWSEC2DetachClassicLinkVpcResult

    Declaration

    Objective-C

    - (id)detachClassicLinkVpc:(nonnull AWSEC2DetachClassicLinkVpcRequest *)request;

    Swift

    func detachClassicLinkVpc(_ request: AWSEC2DetachClassicLinkVpcRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DetachClassicLinkVpc service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DetachClassicLinkVpcResult.

  • This action is deprecated.

    Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it’s stopped.

    See

    AWSEC2DetachClassicLinkVpcRequest

    See

    AWSEC2DetachClassicLinkVpcResult

    Declaration

    Objective-C

    - (void)detachClassicLinkVpc:
                (nonnull AWSEC2DetachClassicLinkVpcRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2DetachClassicLinkVpcResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func detachClassicLinkVpc(_ request: AWSEC2DetachClassicLinkVpcRequest) async throws -> AWSEC2DetachClassicLinkVpcResult

    Parameters

    request

    A container for the necessary parameters to execute the DetachClassicLinkVpc service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses.

    See

    AWSEC2DetachInternetGatewayRequest

    Declaration

    Objective-C

    - (id)detachInternetGateway:
        (nonnull AWSEC2DetachInternetGatewayRequest *)request;

    Swift

    func detachInternetGateway(_ request: AWSEC2DetachInternetGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DetachInternetGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses.

    See

    AWSEC2DetachInternetGatewayRequest

    Declaration

    Objective-C

    - (void)detachInternetGateway:
                (nonnull AWSEC2DetachInternetGatewayRequest *)request
                completionHandler:
                    (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func detachInternetGateway(_ request: AWSEC2DetachInternetGatewayRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DetachInternetGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Detaches a network interface from an instance.

    See

    AWSEC2DetachNetworkInterfaceRequest

    Declaration

    Objective-C

    - (id)detachNetworkInterface:
        (nonnull AWSEC2DetachNetworkInterfaceRequest *)request;

    Swift

    func detachNetworkInterface(_ request: AWSEC2DetachNetworkInterfaceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DetachNetworkInterface service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Detaches a network interface from an instance.

    See

    AWSEC2DetachNetworkInterfaceRequest

    Declaration

    Objective-C

    - (void)detachNetworkInterface:
                (nonnull AWSEC2DetachNetworkInterfaceRequest *)request
                 completionHandler:
                     (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func detachNetworkInterface(_ request: AWSEC2DetachNetworkInterfaceRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DetachNetworkInterface service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Detaches the specified Amazon Web Services Verified Access trust provider from the specified Amazon Web Services Verified Access instance.

    See

    AWSEC2DetachVerifiedAccessTrustProviderRequest

    See

    AWSEC2DetachVerifiedAccessTrustProviderResult

    Declaration

    Objective-C

    - (id)detachVerifiedAccessTrustProvider:
        (nonnull AWSEC2DetachVerifiedAccessTrustProviderRequest *)request;

    Swift

    func detachVerifiedAccessTrustProvider(_ request: AWSEC2DetachVerifiedAccessTrustProviderRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DetachVerifiedAccessTrustProvider service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DetachVerifiedAccessTrustProviderResult.

  • Detaches the specified Amazon Web Services Verified Access trust provider from the specified Amazon Web Services Verified Access instance.

    See

    AWSEC2DetachVerifiedAccessTrustProviderRequest

    See

    AWSEC2DetachVerifiedAccessTrustProviderResult

    Declaration

    Objective-C

    - (void)detachVerifiedAccessTrustProvider:
                (nonnull AWSEC2DetachVerifiedAccessTrustProviderRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DetachVerifiedAccessTrustProviderResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func detachVerifiedAccessTrustProvider(_ request: AWSEC2DetachVerifiedAccessTrustProviderRequest) async throws -> AWSEC2DetachVerifiedAccessTrustProviderResult

    Parameters

    request

    A container for the necessary parameters to execute the DetachVerifiedAccessTrustProvider service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the busy state while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can’t be detached while the instance is running. To detach the root volume, stop the instance first.

    When a volume with an Amazon Web Services Marketplace product code is detached from an instance, the product code is no longer associated with the instance.

    You can’t detach or force detach volumes that are attached to Amazon ECS or Fargate tasks. Attempting to do this results in the UnsupportedOperationException exception with the Unable to detach volume attached to ECS tasks error message.

    For more information, see Detach an Amazon EBS volume in the Amazon EBS User Guide.

    See

    AWSEC2DetachVolumeRequest

    See

    AWSEC2VolumeAttachment

    Declaration

    Objective-C

    - (id)detachVolume:(nonnull AWSEC2DetachVolumeRequest *)request;

    Swift

    func detachVolume(_ request: AWSEC2DetachVolumeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DetachVolume service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2VolumeAttachment.

  • Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the busy state while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can’t be detached while the instance is running. To detach the root volume, stop the instance first.

    When a volume with an Amazon Web Services Marketplace product code is detached from an instance, the product code is no longer associated with the instance.

    You can’t detach or force detach volumes that are attached to Amazon ECS or Fargate tasks. Attempting to do this results in the UnsupportedOperationException exception with the Unable to detach volume attached to ECS tasks error message.

    For more information, see Detach an Amazon EBS volume in the Amazon EBS User Guide.

    See

    AWSEC2DetachVolumeRequest

    See

    AWSEC2VolumeAttachment

    Declaration

    Objective-C

    - (void)detachVolume:(nonnull AWSEC2DetachVolumeRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2VolumeAttachment *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func detachVolume(_ request: AWSEC2DetachVolumeRequest) async throws -> AWSEC2VolumeAttachment

    Parameters

    request

    A container for the necessary parameters to execute the DetachVolume service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Detaches a virtual private gateway from a VPC. You do this if you’re planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

    You must wait for the attachment’s state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

    See

    AWSEC2DetachVpnGatewayRequest

    Declaration

    Objective-C

    - (id)detachVpnGateway:(nonnull AWSEC2DetachVpnGatewayRequest *)request;

    Swift

    func detachVpnGateway(_ request: AWSEC2DetachVpnGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DetachVpnGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Detaches a virtual private gateway from a VPC. You do this if you’re planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).

    You must wait for the attachment’s state to switch to detached before you can delete the VPC or attach a different VPC to the virtual private gateway.

    See

    AWSEC2DetachVpnGatewayRequest

    Declaration

    Objective-C

    - (void)detachVpnGateway:(nonnull AWSEC2DetachVpnGatewayRequest *)request
           completionHandler:
               (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func detachVpnGateway(_ request: AWSEC2DetachVpnGatewayRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DetachVpnGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon VPC User Guide.

    See

    AWSEC2DisableAddressTransferRequest

    See

    AWSEC2DisableAddressTransferResult

    Declaration

    Objective-C

    - (id)disableAddressTransfer:
        (nonnull AWSEC2DisableAddressTransferRequest *)request;

    Swift

    func disableAddressTransfer(_ request: AWSEC2DisableAddressTransferRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableAddressTransfer service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableAddressTransferResult.

  • Disables Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon VPC User Guide.

    See

    AWSEC2DisableAddressTransferRequest

    See

    AWSEC2DisableAddressTransferResult

    Declaration

    Objective-C

    - (void)
        disableAddressTransfer:
            (nonnull AWSEC2DisableAddressTransferRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DisableAddressTransferResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func disableAddressTransfer(_ request: AWSEC2DisableAddressTransferRequest) async throws -> AWSEC2DisableAddressTransferResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableAddressTransfer service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables Infrastructure Performance metric subscriptions.

    See

    AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionRequest

    See

    AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionResult

    Declaration

    Objective-C

    - (id)disableAwsNetworkPerformanceMetricSubscription:
        (nonnull AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionRequest *)
            request;

    Swift

    func disableAwsNetworkPerformanceMetricSubscription(_ request: AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableAwsNetworkPerformanceMetricSubscription service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionResult.

  • Disables Infrastructure Performance metric subscriptions.

    See

    AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionRequest

    See

    AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionResult

    Declaration

    Objective-C

    - (void)
        disableAwsNetworkPerformanceMetricSubscription:
            (nonnull AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionRequest *)
                request
                                     completionHandler:
                                         (void (^_Nullable)(
                                             AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionResult
                                                 *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func disableAwsNetworkPerformanceMetricSubscription(_ request: AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionRequest) async throws -> AWSEC2DisableAwsNetworkPerformanceMetricSubscriptionResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableAwsNetworkPerformanceMetricSubscription service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables EBS encryption by default for your account in the current Region.

    After you disable encryption by default, you can still create encrypted volumes by enabling encryption when you create each volume.

    Disabling encryption by default does not change the encryption status of your existing volumes.

    For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2DisableEbsEncryptionByDefaultRequest

    See

    AWSEC2DisableEbsEncryptionByDefaultResult

    Declaration

    Objective-C

    - (id)disableEbsEncryptionByDefault:
        (nonnull AWSEC2DisableEbsEncryptionByDefaultRequest *)request;

    Swift

    func disableEbsEncryption(byDefault request: AWSEC2DisableEbsEncryptionByDefaultRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableEbsEncryptionByDefault service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableEbsEncryptionByDefaultResult.

  • Disables EBS encryption by default for your account in the current Region.

    After you disable encryption by default, you can still create encrypted volumes by enabling encryption when you create each volume.

    Disabling encryption by default does not change the encryption status of your existing volumes.

    For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2DisableEbsEncryptionByDefaultRequest

    See

    AWSEC2DisableEbsEncryptionByDefaultResult

    Declaration

    Objective-C

    - (void)
        disableEbsEncryptionByDefault:
            (nonnull AWSEC2DisableEbsEncryptionByDefaultRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DisableEbsEncryptionByDefaultResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func disableEbsEncryption(byDefault request: AWSEC2DisableEbsEncryptionByDefaultRequest) async throws -> AWSEC2DisableEbsEncryptionByDefaultResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableEbsEncryptionByDefault service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned snapshots. After you disable Windows fast launch, the AMI uses the standard launch process for each new instance. Amazon EC2 must remove all pre-provisioned snapshots before you can enable Windows fast launch again.

    You can only change these settings for Windows AMIs that you own or that have been shared with you.

    See

    AWSEC2DisableFastLaunchRequest

    See

    AWSEC2DisableFastLaunchResult

    Declaration

    Objective-C

    - (id)disableFastLaunch:(nonnull AWSEC2DisableFastLaunchRequest *)request;

    Swift

    func disableFastLaunch(_ request: AWSEC2DisableFastLaunchRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableFastLaunch service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableFastLaunchResult.

  • Discontinue Windows fast launch for a Windows AMI, and clean up existing pre-provisioned snapshots. After you disable Windows fast launch, the AMI uses the standard launch process for each new instance. Amazon EC2 must remove all pre-provisioned snapshots before you can enable Windows fast launch again.

    You can only change these settings for Windows AMIs that you own or that have been shared with you.

    See

    AWSEC2DisableFastLaunchRequest

    See

    AWSEC2DisableFastLaunchResult

    Declaration

    Objective-C

    - (void)disableFastLaunch:(nonnull AWSEC2DisableFastLaunchRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2DisableFastLaunchResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func disableFastLaunch(_ request: AWSEC2DisableFastLaunchRequest) async throws -> AWSEC2DisableFastLaunchResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableFastLaunch service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.

    See

    AWSEC2DisableFastSnapshotRestoresRequest

    See

    AWSEC2DisableFastSnapshotRestoresResult

    Declaration

    Objective-C

    - (id)disableFastSnapshotRestores:
        (nonnull AWSEC2DisableFastSnapshotRestoresRequest *)request;

    Swift

    func disableFastSnapshotRestores(_ request: AWSEC2DisableFastSnapshotRestoresRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableFastSnapshotRestores service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableFastSnapshotRestoresResult.

  • Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.

    See

    AWSEC2DisableFastSnapshotRestoresRequest

    See

    AWSEC2DisableFastSnapshotRestoresResult

    Declaration

    Objective-C

    - (void)disableFastSnapshotRestores:
                (nonnull AWSEC2DisableFastSnapshotRestoresRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2DisableFastSnapshotRestoresResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func disableFastSnapshotRestores(_ request: AWSEC2DisableFastSnapshotRestoresRequest) async throws -> AWSEC2DisableFastSnapshotRestoresResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableFastSnapshotRestores service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Sets the AMI state to disabled and removes all launch permissions from the AMI. A disabled AMI can’t be used for instance launches.

    A disabled AMI can’t be shared. If an AMI was public or previously shared, it is made private. If an AMI was shared with an Amazon Web Services account, organization, or Organizational Unit, they lose access to the disabled AMI.

    A disabled AMI does not appear in DescribeImages API calls by default.

    Only the AMI owner can disable an AMI.

    You can re-enable a disabled AMI using EnableImage.

    For more information, see Disable an AMI in the Amazon EC2 User Guide.

    See

    AWSEC2DisableImageRequest

    See

    AWSEC2DisableImageResult

    Declaration

    Objective-C

    - (id)disableImage:(nonnull AWSEC2DisableImageRequest *)request;

    Swift

    func disableImage(_ request: AWSEC2DisableImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableImageResult.

  • Sets the AMI state to disabled and removes all launch permissions from the AMI. A disabled AMI can’t be used for instance launches.

    A disabled AMI can’t be shared. If an AMI was public or previously shared, it is made private. If an AMI was shared with an Amazon Web Services account, organization, or Organizational Unit, they lose access to the disabled AMI.

    A disabled AMI does not appear in DescribeImages API calls by default.

    Only the AMI owner can disable an AMI.

    You can re-enable a disabled AMI using EnableImage.

    For more information, see Disable an AMI in the Amazon EC2 User Guide.

    See

    AWSEC2DisableImageRequest

    See

    AWSEC2DisableImageResult

    Declaration

    Objective-C

    - (void)disableImage:(nonnull AWSEC2DisableImageRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2DisableImageResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func disableImage(_ request: AWSEC2DisableImageRequest) async throws -> AWSEC2DisableImageResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableImage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables block public access for AMIs at the account level in the specified Amazon Web Services Region. This removes the block public access restriction from your account. With the restriction removed, you can publicly share your AMIs in the specified Amazon Web Services Region.

    The API can take up to 10 minutes to configure this setting. During this time, if you run GetImageBlockPublicAccessState, the response will be block-new-sharing. When the API has completed the configuration, the response will be unblocked.

    For more information, see Block public access to your AMIs in the Amazon EC2 User Guide.

    See

    AWSEC2DisableImageBlockPublicAccessRequest

    See

    AWSEC2DisableImageBlockPublicAccessResult

    Declaration

    Objective-C

    - (id)disableImageBlockPublicAccess:
        (nonnull AWSEC2DisableImageBlockPublicAccessRequest *)request;

    Swift

    func disableImageBlockPublicAccess(_ request: AWSEC2DisableImageBlockPublicAccessRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableImageBlockPublicAccess service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableImageBlockPublicAccessResult.

  • Disables block public access for AMIs at the account level in the specified Amazon Web Services Region. This removes the block public access restriction from your account. With the restriction removed, you can publicly share your AMIs in the specified Amazon Web Services Region.

    The API can take up to 10 minutes to configure this setting. During this time, if you run GetImageBlockPublicAccessState, the response will be block-new-sharing. When the API has completed the configuration, the response will be unblocked.

    For more information, see Block public access to your AMIs in the Amazon EC2 User Guide.

    See

    AWSEC2DisableImageBlockPublicAccessRequest

    See

    AWSEC2DisableImageBlockPublicAccessResult

    Declaration

    Objective-C

    - (void)
        disableImageBlockPublicAccess:
            (nonnull AWSEC2DisableImageBlockPublicAccessRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DisableImageBlockPublicAccessResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func disableImageBlockPublicAccess(_ request: AWSEC2DisableImageBlockPublicAccessRequest) async throws -> AWSEC2DisableImageBlockPublicAccessResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableImageBlockPublicAccess service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Cancels the deprecation of the specified AMI.

    For more information, see Deprecate an AMI in the Amazon EC2 User Guide.

    See

    AWSEC2DisableImageDeprecationRequest

    See

    AWSEC2DisableImageDeprecationResult

    Declaration

    Objective-C

    - (id)disableImageDeprecation:
        (nonnull AWSEC2DisableImageDeprecationRequest *)request;

    Swift

    func disableImageDeprecation(_ request: AWSEC2DisableImageDeprecationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableImageDeprecation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableImageDeprecationResult.

  • Cancels the deprecation of the specified AMI.

    For more information, see Deprecate an AMI in the Amazon EC2 User Guide.

    See

    AWSEC2DisableImageDeprecationRequest

    See

    AWSEC2DisableImageDeprecationResult

    Declaration

    Objective-C

    - (void)
        disableImageDeprecation:
            (nonnull AWSEC2DisableImageDeprecationRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2DisableImageDeprecationResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func disableImageDeprecation(_ request: AWSEC2DisableImageDeprecationRequest) async throws -> AWSEC2DisableImageDeprecationResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableImageDeprecation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables deregistration protection for an AMI. When deregistration protection is disabled, the AMI can be deregistered.

    If you chose to include a 24-hour cooldown period when you enabled deregistration protection for the AMI, then, when you disable deregistration protection, you won’t immediately be able to deregister the AMI.

    For more information, see Protect an AMI from deregistration in the Amazon EC2 User Guide.

    See

    AWSEC2DisableImageDeregistrationProtectionRequest

    See

    AWSEC2DisableImageDeregistrationProtectionResult

    Declaration

    Objective-C

    - (id)disableImageDeregistrationProtection:
        (nonnull AWSEC2DisableImageDeregistrationProtectionRequest *)request;

    Swift

    func disableImageDeregistrationProtection(_ request: AWSEC2DisableImageDeregistrationProtectionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableImageDeregistrationProtection service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableImageDeregistrationProtectionResult.

  • Disables deregistration protection for an AMI. When deregistration protection is disabled, the AMI can be deregistered.

    If you chose to include a 24-hour cooldown period when you enabled deregistration protection for the AMI, then, when you disable deregistration protection, you won’t immediately be able to deregister the AMI.

    For more information, see Protect an AMI from deregistration in the Amazon EC2 User Guide.

    See

    AWSEC2DisableImageDeregistrationProtectionRequest

    See

    AWSEC2DisableImageDeregistrationProtectionResult

    Declaration

    Objective-C

    - (void)
        disableImageDeregistrationProtection:
            (nonnull AWSEC2DisableImageDeregistrationProtectionRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DisableImageDeregistrationProtectionResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func disableImageDeregistrationProtection(_ request: AWSEC2DisableImageDeregistrationProtectionRequest) async throws -> AWSEC2DisableImageDeregistrationProtectionResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableImageDeregistrationProtection service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disable the IPAM account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DisableIpamOrganizationAdminAccountRequest

    See

    AWSEC2DisableIpamOrganizationAdminAccountResult

    Declaration

    Objective-C

    - (id)disableIpamOrganizationAdminAccount:
        (nonnull AWSEC2DisableIpamOrganizationAdminAccountRequest *)request;

    Swift

    func disableIpamOrganizationAdminAccount(_ request: AWSEC2DisableIpamOrganizationAdminAccountRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableIpamOrganizationAdminAccount service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableIpamOrganizationAdminAccountResult.

  • Disable the IPAM account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.

    See

    AWSEC2DisableIpamOrganizationAdminAccountRequest

    See

    AWSEC2DisableIpamOrganizationAdminAccountResult

    Declaration

    Objective-C

    - (void)
        disableIpamOrganizationAdminAccount:
            (nonnull AWSEC2DisableIpamOrganizationAdminAccountRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DisableIpamOrganizationAdminAccountResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func disableIpamOrganizationAdminAccount(_ request: AWSEC2DisableIpamOrganizationAdminAccountRequest) async throws -> AWSEC2DisableIpamOrganizationAdminAccountResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableIpamOrganizationAdminAccount service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.

    See

    AWSEC2DisableSerialConsoleAccessRequest

    See

    AWSEC2DisableSerialConsoleAccessResult

    Declaration

    Objective-C

    - (id)disableSerialConsoleAccess:
        (nonnull AWSEC2DisableSerialConsoleAccessRequest *)request;

    Swift

    func disableSerialConsoleAccess(_ request: AWSEC2DisableSerialConsoleAccessRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableSerialConsoleAccess service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableSerialConsoleAccessResult.

  • Disables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.

    See

    AWSEC2DisableSerialConsoleAccessRequest

    See

    AWSEC2DisableSerialConsoleAccessResult

    Declaration

    Objective-C

    - (void)disableSerialConsoleAccess:
                (nonnull AWSEC2DisableSerialConsoleAccessRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DisableSerialConsoleAccessResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func disableSerialConsoleAccess(_ request: AWSEC2DisableSerialConsoleAccessRequest) async throws -> AWSEC2DisableSerialConsoleAccessResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableSerialConsoleAccess service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you disable block public access for snapshots in a Region, users can publicly share snapshots in that Region.

    If block public access is enabled in block-all-sharing mode, and you disable block public access, all snapshots that were previously publicly shared are no longer treated as private and they become publicly accessible again.

    For more information, see Block public access for snapshots in the Amazon EBS User Guide .

    See

    AWSEC2DisableSnapshotBlockPublicAccessRequest

    See

    AWSEC2DisableSnapshotBlockPublicAccessResult

    Declaration

    Objective-C

    - (id)disableSnapshotBlockPublicAccess:
        (nonnull AWSEC2DisableSnapshotBlockPublicAccessRequest *)request;

    Swift

    func disableSnapshotBlockPublicAccess(_ request: AWSEC2DisableSnapshotBlockPublicAccessRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableSnapshotBlockPublicAccess service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableSnapshotBlockPublicAccessResult.

  • Disables the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you disable block public access for snapshots in a Region, users can publicly share snapshots in that Region.

    If block public access is enabled in block-all-sharing mode, and you disable block public access, all snapshots that were previously publicly shared are no longer treated as private and they become publicly accessible again.

    For more information, see Block public access for snapshots in the Amazon EBS User Guide .

    See

    AWSEC2DisableSnapshotBlockPublicAccessRequest

    See

    AWSEC2DisableSnapshotBlockPublicAccessResult

    Declaration

    Objective-C

    - (void)disableSnapshotBlockPublicAccess:
                (nonnull AWSEC2DisableSnapshotBlockPublicAccessRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DisableSnapshotBlockPublicAccessResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func disableSnapshotBlockPublicAccess(_ request: AWSEC2DisableSnapshotBlockPublicAccessRequest) async throws -> AWSEC2DisableSnapshotBlockPublicAccessResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableSnapshotBlockPublicAccess service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables the specified resource attachment from propagating routes to the specified propagation route table.

    See

    AWSEC2DisableTransitGatewayRouteTablePropagationRequest

    See

    AWSEC2DisableTransitGatewayRouteTablePropagationResult

    Declaration

    Objective-C

    - (id)disableTransitGatewayRouteTablePropagation:
        (nonnull AWSEC2DisableTransitGatewayRouteTablePropagationRequest *)request;

    Swift

    func disableTransitGatewayRouteTablePropagation(_ request: AWSEC2DisableTransitGatewayRouteTablePropagationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableTransitGatewayRouteTablePropagation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableTransitGatewayRouteTablePropagationResult.

  • Disables the specified resource attachment from propagating routes to the specified propagation route table.

    See

    AWSEC2DisableTransitGatewayRouteTablePropagationRequest

    See

    AWSEC2DisableTransitGatewayRouteTablePropagationResult

    Declaration

    Objective-C

    - (void)
        disableTransitGatewayRouteTablePropagation:
            (nonnull AWSEC2DisableTransitGatewayRouteTablePropagationRequest *)
                request
                                 completionHandler:
                                     (void (^_Nullable)(
                                         AWSEC2DisableTransitGatewayRouteTablePropagationResult
                                             *_Nullable,
                                         NSError *_Nullable))completionHandler;

    Swift

    func disableTransitGatewayRouteTablePropagation(_ request: AWSEC2DisableTransitGatewayRouteTablePropagationRequest) async throws -> AWSEC2DisableTransitGatewayRouteTablePropagationResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableTransitGatewayRouteTablePropagation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.

    See

    AWSEC2DisableVgwRoutePropagationRequest

    Declaration

    Objective-C

    - (id)disableVgwRoutePropagation:
        (nonnull AWSEC2DisableVgwRoutePropagationRequest *)request;

    Swift

    func disableVgwRoutePropagation(_ request: AWSEC2DisableVgwRoutePropagationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableVgwRoutePropagation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.

    See

    AWSEC2DisableVgwRoutePropagationRequest

    Declaration

    Objective-C

    - (void)disableVgwRoutePropagation:
                (nonnull AWSEC2DisableVgwRoutePropagationRequest *)request
                     completionHandler:
                         (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func disableVgwRoutePropagation(_ request: AWSEC2DisableVgwRoutePropagationRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DisableVgwRoutePropagation service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.

    See

    AWSEC2DisableVpcClassicLinkRequest

    See

    AWSEC2DisableVpcClassicLinkResult

    Declaration

    Objective-C

    - (id)disableVpcClassicLink:
        (nonnull AWSEC2DisableVpcClassicLinkRequest *)request;

    Swift

    func disableVpcClassicLink(_ request: AWSEC2DisableVpcClassicLinkRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableVpcClassicLink service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableVpcClassicLinkResult.

  • This action is deprecated.

    Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.

    See

    AWSEC2DisableVpcClassicLinkRequest

    See

    AWSEC2DisableVpcClassicLinkResult

    Declaration

    Objective-C

    - (void)disableVpcClassicLink:
                (nonnull AWSEC2DisableVpcClassicLinkRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2DisableVpcClassicLinkResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func disableVpcClassicLink(_ request: AWSEC2DisableVpcClassicLinkRequest) async throws -> AWSEC2DisableVpcClassicLinkResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableVpcClassicLink service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it’s linked.

    You must specify a VPC ID in the request.

    See

    AWSEC2DisableVpcClassicLinkDnsSupportRequest

    See

    AWSEC2DisableVpcClassicLinkDnsSupportResult

    Declaration

    Objective-C

    - (id)disableVpcClassicLinkDnsSupport:
        (nonnull AWSEC2DisableVpcClassicLinkDnsSupportRequest *)request;

    Swift

    func disableVpcClassicLinkDnsSupport(_ request: AWSEC2DisableVpcClassicLinkDnsSupportRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisableVpcClassicLinkDnsSupport service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisableVpcClassicLinkDnsSupportResult.

  • This action is deprecated.

    Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it’s linked.

    You must specify a VPC ID in the request.

    See

    AWSEC2DisableVpcClassicLinkDnsSupportRequest

    See

    AWSEC2DisableVpcClassicLinkDnsSupportResult

    Declaration

    Objective-C

    - (void)disableVpcClassicLinkDnsSupport:
                (nonnull AWSEC2DisableVpcClassicLinkDnsSupportRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DisableVpcClassicLinkDnsSupportResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func disableVpcClassicLinkDnsSupport(_ request: AWSEC2DisableVpcClassicLinkDnsSupportRequest) async throws -> AWSEC2DisableVpcClassicLinkDnsSupportResult

    Parameters

    request

    A container for the necessary parameters to execute the DisableVpcClassicLinkDnsSupport service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates an Elastic IP address from the instance or network interface it’s associated with.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error.

    See

    AWSEC2DisassociateAddressRequest

    Declaration

    Objective-C

    - (id)disassociateAddress:(nonnull AWSEC2DisassociateAddressRequest *)request;

    Swift

    func disassociateAddress(_ request: AWSEC2DisassociateAddressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateAddress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Disassociates an Elastic IP address from the instance or network interface it’s associated with.

    This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error.

    See

    AWSEC2DisassociateAddressRequest

    Declaration

    Objective-C

    - (void)disassociateAddress:(nonnull AWSEC2DisassociateAddressRequest *)request
              completionHandler:
                  (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func disassociateAddress(_ request: AWSEC2DisassociateAddressRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateAddress service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:

    • The route that was automatically added for the VPC is deleted

    • All active client connections are terminated

    • New client connections are disallowed

    • The Client VPN endpoint’s status changes to pending-associate

    See

    AWSEC2DisassociateClientVpnTargetNetworkRequest

    See

    AWSEC2DisassociateClientVpnTargetNetworkResult

    Declaration

    Objective-C

    - (id)disassociateClientVpnTargetNetwork:
        (nonnull AWSEC2DisassociateClientVpnTargetNetworkRequest *)request;

    Swift

    func disassociateClientVpnTargetNetwork(_ request: AWSEC2DisassociateClientVpnTargetNetworkRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateClientVpnTargetNetwork service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateClientVpnTargetNetworkResult.

  • Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:

    • The route that was automatically added for the VPC is deleted

    • All active client connections are terminated

    • New client connections are disallowed

    • The Client VPN endpoint’s status changes to pending-associate

    See

    AWSEC2DisassociateClientVpnTargetNetworkRequest

    See

    AWSEC2DisassociateClientVpnTargetNetworkResult

    Declaration

    Objective-C

    - (void)disassociateClientVpnTargetNetwork:
                (nonnull AWSEC2DisassociateClientVpnTargetNetworkRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2DisassociateClientVpnTargetNetworkResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func disassociateClientVpnTargetNetwork(_ request: AWSEC2DisassociateClientVpnTargetNetworkRequest) async throws -> AWSEC2DisassociateClientVpnTargetNetworkResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateClientVpnTargetNetwork service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates an IAM role from an Certificate Manager (ACM) certificate. Disassociating an IAM role from an ACM certificate removes the Amazon S3 object that contains the certificate, certificate chain, and encrypted private key from the Amazon S3 bucket. It also revokes the IAM role’s permission to use the KMS key used to encrypt the private key. This effectively revokes the role’s permission to use the certificate.

    See

    AWSEC2DisassociateEnclaveCertificateIamRoleRequest

    See

    AWSEC2DisassociateEnclaveCertificateIamRoleResult

    Declaration

    Objective-C

    - (id)disassociateEnclaveCertificateIamRole:
        (nonnull AWSEC2DisassociateEnclaveCertificateIamRoleRequest *)request;

    Swift

    func disassociateEnclaveCertificateIamRole(_ request: AWSEC2DisassociateEnclaveCertificateIamRoleRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateEnclaveCertificateIamRole service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateEnclaveCertificateIamRoleResult.

  • Disassociates an IAM role from an Certificate Manager (ACM) certificate. Disassociating an IAM role from an ACM certificate removes the Amazon S3 object that contains the certificate, certificate chain, and encrypted private key from the Amazon S3 bucket. It also revokes the IAM role’s permission to use the KMS key used to encrypt the private key. This effectively revokes the role’s permission to use the certificate.

    See

    AWSEC2DisassociateEnclaveCertificateIamRoleRequest

    See

    AWSEC2DisassociateEnclaveCertificateIamRoleResult

    Declaration

    Objective-C

    - (void)
        disassociateEnclaveCertificateIamRole:
            (nonnull AWSEC2DisassociateEnclaveCertificateIamRoleRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DisassociateEnclaveCertificateIamRoleResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func disassociateEnclaveCertificateIamRole(_ request: AWSEC2DisassociateEnclaveCertificateIamRoleRequest) async throws -> AWSEC2DisassociateEnclaveCertificateIamRoleResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateEnclaveCertificateIamRole service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates an IAM instance profile from a running or stopped instance.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    See

    AWSEC2DisassociateIamInstanceProfileRequest

    See

    AWSEC2DisassociateIamInstanceProfileResult

    Declaration

    Objective-C

    - (id)disassociateIamInstanceProfile:
        (nonnull AWSEC2DisassociateIamInstanceProfileRequest *)request;

    Swift

    func disassociateIamInstanceProfile(_ request: AWSEC2DisassociateIamInstanceProfileRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateIamInstanceProfile service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateIamInstanceProfileResult.

  • Disassociates an IAM instance profile from a running or stopped instance.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    See

    AWSEC2DisassociateIamInstanceProfileRequest

    See

    AWSEC2DisassociateIamInstanceProfileResult

    Declaration

    Objective-C

    - (void)
        disassociateIamInstanceProfile:
            (nonnull AWSEC2DisassociateIamInstanceProfileRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DisassociateIamInstanceProfileResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func disassociateIamInstanceProfile(_ request: AWSEC2DisassociateIamInstanceProfileRequest) async throws -> AWSEC2DisassociateIamInstanceProfileResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateIamInstanceProfile service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates one or more targets from an event window.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2DisassociateInstanceEventWindowRequest

    See

    AWSEC2DisassociateInstanceEventWindowResult

    Declaration

    Objective-C

    - (id)disassociateInstanceEventWindow:
        (nonnull AWSEC2DisassociateInstanceEventWindowRequest *)request;

    Swift

    func disassociateInstanceEventWindow(_ request: AWSEC2DisassociateInstanceEventWindowRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateInstanceEventWindow service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateInstanceEventWindowResult.

  • Disassociates one or more targets from an event window.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2DisassociateInstanceEventWindowRequest

    See

    AWSEC2DisassociateInstanceEventWindowResult

    Declaration

    Objective-C

    - (void)disassociateInstanceEventWindow:
                (nonnull AWSEC2DisassociateInstanceEventWindowRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2DisassociateInstanceEventWindowResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func disassociateInstanceEventWindow(_ request: AWSEC2DisassociateInstanceEventWindowRequest) async throws -> AWSEC2DisassociateInstanceEventWindowResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateInstanceEventWindow service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Remove the association between your Autonomous System Number (ASN) and your BYOIP CIDR. You may want to use this action to disassociate an ASN from a CIDR or if you want to swap ASNs. For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

    See

    AWSEC2DisassociateIpamByoasnRequest

    See

    AWSEC2DisassociateIpamByoasnResult

    Declaration

    Objective-C

    - (id)disassociateIpamByoasn:
        (nonnull AWSEC2DisassociateIpamByoasnRequest *)request;

    Swift

    func disassociateIpamByoasn(_ request: AWSEC2DisassociateIpamByoasnRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateIpamByoasn service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateIpamByoasnResult.

  • Remove the association between your Autonomous System Number (ASN) and your BYOIP CIDR. You may want to use this action to disassociate an ASN from a CIDR or if you want to swap ASNs. For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

    See

    AWSEC2DisassociateIpamByoasnRequest

    See

    AWSEC2DisassociateIpamByoasnResult

    Declaration

    Objective-C

    - (void)
        disassociateIpamByoasn:
            (nonnull AWSEC2DisassociateIpamByoasnRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2DisassociateIpamByoasnResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func disassociateIpamByoasn(_ request: AWSEC2DisassociateIpamByoasnRequest) async throws -> AWSEC2DisassociateIpamByoasnResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateIpamByoasn service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates a resource discovery from an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2DisassociateIpamResourceDiscoveryRequest

    See

    AWSEC2DisassociateIpamResourceDiscoveryResult

    Declaration

    Objective-C

    - (id)disassociateIpamResourceDiscovery:
        (nonnull AWSEC2DisassociateIpamResourceDiscoveryRequest *)request;

    Swift

    func disassociateIpamResourceDiscovery(_ request: AWSEC2DisassociateIpamResourceDiscoveryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateIpamResourceDiscovery service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateIpamResourceDiscoveryResult.

  • Disassociates a resource discovery from an Amazon VPC IPAM. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2DisassociateIpamResourceDiscoveryRequest

    See

    AWSEC2DisassociateIpamResourceDiscoveryResult

    Declaration

    Objective-C

    - (void)disassociateIpamResourceDiscovery:
                (nonnull AWSEC2DisassociateIpamResourceDiscoveryRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DisassociateIpamResourceDiscoveryResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func disassociateIpamResourceDiscovery(_ request: AWSEC2DisassociateIpamResourceDiscoveryRequest) async throws -> AWSEC2DisassociateIpamResourceDiscoveryResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateIpamResourceDiscovery service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway. You cannot disassociate your primary EIP. For more information, see Edit secondary IP address associations in the Amazon VPC User Guide.

    While disassociating is in progress, you cannot associate/disassociate additional EIPs while the connections are being drained. You are, however, allowed to delete the NAT gateway.

    An EIP is released only at the end of MaxDrainDurationSeconds. It stays associated and supports the existing connections but does not support any new connections (new connections are distributed across the remaining associated EIPs). As the existing connections drain out, the EIPs (and the corresponding private IP addresses mapped to them) are released.

    See

    AWSEC2DisassociateNatGatewayAddressRequest

    See

    AWSEC2DisassociateNatGatewayAddressResult

    Declaration

    Objective-C

    - (id)disassociateNatGatewayAddress:
        (nonnull AWSEC2DisassociateNatGatewayAddressRequest *)request;

    Swift

    func disassociateNatGatewayAddress(_ request: AWSEC2DisassociateNatGatewayAddressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateNatGatewayAddress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateNatGatewayAddressResult.

  • Disassociates secondary Elastic IP addresses (EIPs) from a public NAT gateway. You cannot disassociate your primary EIP. For more information, see Edit secondary IP address associations in the Amazon VPC User Guide.

    While disassociating is in progress, you cannot associate/disassociate additional EIPs while the connections are being drained. You are, however, allowed to delete the NAT gateway.

    An EIP is released only at the end of MaxDrainDurationSeconds. It stays associated and supports the existing connections but does not support any new connections (new connections are distributed across the remaining associated EIPs). As the existing connections drain out, the EIPs (and the corresponding private IP addresses mapped to them) are released.

    See

    AWSEC2DisassociateNatGatewayAddressRequest

    See

    AWSEC2DisassociateNatGatewayAddressResult

    Declaration

    Objective-C

    - (void)
        disassociateNatGatewayAddress:
            (nonnull AWSEC2DisassociateNatGatewayAddressRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2DisassociateNatGatewayAddressResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func disassociateNatGatewayAddress(_ request: AWSEC2DisassociateNatGatewayAddressRequest) async throws -> AWSEC2DisassociateNatGatewayAddressResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateNatGatewayAddress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates a subnet or gateway from a route table.

    After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC’s main route table. For more information about route tables, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2DisassociateRouteTableRequest

    Declaration

    Objective-C

    - (id)disassociateRouteTable:
        (nonnull AWSEC2DisassociateRouteTableRequest *)request;

    Swift

    func disassociateRouteTable(_ request: AWSEC2DisassociateRouteTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateRouteTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Disassociates a subnet or gateway from a route table.

    After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC’s main route table. For more information about route tables, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2DisassociateRouteTableRequest

    Declaration

    Objective-C

    - (void)disassociateRouteTable:
                (nonnull AWSEC2DisassociateRouteTableRequest *)request
                 completionHandler:
                     (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func disassociateRouteTable(_ request: AWSEC2DisassociateRouteTableRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateRouteTable service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

    See

    AWSEC2DisassociateSubnetCidrBlockRequest

    See

    AWSEC2DisassociateSubnetCidrBlockResult

    Declaration

    Objective-C

    - (id)disassociateSubnetCidrBlock:
        (nonnull AWSEC2DisassociateSubnetCidrBlockRequest *)request;

    Swift

    func disassociateSubnetCidrBlock(_ request: AWSEC2DisassociateSubnetCidrBlockRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateSubnetCidrBlock service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateSubnetCidrBlockResult.

  • Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

    See

    AWSEC2DisassociateSubnetCidrBlockRequest

    See

    AWSEC2DisassociateSubnetCidrBlockResult

    Declaration

    Objective-C

    - (void)disassociateSubnetCidrBlock:
                (nonnull AWSEC2DisassociateSubnetCidrBlockRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2DisassociateSubnetCidrBlockResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func disassociateSubnetCidrBlock(_ request: AWSEC2DisassociateSubnetCidrBlockRequest) async throws -> AWSEC2DisassociateSubnetCidrBlockResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateSubnetCidrBlock service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates the specified subnets from the transit gateway multicast domain.

    See

    AWSEC2DisassociateTransitGatewayMulticastDomainRequest

    See

    AWSEC2DisassociateTransitGatewayMulticastDomainResult

    Declaration

    Objective-C

    - (id)disassociateTransitGatewayMulticastDomain:
        (nonnull AWSEC2DisassociateTransitGatewayMulticastDomainRequest *)request;

    Swift

    func disassociateTransitGatewayMulticastDomain(_ request: AWSEC2DisassociateTransitGatewayMulticastDomainRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateTransitGatewayMulticastDomain service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateTransitGatewayMulticastDomainResult.

  • Disassociates the specified subnets from the transit gateway multicast domain.

    See

    AWSEC2DisassociateTransitGatewayMulticastDomainRequest

    See

    AWSEC2DisassociateTransitGatewayMulticastDomainResult

    Declaration

    Objective-C

    - (void)
        disassociateTransitGatewayMulticastDomain:
            (nonnull AWSEC2DisassociateTransitGatewayMulticastDomainRequest *)
                request
                                completionHandler:
                                    (void (^_Nullable)(
                                        AWSEC2DisassociateTransitGatewayMulticastDomainResult
                                            *_Nullable,
                                        NSError *_Nullable))completionHandler;

    Swift

    func disassociateTransitGatewayMulticastDomain(_ request: AWSEC2DisassociateTransitGatewayMulticastDomainRequest) async throws -> AWSEC2DisassociateTransitGatewayMulticastDomainResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateTransitGatewayMulticastDomain service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Removes the association between an an attachment and a policy table.

    See

    AWSEC2DisassociateTransitGatewayPolicyTableRequest

    See

    AWSEC2DisassociateTransitGatewayPolicyTableResult

    Declaration

    Objective-C

    - (id)disassociateTransitGatewayPolicyTable:
        (nonnull AWSEC2DisassociateTransitGatewayPolicyTableRequest *)request;

    Swift

    func disassociateTransitGatewayPolicyTable(_ request: AWSEC2DisassociateTransitGatewayPolicyTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateTransitGatewayPolicyTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateTransitGatewayPolicyTableResult.

  • Removes the association between an an attachment and a policy table.

    See

    AWSEC2DisassociateTransitGatewayPolicyTableRequest

    See

    AWSEC2DisassociateTransitGatewayPolicyTableResult

    Declaration

    Objective-C

    - (void)
        disassociateTransitGatewayPolicyTable:
            (nonnull AWSEC2DisassociateTransitGatewayPolicyTableRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2DisassociateTransitGatewayPolicyTableResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func disassociateTransitGatewayPolicyTable(_ request: AWSEC2DisassociateTransitGatewayPolicyTableRequest) async throws -> AWSEC2DisassociateTransitGatewayPolicyTableResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateTransitGatewayPolicyTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates a resource attachment from a transit gateway route table.

    See

    AWSEC2DisassociateTransitGatewayRouteTableRequest

    See

    AWSEC2DisassociateTransitGatewayRouteTableResult

    Declaration

    Objective-C

    - (id)disassociateTransitGatewayRouteTable:
        (nonnull AWSEC2DisassociateTransitGatewayRouteTableRequest *)request;

    Swift

    func disassociateTransitGatewayRouteTable(_ request: AWSEC2DisassociateTransitGatewayRouteTableRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateTransitGatewayRouteTable service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateTransitGatewayRouteTableResult.

  • Disassociates a resource attachment from a transit gateway route table.

    See

    AWSEC2DisassociateTransitGatewayRouteTableRequest

    See

    AWSEC2DisassociateTransitGatewayRouteTableResult

    Declaration

    Objective-C

    - (void)
        disassociateTransitGatewayRouteTable:
            (nonnull AWSEC2DisassociateTransitGatewayRouteTableRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2DisassociateTransitGatewayRouteTableResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func disassociateTransitGatewayRouteTable(_ request: AWSEC2DisassociateTransitGatewayRouteTableRequest) async throws -> AWSEC2DisassociateTransitGatewayRouteTableResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateTransitGatewayRouteTable service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Removes an association between a branch network interface with a trunk network interface.

    See

    AWSEC2DisassociateTrunkInterfaceRequest

    See

    AWSEC2DisassociateTrunkInterfaceResult

    Declaration

    Objective-C

    - (id)disassociateTrunkInterface:
        (nonnull AWSEC2DisassociateTrunkInterfaceRequest *)request;

    Swift

    func disassociateTrunkInterface(_ request: AWSEC2DisassociateTrunkInterfaceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateTrunkInterface service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateTrunkInterfaceResult.

  • Removes an association between a branch network interface with a trunk network interface.

    See

    AWSEC2DisassociateTrunkInterfaceRequest

    See

    AWSEC2DisassociateTrunkInterfaceResult

    Declaration

    Objective-C

    - (void)disassociateTrunkInterface:
                (nonnull AWSEC2DisassociateTrunkInterfaceRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2DisassociateTrunkInterfaceResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func disassociateTrunkInterface(_ request: AWSEC2DisassociateTrunkInterfaceRequest) async throws -> AWSEC2DisassociateTrunkInterfaceResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateTrunkInterface service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must specify its association ID. You can get the association ID by using DescribeVpcs. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

    You cannot disassociate the CIDR block with which you originally created the VPC (the primary CIDR block).

    See

    AWSEC2DisassociateVpcCidrBlockRequest

    See

    AWSEC2DisassociateVpcCidrBlockResult

    Declaration

    Objective-C

    - (id)disassociateVpcCidrBlock:
        (nonnull AWSEC2DisassociateVpcCidrBlockRequest *)request;

    Swift

    func disassociateVpcCidrBlock(_ request: AWSEC2DisassociateVpcCidrBlockRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateVpcCidrBlock service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2DisassociateVpcCidrBlockResult.

  • Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must specify its association ID. You can get the association ID by using DescribeVpcs. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.

    You cannot disassociate the CIDR block with which you originally created the VPC (the primary CIDR block).

    See

    AWSEC2DisassociateVpcCidrBlockRequest

    See

    AWSEC2DisassociateVpcCidrBlockResult

    Declaration

    Objective-C

    - (void)disassociateVpcCidrBlock:
                (nonnull AWSEC2DisassociateVpcCidrBlockRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2DisassociateVpcCidrBlockResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func disassociateVpcCidrBlock(_ request: AWSEC2DisassociateVpcCidrBlockRequest) async throws -> AWSEC2DisassociateVpcCidrBlockResult

    Parameters

    request

    A container for the necessary parameters to execute the DisassociateVpcCidrBlock service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon VPC User Guide.

    See

    AWSEC2EnableAddressTransferRequest

    See

    AWSEC2EnableAddressTransferResult

    Declaration

    Objective-C

    - (id)enableAddressTransfer:
        (nonnull AWSEC2EnableAddressTransferRequest *)request;

    Swift

    func enableAddressTransfer(_ request: AWSEC2EnableAddressTransferRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableAddressTransfer service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableAddressTransferResult.

  • Enables Elastic IP address transfer. For more information, see Transfer Elastic IP addresses in the Amazon VPC User Guide.

    See

    AWSEC2EnableAddressTransferRequest

    See

    AWSEC2EnableAddressTransferResult

    Declaration

    Objective-C

    - (void)enableAddressTransfer:
                (nonnull AWSEC2EnableAddressTransferRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2EnableAddressTransferResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func enableAddressTransfer(_ request: AWSEC2EnableAddressTransferRequest) async throws -> AWSEC2EnableAddressTransferResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableAddressTransfer service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables Infrastructure Performance subscriptions.

    See

    AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionRequest

    See

    AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionResult

    Declaration

    Objective-C

    - (id)enableAwsNetworkPerformanceMetricSubscription:
        (nonnull AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionRequest *)
            request;

    Swift

    func enableAwsNetworkPerformanceMetricSubscription(_ request: AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableAwsNetworkPerformanceMetricSubscription service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionResult.

  • Enables Infrastructure Performance subscriptions.

    See

    AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionRequest

    See

    AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionResult

    Declaration

    Objective-C

    - (void)
        enableAwsNetworkPerformanceMetricSubscription:
            (nonnull AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionRequest *)
                request
                                    completionHandler:
                                        (void (^_Nullable)(
                                            AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionResult
                                                *_Nullable,
                                            NSError *_Nullable))completionHandler;

    Swift

    func enableAwsNetworkPerformanceMetricSubscription(_ request: AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionRequest) async throws -> AWSEC2EnableAwsNetworkPerformanceMetricSubscriptionResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableAwsNetworkPerformanceMetricSubscription service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables EBS encryption by default for your account in the current Region.

    After you enable encryption by default, the EBS volumes that you create are always encrypted, either using the default KMS key or the KMS key that you specified when you created each volume. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    You can specify the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    Enabling encryption by default has no effect on the encryption status of your existing volumes.

    After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported instance types.

    See

    AWSEC2EnableEbsEncryptionByDefaultRequest

    See

    AWSEC2EnableEbsEncryptionByDefaultResult

    Declaration

    Objective-C

    - (id)enableEbsEncryptionByDefault:
        (nonnull AWSEC2EnableEbsEncryptionByDefaultRequest *)request;

    Swift

    func enableEbsEncryption(byDefault request: AWSEC2EnableEbsEncryptionByDefaultRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableEbsEncryptionByDefault service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableEbsEncryptionByDefaultResult.

  • Enables EBS encryption by default for your account in the current Region.

    After you enable encryption by default, the EBS volumes that you create are always encrypted, either using the default KMS key or the KMS key that you specified when you created each volume. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    You can specify the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    Enabling encryption by default has no effect on the encryption status of your existing volumes.

    After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported instance types.

    See

    AWSEC2EnableEbsEncryptionByDefaultRequest

    See

    AWSEC2EnableEbsEncryptionByDefaultResult

    Declaration

    Objective-C

    - (void)enableEbsEncryptionByDefault:
                (nonnull AWSEC2EnableEbsEncryptionByDefaultRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2EnableEbsEncryptionByDefaultResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func enableEbsEncryption(byDefault request: AWSEC2EnableEbsEncryptionByDefaultRequest) async throws -> AWSEC2EnableEbsEncryptionByDefaultResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableEbsEncryptionByDefault service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster. To create the optimized Windows image, Amazon EC2 launches an instance and runs through Sysprep steps, rebooting as required. Then it creates a set of reserved snapshots that are used for subsequent launches. The reserved snapshots are automatically replenished as they are used, depending on your settings for launch frequency.

    You can only change these settings for Windows AMIs that you own or that have been shared with you.

    See

    AWSEC2EnableFastLaunchRequest

    See

    AWSEC2EnableFastLaunchResult

    Declaration

    Objective-C

    - (id)enableFastLaunch:(nonnull AWSEC2EnableFastLaunchRequest *)request;

    Swift

    func enableFastLaunch(_ request: AWSEC2EnableFastLaunchRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableFastLaunch service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableFastLaunchResult.

  • When you enable Windows fast launch for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster. To create the optimized Windows image, Amazon EC2 launches an instance and runs through Sysprep steps, rebooting as required. Then it creates a set of reserved snapshots that are used for subsequent launches. The reserved snapshots are automatically replenished as they are used, depending on your settings for launch frequency.

    You can only change these settings for Windows AMIs that you own or that have been shared with you.

    See

    AWSEC2EnableFastLaunchRequest

    See

    AWSEC2EnableFastLaunchResult

    Declaration

    Objective-C

    - (void)enableFastLaunch:(nonnull AWSEC2EnableFastLaunchRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2EnableFastLaunchResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func enableFastLaunch(_ request: AWSEC2EnableFastLaunchRequest) async throws -> AWSEC2EnableFastLaunchResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableFastLaunch service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

    You get the full benefit of fast snapshot restores after they enter the enabled state. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.

    For more information, see Amazon EBS fast snapshot restore in the Amazon EBS User Guide.

    See

    AWSEC2EnableFastSnapshotRestoresRequest

    See

    AWSEC2EnableFastSnapshotRestoresResult

    Declaration

    Objective-C

    - (id)enableFastSnapshotRestores:
        (nonnull AWSEC2EnableFastSnapshotRestoresRequest *)request;

    Swift

    func enableFastSnapshotRestores(_ request: AWSEC2EnableFastSnapshotRestoresRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableFastSnapshotRestores service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableFastSnapshotRestoresResult.

  • Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.

    You get the full benefit of fast snapshot restores after they enter the enabled state. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.

    For more information, see Amazon EBS fast snapshot restore in the Amazon EBS User Guide.

    See

    AWSEC2EnableFastSnapshotRestoresRequest

    See

    AWSEC2EnableFastSnapshotRestoresResult

    Declaration

    Objective-C

    - (void)enableFastSnapshotRestores:
                (nonnull AWSEC2EnableFastSnapshotRestoresRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2EnableFastSnapshotRestoresResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func enableFastSnapshotRestores(_ request: AWSEC2EnableFastSnapshotRestoresRequest) async throws -> AWSEC2EnableFastSnapshotRestoresResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableFastSnapshotRestores service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Re-enables a disabled AMI. The re-enabled AMI is marked as available and can be used for instance launches, appears in describe operations, and can be shared. Amazon Web Services accounts, organizations, and Organizational Units that lost access to the AMI when it was disabled do not regain access automatically. Once the AMI is available, it can be shared with them again.

    Only the AMI owner can re-enable a disabled AMI.

    For more information, see Disable an AMI in the Amazon EC2 User Guide.

    See

    AWSEC2EnableImageRequest

    See

    AWSEC2EnableImageResult

    Declaration

    Objective-C

    - (id)enableImage:(nonnull AWSEC2EnableImageRequest *)request;

    Swift

    func enableImage(_ request: AWSEC2EnableImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableImageResult.

  • Re-enables a disabled AMI. The re-enabled AMI is marked as available and can be used for instance launches, appears in describe operations, and can be shared. Amazon Web Services accounts, organizations, and Organizational Units that lost access to the AMI when it was disabled do not regain access automatically. Once the AMI is available, it can be shared with them again.

    Only the AMI owner can re-enable a disabled AMI.

    For more information, see Disable an AMI in the Amazon EC2 User Guide.

    See

    AWSEC2EnableImageRequest

    See

    AWSEC2EnableImageResult

    Declaration

    Objective-C

    - (void)enableImage:(nonnull AWSEC2EnableImageRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2EnableImageResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func enableImage(_ request: AWSEC2EnableImageRequest) async throws -> AWSEC2EnableImageResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableImage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables block public access for AMIs at the account level in the specified Amazon Web Services Region. This prevents the public sharing of your AMIs. However, if you already have public AMIs, they will remain publicly available.

    The API can take up to 10 minutes to configure this setting. During this time, if you run GetImageBlockPublicAccessState, the response will be unblocked. When the API has completed the configuration, the response will be block-new-sharing.

    For more information, see Block public access to your AMIs in the Amazon EC2 User Guide.

    See

    AWSEC2EnableImageBlockPublicAccessRequest

    See

    AWSEC2EnableImageBlockPublicAccessResult

    Declaration

    Objective-C

    - (id)enableImageBlockPublicAccess:
        (nonnull AWSEC2EnableImageBlockPublicAccessRequest *)request;

    Swift

    func enableImageBlockPublicAccess(_ request: AWSEC2EnableImageBlockPublicAccessRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableImageBlockPublicAccess service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableImageBlockPublicAccessResult.

  • Enables block public access for AMIs at the account level in the specified Amazon Web Services Region. This prevents the public sharing of your AMIs. However, if you already have public AMIs, they will remain publicly available.

    The API can take up to 10 minutes to configure this setting. During this time, if you run GetImageBlockPublicAccessState, the response will be unblocked. When the API has completed the configuration, the response will be block-new-sharing.

    For more information, see Block public access to your AMIs in the Amazon EC2 User Guide.

    See

    AWSEC2EnableImageBlockPublicAccessRequest

    See

    AWSEC2EnableImageBlockPublicAccessResult

    Declaration

    Objective-C

    - (void)enableImageBlockPublicAccess:
                (nonnull AWSEC2EnableImageBlockPublicAccessRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2EnableImageBlockPublicAccessResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func enableImageBlockPublicAccess(_ request: AWSEC2EnableImageBlockPublicAccessRequest) async throws -> AWSEC2EnableImageBlockPublicAccessResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableImageBlockPublicAccess service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables deprecation of the specified AMI at the specified date and time.

    For more information, see Deprecate an AMI in the Amazon EC2 User Guide.

    See

    AWSEC2EnableImageDeprecationRequest

    See

    AWSEC2EnableImageDeprecationResult

    Declaration

    Objective-C

    - (id)enableImageDeprecation:
        (nonnull AWSEC2EnableImageDeprecationRequest *)request;

    Swift

    func enableImageDeprecation(_ request: AWSEC2EnableImageDeprecationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableImageDeprecation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableImageDeprecationResult.

  • Enables deprecation of the specified AMI at the specified date and time.

    For more information, see Deprecate an AMI in the Amazon EC2 User Guide.

    See

    AWSEC2EnableImageDeprecationRequest

    See

    AWSEC2EnableImageDeprecationResult

    Declaration

    Objective-C

    - (void)
        enableImageDeprecation:
            (nonnull AWSEC2EnableImageDeprecationRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2EnableImageDeprecationResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func enableImageDeprecation(_ request: AWSEC2EnableImageDeprecationRequest) async throws -> AWSEC2EnableImageDeprecationResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableImageDeprecation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables deregistration protection for an AMI. When deregistration protection is enabled, the AMI can’t be deregistered.

    To allow the AMI to be deregistered, you must first disable deregistration protection using DisableImageDeregistrationProtection.

    For more information, see Protect an AMI from deregistration in the Amazon EC2 User Guide.

    See

    AWSEC2EnableImageDeregistrationProtectionRequest

    See

    AWSEC2EnableImageDeregistrationProtectionResult

    Declaration

    Objective-C

    - (id)enableImageDeregistrationProtection:
        (nonnull AWSEC2EnableImageDeregistrationProtectionRequest *)request;

    Swift

    func enableImageDeregistrationProtection(_ request: AWSEC2EnableImageDeregistrationProtectionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableImageDeregistrationProtection service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableImageDeregistrationProtectionResult.

  • Enables deregistration protection for an AMI. When deregistration protection is enabled, the AMI can’t be deregistered.

    To allow the AMI to be deregistered, you must first disable deregistration protection using DisableImageDeregistrationProtection.

    For more information, see Protect an AMI from deregistration in the Amazon EC2 User Guide.

    See

    AWSEC2EnableImageDeregistrationProtectionRequest

    See

    AWSEC2EnableImageDeregistrationProtectionResult

    Declaration

    Objective-C

    - (void)
        enableImageDeregistrationProtection:
            (nonnull AWSEC2EnableImageDeregistrationProtectionRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2EnableImageDeregistrationProtectionResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func enableImageDeregistrationProtection(_ request: AWSEC2EnableImageDeregistrationProtectionRequest) async throws -> AWSEC2EnableImageDeregistrationProtectionResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableImageDeregistrationProtection service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enable an Organizations member account as the IPAM admin account. You cannot select the Organizations management account as the IPAM admin account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.

    See

    AWSEC2EnableIpamOrganizationAdminAccountRequest

    See

    AWSEC2EnableIpamOrganizationAdminAccountResult

    Declaration

    Objective-C

    - (id)enableIpamOrganizationAdminAccount:
        (nonnull AWSEC2EnableIpamOrganizationAdminAccountRequest *)request;

    Swift

    func enableIpamOrganizationAdminAccount(_ request: AWSEC2EnableIpamOrganizationAdminAccountRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableIpamOrganizationAdminAccount service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableIpamOrganizationAdminAccountResult.

  • Enable an Organizations member account as the IPAM admin account. You cannot select the Organizations management account as the IPAM admin account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.

    See

    AWSEC2EnableIpamOrganizationAdminAccountRequest

    See

    AWSEC2EnableIpamOrganizationAdminAccountResult

    Declaration

    Objective-C

    - (void)enableIpamOrganizationAdminAccount:
                (nonnull AWSEC2EnableIpamOrganizationAdminAccountRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2EnableIpamOrganizationAdminAccountResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func enableIpamOrganizationAdminAccount(_ request: AWSEC2EnableIpamOrganizationAdminAccountRequest) async throws -> AWSEC2EnableIpamOrganizationAdminAccountResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableIpamOrganizationAdminAccount service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Establishes a trust relationship between Reachability Analyzer and Organizations. This operation must be performed by the management account for the organization.

    After you establish a trust relationship, a user in the management account or a delegated administrator account can run a cross-account analysis using resources from the member accounts.

    See

    AWSEC2EnableReachabilityAnalyzerOrganizationSharingRequest

    See

    AWSEC2EnableReachabilityAnalyzerOrganizationSharingResult

    Declaration

    Objective-C

    - (id)enableReachabilityAnalyzerOrganizationSharing:
        (nonnull AWSEC2EnableReachabilityAnalyzerOrganizationSharingRequest *)
            request;

    Swift

    func enableReachabilityAnalyzerOrganizationSharing(_ request: AWSEC2EnableReachabilityAnalyzerOrganizationSharingRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableReachabilityAnalyzerOrganizationSharing service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableReachabilityAnalyzerOrganizationSharingResult.

  • Establishes a trust relationship between Reachability Analyzer and Organizations. This operation must be performed by the management account for the organization.

    After you establish a trust relationship, a user in the management account or a delegated administrator account can run a cross-account analysis using resources from the member accounts.

    See

    AWSEC2EnableReachabilityAnalyzerOrganizationSharingRequest

    See

    AWSEC2EnableReachabilityAnalyzerOrganizationSharingResult

    Declaration

    Objective-C

    - (void)
        enableReachabilityAnalyzerOrganizationSharing:
            (nonnull AWSEC2EnableReachabilityAnalyzerOrganizationSharingRequest *)
                request
                                    completionHandler:
                                        (void (^_Nullable)(
                                            AWSEC2EnableReachabilityAnalyzerOrganizationSharingResult
                                                *_Nullable,
                                            NSError *_Nullable))completionHandler;

    Swift

    func enableReachabilityAnalyzerOrganizationSharing(_ request: AWSEC2EnableReachabilityAnalyzerOrganizationSharingRequest) async throws -> AWSEC2EnableReachabilityAnalyzerOrganizationSharingResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableReachabilityAnalyzerOrganizationSharing service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.

    See

    AWSEC2EnableSerialConsoleAccessRequest

    See

    AWSEC2EnableSerialConsoleAccessResult

    Declaration

    Objective-C

    - (id)enableSerialConsoleAccess:
        (nonnull AWSEC2EnableSerialConsoleAccessRequest *)request;

    Swift

    func enableSerialConsoleAccess(_ request: AWSEC2EnableSerialConsoleAccessRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableSerialConsoleAccess service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableSerialConsoleAccessResult.

  • Enables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.

    See

    AWSEC2EnableSerialConsoleAccessRequest

    See

    AWSEC2EnableSerialConsoleAccessResult

    Declaration

    Objective-C

    - (void)enableSerialConsoleAccess:
                (nonnull AWSEC2EnableSerialConsoleAccessRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2EnableSerialConsoleAccessResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func enableSerialConsoleAccess(_ request: AWSEC2EnableSerialConsoleAccessRequest) async throws -> AWSEC2EnableSerialConsoleAccessResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableSerialConsoleAccess service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables or modifies the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you enable block public access for snapshots in a Region, users can no longer request public sharing for snapshots in that Region. Snapshots that are already publicly shared are either treated as private or they remain publicly shared, depending on the State that you specify.

    If block public access is enabled in block-all-sharing mode, and you change the mode to block-new-sharing, all snapshots that were previously publicly shared are no longer treated as private and they become publicly accessible again.

    For more information, see Block public access for snapshots in the Amazon EBS User Guide.

    See

    AWSEC2EnableSnapshotBlockPublicAccessRequest

    See

    AWSEC2EnableSnapshotBlockPublicAccessResult

    Declaration

    Objective-C

    - (id)enableSnapshotBlockPublicAccess:
        (nonnull AWSEC2EnableSnapshotBlockPublicAccessRequest *)request;

    Swift

    func enableSnapshotBlockPublicAccess(_ request: AWSEC2EnableSnapshotBlockPublicAccessRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableSnapshotBlockPublicAccess service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableSnapshotBlockPublicAccessResult.

  • Enables or modifies the block public access for snapshots setting at the account level for the specified Amazon Web Services Region. After you enable block public access for snapshots in a Region, users can no longer request public sharing for snapshots in that Region. Snapshots that are already publicly shared are either treated as private or they remain publicly shared, depending on the State that you specify.

    If block public access is enabled in block-all-sharing mode, and you change the mode to block-new-sharing, all snapshots that were previously publicly shared are no longer treated as private and they become publicly accessible again.

    For more information, see Block public access for snapshots in the Amazon EBS User Guide.

    See

    AWSEC2EnableSnapshotBlockPublicAccessRequest

    See

    AWSEC2EnableSnapshotBlockPublicAccessResult

    Declaration

    Objective-C

    - (void)enableSnapshotBlockPublicAccess:
                (nonnull AWSEC2EnableSnapshotBlockPublicAccessRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2EnableSnapshotBlockPublicAccessResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func enableSnapshotBlockPublicAccess(_ request: AWSEC2EnableSnapshotBlockPublicAccessRequest) async throws -> AWSEC2EnableSnapshotBlockPublicAccessResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableSnapshotBlockPublicAccess service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables the specified attachment to propagate routes to the specified propagation route table.

    See

    AWSEC2EnableTransitGatewayRouteTablePropagationRequest

    See

    AWSEC2EnableTransitGatewayRouteTablePropagationResult

    Declaration

    Objective-C

    - (id)enableTransitGatewayRouteTablePropagation:
        (nonnull AWSEC2EnableTransitGatewayRouteTablePropagationRequest *)request;

    Swift

    func enableTransitGatewayRouteTablePropagation(_ request: AWSEC2EnableTransitGatewayRouteTablePropagationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableTransitGatewayRouteTablePropagation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableTransitGatewayRouteTablePropagationResult.

  • Enables the specified attachment to propagate routes to the specified propagation route table.

    See

    AWSEC2EnableTransitGatewayRouteTablePropagationRequest

    See

    AWSEC2EnableTransitGatewayRouteTablePropagationResult

    Declaration

    Objective-C

    - (void)
        enableTransitGatewayRouteTablePropagation:
            (nonnull AWSEC2EnableTransitGatewayRouteTablePropagationRequest *)
                request
                                completionHandler:
                                    (void (^_Nullable)(
                                        AWSEC2EnableTransitGatewayRouteTablePropagationResult
                                            *_Nullable,
                                        NSError *_Nullable))completionHandler;

    Swift

    func enableTransitGatewayRouteTablePropagation(_ request: AWSEC2EnableTransitGatewayRouteTablePropagationRequest) async throws -> AWSEC2EnableTransitGatewayRouteTablePropagationResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableTransitGatewayRouteTablePropagation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.

    See

    AWSEC2EnableVgwRoutePropagationRequest

    Declaration

    Objective-C

    - (id)enableVgwRoutePropagation:
        (nonnull AWSEC2EnableVgwRoutePropagationRequest *)request;

    Swift

    func enableVgwRoutePropagation(_ request: AWSEC2EnableVgwRoutePropagationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableVgwRoutePropagation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.

    See

    AWSEC2EnableVgwRoutePropagationRequest

    Declaration

    Objective-C

    - (void)enableVgwRoutePropagation:
                (nonnull AWSEC2EnableVgwRoutePropagationRequest *)request
                    completionHandler:
                        (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func enableVgwRoutePropagation(_ request: AWSEC2EnableVgwRoutePropagationRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the EnableVgwRoutePropagation service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.

    See

    AWSEC2EnableVolumeIORequest

    Declaration

    Objective-C

    - (id)enableVolumeIO:(nonnull AWSEC2EnableVolumeIORequest *)request;

    Swift

    func enableVolumeIO(_ request: AWSEC2EnableVolumeIORequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableVolumeIO service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.

    See

    AWSEC2EnableVolumeIORequest

    Declaration

    Objective-C

    - (void)enableVolumeIO:(nonnull AWSEC2EnableVolumeIORequest *)request
         completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func enableVolumeIO(_ request: AWSEC2EnableVolumeIORequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the EnableVolumeIO service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges.

    See

    AWSEC2EnableVpcClassicLinkRequest

    See

    AWSEC2EnableVpcClassicLinkResult

    Declaration

    Objective-C

    - (id)enableVpcClassicLink:(nonnull AWSEC2EnableVpcClassicLinkRequest *)request;

    Swift

    func enableVpcClassicLink(_ request: AWSEC2EnableVpcClassicLinkRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableVpcClassicLink service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableVpcClassicLinkResult.

  • This action is deprecated.

    Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the 10.0.0.0/8 IP address range, excluding local routes for VPCs in the 10.0.0.0/16 and 10.1.0.0/16 IP address ranges.

    See

    AWSEC2EnableVpcClassicLinkRequest

    See

    AWSEC2EnableVpcClassicLinkResult

    Declaration

    Objective-C

    - (void)enableVpcClassicLink:
                (nonnull AWSEC2EnableVpcClassicLinkRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2EnableVpcClassicLinkResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func enableVpcClassicLink(_ request: AWSEC2EnableVpcClassicLinkRequest) async throws -> AWSEC2EnableVpcClassicLinkResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableVpcClassicLink service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it’s linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance.

    You must specify a VPC ID in the request.

    See

    AWSEC2EnableVpcClassicLinkDnsSupportRequest

    See

    AWSEC2EnableVpcClassicLinkDnsSupportResult

    Declaration

    Objective-C

    - (id)enableVpcClassicLinkDnsSupport:
        (nonnull AWSEC2EnableVpcClassicLinkDnsSupportRequest *)request;

    Swift

    func enableVpcClassicLinkDnsSupport(_ request: AWSEC2EnableVpcClassicLinkDnsSupportRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the EnableVpcClassicLinkDnsSupport service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2EnableVpcClassicLinkDnsSupportResult.

  • This action is deprecated.

    Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it’s linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance.

    You must specify a VPC ID in the request.

    See

    AWSEC2EnableVpcClassicLinkDnsSupportRequest

    See

    AWSEC2EnableVpcClassicLinkDnsSupportResult

    Declaration

    Objective-C

    - (void)
        enableVpcClassicLinkDnsSupport:
            (nonnull AWSEC2EnableVpcClassicLinkDnsSupportRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2EnableVpcClassicLinkDnsSupportResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func enableVpcClassicLinkDnsSupport(_ request: AWSEC2EnableVpcClassicLinkDnsSupportRequest) async throws -> AWSEC2EnableVpcClassicLinkDnsSupportResult

    Parameters

    request

    A container for the necessary parameters to execute the EnableVpcClassicLinkDnsSupport service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Downloads the client certificate revocation list for the specified Client VPN endpoint.

    See

    AWSEC2ExportClientVpnClientCertificateRevocationListRequest

    See

    AWSEC2ExportClientVpnClientCertificateRevocationListResult

    Declaration

    Objective-C

    - (id)exportClientVpnClientCertificateRevocationList:
        (nonnull AWSEC2ExportClientVpnClientCertificateRevocationListRequest *)
            request;

    Swift

    func exportClientVpnClientCertificateRevocationList(_ request: AWSEC2ExportClientVpnClientCertificateRevocationListRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ExportClientVpnClientCertificateRevocationList service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ExportClientVpnClientCertificateRevocationListResult.

  • Downloads the client certificate revocation list for the specified Client VPN endpoint.

    See

    AWSEC2ExportClientVpnClientCertificateRevocationListRequest

    See

    AWSEC2ExportClientVpnClientCertificateRevocationListResult

    Declaration

    Objective-C

    - (void)
        exportClientVpnClientCertificateRevocationList:
            (nonnull AWSEC2ExportClientVpnClientCertificateRevocationListRequest *)
                request
                                     completionHandler:
                                         (void (^_Nullable)(
                                             AWSEC2ExportClientVpnClientCertificateRevocationListResult
                                                 *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func exportClientVpnClientCertificateRevocationList(_ request: AWSEC2ExportClientVpnClientCertificateRevocationListRequest) async throws -> AWSEC2ExportClientVpnClientCertificateRevocationListResult

    Parameters

    request

    A container for the necessary parameters to execute the ExportClientVpnClientCertificateRevocationList service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. The Client VPN endpoint configuration file includes the Client VPN endpoint and certificate information clients need to establish a connection with the Client VPN endpoint.

    See

    AWSEC2ExportClientVpnClientConfigurationRequest

    See

    AWSEC2ExportClientVpnClientConfigurationResult

    Declaration

    Objective-C

    - (id)exportClientVpnClientConfiguration:
        (nonnull AWSEC2ExportClientVpnClientConfigurationRequest *)request;

    Swift

    func exportClientVpnClientConfiguration(_ request: AWSEC2ExportClientVpnClientConfigurationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ExportClientVpnClientConfiguration service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ExportClientVpnClientConfigurationResult.

  • Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. The Client VPN endpoint configuration file includes the Client VPN endpoint and certificate information clients need to establish a connection with the Client VPN endpoint.

    See

    AWSEC2ExportClientVpnClientConfigurationRequest

    See

    AWSEC2ExportClientVpnClientConfigurationResult

    Declaration

    Objective-C

    - (void)exportClientVpnClientConfiguration:
                (nonnull AWSEC2ExportClientVpnClientConfigurationRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2ExportClientVpnClientConfigurationResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func exportClientVpnClientConfiguration(_ request: AWSEC2ExportClientVpnClientConfigurationRequest) async throws -> AWSEC2ExportClientVpnClientConfigurationResult

    Parameters

    request

    A container for the necessary parameters to execute the ExportClientVpnClientConfiguration service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM directly from an Amazon Machine Image (AMI) in the VM Import/Export User Guide.

    See

    AWSEC2ExportImageRequest

    See

    AWSEC2ExportImageResult

    Declaration

    Objective-C

    - (id)exportImage:(nonnull AWSEC2ExportImageRequest *)request;

    Swift

    func exportImage(_ request: AWSEC2ExportImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ExportImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ExportImageResult.

  • Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM directly from an Amazon Machine Image (AMI) in the VM Import/Export User Guide.

    See

    AWSEC2ExportImageRequest

    See

    AWSEC2ExportImageResult

    Declaration

    Objective-C

    - (void)exportImage:(nonnull AWSEC2ExportImageRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2ExportImageResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func exportImage(_ request: AWSEC2ExportImageRequest) async throws -> AWSEC2ExportImageResult

    Parameters

    request

    A container for the necessary parameters to execute the ExportImage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range.

    The routes are saved to the specified bucket in a JSON file. For more information, see Export route tables to Amazon S3 in the Amazon Web Services Transit Gateways Guide.

    See

    AWSEC2ExportTransitGatewayRoutesRequest

    See

    AWSEC2ExportTransitGatewayRoutesResult

    Declaration

    Objective-C

    - (id)exportTransitGatewayRoutes:
        (nonnull AWSEC2ExportTransitGatewayRoutesRequest *)request;

    Swift

    func exportTransitGatewayRoutes(_ request: AWSEC2ExportTransitGatewayRoutesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ExportTransitGatewayRoutes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ExportTransitGatewayRoutesResult.

  • Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range.

    The routes are saved to the specified bucket in a JSON file. For more information, see Export route tables to Amazon S3 in the Amazon Web Services Transit Gateways Guide.

    See

    AWSEC2ExportTransitGatewayRoutesRequest

    See

    AWSEC2ExportTransitGatewayRoutesResult

    Declaration

    Objective-C

    - (void)exportTransitGatewayRoutes:
                (nonnull AWSEC2ExportTransitGatewayRoutesRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2ExportTransitGatewayRoutesResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func exportTransitGatewayRoutes(_ request: AWSEC2ExportTransitGatewayRoutesRequest) async throws -> AWSEC2ExportTransitGatewayRoutesResult

    Parameters

    request

    A container for the necessary parameters to execute the ExportTransitGatewayRoutes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Returns the IAM roles that are associated with the specified ACM (ACM) certificate. It also returns the name of the Amazon S3 bucket and the Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored, and the ARN of the KMS key that’s used to encrypt the private key.

    See

    AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest

    See

    AWSEC2GetAssociatedEnclaveCertificateIamRolesResult

    Declaration

    Objective-C

    - (id)getAssociatedEnclaveCertificateIamRoles:
        (nonnull AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest *)request;

    Swift

    func getAssociatedEnclaveCertificateIamRoles(_ request: AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetAssociatedEnclaveCertificateIamRoles service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetAssociatedEnclaveCertificateIamRolesResult.

  • Returns the IAM roles that are associated with the specified ACM (ACM) certificate. It also returns the name of the Amazon S3 bucket and the Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored, and the ARN of the KMS key that’s used to encrypt the private key.

    See

    AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest

    See

    AWSEC2GetAssociatedEnclaveCertificateIamRolesResult

    Declaration

    Objective-C

    - (void)
        getAssociatedEnclaveCertificateIamRoles:
            (nonnull AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest *)request
                              completionHandler:
                                  (void (^_Nullable)(
                                      AWSEC2GetAssociatedEnclaveCertificateIamRolesResult
                                          *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func associatedEnclaveCertificateIamRoles(_ request: AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest) async throws -> AWSEC2GetAssociatedEnclaveCertificateIamRolesResult

    Parameters

    request

    A container for the necessary parameters to execute the GetAssociatedEnclaveCertificateIamRoles service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool.

    See

    AWSEC2GetAssociatedIpv6PoolCidrsRequest

    See

    AWSEC2GetAssociatedIpv6PoolCidrsResult

    Declaration

    Objective-C

    - (id)getAssociatedIpv6PoolCidrs:
        (nonnull AWSEC2GetAssociatedIpv6PoolCidrsRequest *)request;

    Swift

    func getAssociatedIpv6PoolCidrs(_ request: AWSEC2GetAssociatedIpv6PoolCidrsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetAssociatedIpv6PoolCidrs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetAssociatedIpv6PoolCidrsResult.

  • Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool.

    See

    AWSEC2GetAssociatedIpv6PoolCidrsRequest

    See

    AWSEC2GetAssociatedIpv6PoolCidrsResult

    Declaration

    Objective-C

    - (void)getAssociatedIpv6PoolCidrs:
                (nonnull AWSEC2GetAssociatedIpv6PoolCidrsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2GetAssociatedIpv6PoolCidrsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func associatedIpv6PoolCidrs(_ request: AWSEC2GetAssociatedIpv6PoolCidrsRequest) async throws -> AWSEC2GetAssociatedIpv6PoolCidrsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetAssociatedIpv6PoolCidrs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets network performance data.

    See

    AWSEC2GetAwsNetworkPerformanceDataRequest

    See

    AWSEC2GetAwsNetworkPerformanceDataResult

    Declaration

    Objective-C

    - (id)getAwsNetworkPerformanceData:
        (nonnull AWSEC2GetAwsNetworkPerformanceDataRequest *)request;

    Swift

    func getAwsNetworkPerformanceData(_ request: AWSEC2GetAwsNetworkPerformanceDataRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetAwsNetworkPerformanceData service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetAwsNetworkPerformanceDataResult.

  • Gets network performance data.

    See

    AWSEC2GetAwsNetworkPerformanceDataRequest

    See

    AWSEC2GetAwsNetworkPerformanceDataResult

    Declaration

    Objective-C

    - (void)getAwsNetworkPerformanceData:
                (nonnull AWSEC2GetAwsNetworkPerformanceDataRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2GetAwsNetworkPerformanceDataResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func awsNetworkPerformanceData(_ request: AWSEC2GetAwsNetworkPerformanceDataRequest) async throws -> AWSEC2GetAwsNetworkPerformanceDataResult

    Parameters

    request

    A container for the necessary parameters to execute the GetAwsNetworkPerformanceData service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each Amazon Web Services account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner’s usage.

    See

    AWSEC2GetCapacityReservationUsageRequest

    See

    AWSEC2GetCapacityReservationUsageResult

    Declaration

    Objective-C

    - (id)getCapacityReservationUsage:
        (nonnull AWSEC2GetCapacityReservationUsageRequest *)request;

    Swift

    func getCapacityReservationUsage(_ request: AWSEC2GetCapacityReservationUsageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetCapacityReservationUsage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetCapacityReservationUsageResult.

  • Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each Amazon Web Services account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner’s usage.

    See

    AWSEC2GetCapacityReservationUsageRequest

    See

    AWSEC2GetCapacityReservationUsageResult

    Declaration

    Objective-C

    - (void)getCapacityReservationUsage:
                (nonnull AWSEC2GetCapacityReservationUsageRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2GetCapacityReservationUsageResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func capacityReservationUsage(_ request: AWSEC2GetCapacityReservationUsageRequest) async throws -> AWSEC2GetCapacityReservationUsageResult

    Parameters

    request

    A container for the necessary parameters to execute the GetCapacityReservationUsage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the allocations from the specified customer-owned address pool.

    See

    AWSEC2GetCoipPoolUsageRequest

    See

    AWSEC2GetCoipPoolUsageResult

    Declaration

    Objective-C

    - (id)getCoipPoolUsage:(nonnull AWSEC2GetCoipPoolUsageRequest *)request;

    Swift

    func getCoipPoolUsage(_ request: AWSEC2GetCoipPoolUsageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetCoipPoolUsage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetCoipPoolUsageResult.

  • Describes the allocations from the specified customer-owned address pool.

    See

    AWSEC2GetCoipPoolUsageRequest

    See

    AWSEC2GetCoipPoolUsageResult

    Declaration

    Objective-C

    - (void)getCoipPoolUsage:(nonnull AWSEC2GetCoipPoolUsageRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2GetCoipPoolUsageResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func coipPoolUsage(_ request: AWSEC2GetCoipPoolUsageRequest) async throws -> AWSEC2GetCoipPoolUsageResult

    Parameters

    request

    A container for the necessary parameters to execute the GetCoipPoolUsage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.

    By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.

    You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.

    For more information, see Instance console output in the Amazon EC2 User Guide.

    See

    AWSEC2GetConsoleOutputRequest

    See

    AWSEC2GetConsoleOutputResult

    Declaration

    Objective-C

    - (id)getConsoleOutput:(nonnull AWSEC2GetConsoleOutputRequest *)request;

    Swift

    func getConsoleOutput(_ request: AWSEC2GetConsoleOutputRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetConsoleOutput service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetConsoleOutputResult.

  • Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.

    By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.

    You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.

    For more information, see Instance console output in the Amazon EC2 User Guide.

    See

    AWSEC2GetConsoleOutputRequest

    See

    AWSEC2GetConsoleOutputResult

    Declaration

    Objective-C

    - (void)getConsoleOutput:(nonnull AWSEC2GetConsoleOutputRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2GetConsoleOutputResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func consoleOutput(_ request: AWSEC2GetConsoleOutputRequest) async throws -> AWSEC2GetConsoleOutputResult

    Parameters

    request

    A container for the necessary parameters to execute the GetConsoleOutput service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

    The returned content is Base64-encoded.

    For more information, see Instance console output in the Amazon EC2 User Guide.

    See

    AWSEC2GetConsoleScreenshotRequest

    See

    AWSEC2GetConsoleScreenshotResult

    Declaration

    Objective-C

    - (id)getConsoleScreenshot:(nonnull AWSEC2GetConsoleScreenshotRequest *)request;

    Swift

    func getConsoleScreenshot(_ request: AWSEC2GetConsoleScreenshotRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetConsoleScreenshot service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetConsoleScreenshotResult.

  • Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.

    The returned content is Base64-encoded.

    For more information, see Instance console output in the Amazon EC2 User Guide.

    See

    AWSEC2GetConsoleScreenshotRequest

    See

    AWSEC2GetConsoleScreenshotResult

    Declaration

    Objective-C

    - (void)getConsoleScreenshot:
                (nonnull AWSEC2GetConsoleScreenshotRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2GetConsoleScreenshotResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func consoleScreenshot(_ request: AWSEC2GetConsoleScreenshotRequest) async throws -> AWSEC2GetConsoleScreenshotResult

    Parameters

    request

    A container for the necessary parameters to execute the GetConsoleScreenshot service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the default credit option for CPU usage of a burstable performance instance family.

    For more information, see Burstable performance instances in the Amazon EC2 User Guide.

    See

    AWSEC2GetDefaultCreditSpecificationRequest

    See

    AWSEC2GetDefaultCreditSpecificationResult

    Declaration

    Objective-C

    - (id)getDefaultCreditSpecification:
        (nonnull AWSEC2GetDefaultCreditSpecificationRequest *)request;

    Swift

    func getDefaultCreditSpecification(_ request: AWSEC2GetDefaultCreditSpecificationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetDefaultCreditSpecification service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetDefaultCreditSpecificationResult.

  • Describes the default credit option for CPU usage of a burstable performance instance family.

    For more information, see Burstable performance instances in the Amazon EC2 User Guide.

    See

    AWSEC2GetDefaultCreditSpecificationRequest

    See

    AWSEC2GetDefaultCreditSpecificationResult

    Declaration

    Objective-C

    - (void)
        getDefaultCreditSpecification:
            (nonnull AWSEC2GetDefaultCreditSpecificationRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2GetDefaultCreditSpecificationResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func defaultCreditSpecification(_ request: AWSEC2GetDefaultCreditSpecificationRequest) async throws -> AWSEC2GetDefaultCreditSpecificationResult

    Parameters

    request

    A container for the necessary parameters to execute the GetDefaultCreditSpecification service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes the default KMS key for EBS encryption by default for your account in this Region. You can change the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2GetEbsDefaultKmsKeyIdRequest

    See

    AWSEC2GetEbsDefaultKmsKeyIdResult

    Declaration

    Objective-C

    - (id)getEbsDefaultKmsKeyId:
        (nonnull AWSEC2GetEbsDefaultKmsKeyIdRequest *)request;

    Swift

    func getEbsDefaultKmsKeyId(_ request: AWSEC2GetEbsDefaultKmsKeyIdRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetEbsDefaultKmsKeyId service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetEbsDefaultKmsKeyIdResult.

  • Describes the default KMS key for EBS encryption by default for your account in this Region. You can change the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.

    For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2GetEbsDefaultKmsKeyIdRequest

    See

    AWSEC2GetEbsDefaultKmsKeyIdResult

    Declaration

    Objective-C

    - (void)getEbsDefaultKmsKeyId:
                (nonnull AWSEC2GetEbsDefaultKmsKeyIdRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2GetEbsDefaultKmsKeyIdResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func ebsDefaultKmsKeyId(_ request: AWSEC2GetEbsDefaultKmsKeyIdRequest) async throws -> AWSEC2GetEbsDefaultKmsKeyIdResult

    Parameters

    request

    A container for the necessary parameters to execute the GetEbsDefaultKmsKeyId service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Describes whether EBS encryption by default is enabled for your account in the current Region.

    For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2GetEbsEncryptionByDefaultRequest

    See

    AWSEC2GetEbsEncryptionByDefaultResult

    Declaration

    Objective-C

    - (id)getEbsEncryptionByDefault:
        (nonnull AWSEC2GetEbsEncryptionByDefaultRequest *)request;

    Swift

    func getEbsEncryption(byDefault request: AWSEC2GetEbsEncryptionByDefaultRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetEbsEncryptionByDefault service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetEbsEncryptionByDefaultResult.

  • Describes whether EBS encryption by default is enabled for your account in the current Region.

    For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2GetEbsEncryptionByDefaultRequest

    See

    AWSEC2GetEbsEncryptionByDefaultResult

    Declaration

    Objective-C

    - (void)getEbsEncryptionByDefault:
                (nonnull AWSEC2GetEbsEncryptionByDefaultRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2GetEbsEncryptionByDefaultResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func ebsEncryption(byDefault request: AWSEC2GetEbsEncryptionByDefaultRequest) async throws -> AWSEC2GetEbsEncryptionByDefaultResult

    Parameters

    request

    A container for the necessary parameters to execute the GetEbsEncryptionByDefault service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Generates a CloudFormation template that streamlines and automates the integration of VPC flow logs with Amazon Athena. This make it easier for you to query and gain insights from VPC flow logs data. Based on the information that you provide, we configure resources in the template to do the following:

    • Create a table in Athena that maps fields to a custom log format

    • Create a Lambda function that updates the table with new partitions on a daily, weekly, or monthly basis

    • Create a table partitioned between two timestamps in the past

    • Create a set of named queries in Athena that you can use to get started quickly

    GetFlowLogsIntegrationTemplate does not support integration between Amazon Web Services Transit Gateway Flow Logs and Amazon Athena.

    See

    AWSEC2GetFlowLogsIntegrationTemplateRequest

    See

    AWSEC2GetFlowLogsIntegrationTemplateResult

    Declaration

    Objective-C

    - (id)getFlowLogsIntegrationTemplate:
        (nonnull AWSEC2GetFlowLogsIntegrationTemplateRequest *)request;

    Swift

    func getFlowLogsIntegrationTemplate(_ request: AWSEC2GetFlowLogsIntegrationTemplateRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetFlowLogsIntegrationTemplate service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetFlowLogsIntegrationTemplateResult.

  • Generates a CloudFormation template that streamlines and automates the integration of VPC flow logs with Amazon Athena. This make it easier for you to query and gain insights from VPC flow logs data. Based on the information that you provide, we configure resources in the template to do the following:

    • Create a table in Athena that maps fields to a custom log format

    • Create a Lambda function that updates the table with new partitions on a daily, weekly, or monthly basis

    • Create a table partitioned between two timestamps in the past

    • Create a set of named queries in Athena that you can use to get started quickly

    GetFlowLogsIntegrationTemplate does not support integration between Amazon Web Services Transit Gateway Flow Logs and Amazon Athena.

    See

    AWSEC2GetFlowLogsIntegrationTemplateRequest

    See

    AWSEC2GetFlowLogsIntegrationTemplateResult

    Declaration

    Objective-C

    - (void)
        getFlowLogsIntegrationTemplate:
            (nonnull AWSEC2GetFlowLogsIntegrationTemplateRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2GetFlowLogsIntegrationTemplateResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func flowLogsIntegrationTemplate(_ request: AWSEC2GetFlowLogsIntegrationTemplateRequest) async throws -> AWSEC2GetFlowLogsIntegrationTemplateResult

    Parameters

    request

    A container for the necessary parameters to execute the GetFlowLogsIntegrationTemplate service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Lists the resource groups to which a Capacity Reservation has been added.

    See

    AWSEC2GetGroupsForCapacityReservationRequest

    See

    AWSEC2GetGroupsForCapacityReservationResult

    Declaration

    Objective-C

    - (id)getGroupsForCapacityReservation:
        (nonnull AWSEC2GetGroupsForCapacityReservationRequest *)request;

    Swift

    func getGroupsForCapacityReservation(_ request: AWSEC2GetGroupsForCapacityReservationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetGroupsForCapacityReservation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetGroupsForCapacityReservationResult.

  • Lists the resource groups to which a Capacity Reservation has been added.

    See

    AWSEC2GetGroupsForCapacityReservationRequest

    See

    AWSEC2GetGroupsForCapacityReservationResult

    Declaration

    Objective-C

    - (void)getGroupsForCapacityReservation:
                (nonnull AWSEC2GetGroupsForCapacityReservationRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2GetGroupsForCapacityReservationResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func groups(forCapacityReservation request: AWSEC2GetGroupsForCapacityReservationRequest) async throws -> AWSEC2GetGroupsForCapacityReservationResult

    Parameters

    request

    A container for the necessary parameters to execute the GetGroupsForCapacityReservation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.

    This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.

    See

    AWSEC2GetHostReservationPurchasePreviewRequest

    See

    AWSEC2GetHostReservationPurchasePreviewResult

    Declaration

    Objective-C

    - (id)getHostReservationPurchasePreview:
        (nonnull AWSEC2GetHostReservationPurchasePreviewRequest *)request;

    Swift

    func getHostReservationPurchasePreview(_ request: AWSEC2GetHostReservationPurchasePreviewRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetHostReservationPurchasePreview service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetHostReservationPurchasePreviewResult.

  • Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.

    This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.

    See

    AWSEC2GetHostReservationPurchasePreviewRequest

    See

    AWSEC2GetHostReservationPurchasePreviewResult

    Declaration

    Objective-C

    - (void)getHostReservationPurchasePreview:
                (nonnull AWSEC2GetHostReservationPurchasePreviewRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2GetHostReservationPurchasePreviewResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func hostReservationPurchasePreview(_ request: AWSEC2GetHostReservationPurchasePreviewRequest) async throws -> AWSEC2GetHostReservationPurchasePreviewResult

    Parameters

    request

    A container for the necessary parameters to execute the GetHostReservationPurchasePreview service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets the current state of block public access for AMIs at the account level in the specified Amazon Web Services Region.

    For more information, see Block public access to your AMIs in the Amazon EC2 User Guide.

    See

    AWSEC2GetImageBlockPublicAccessStateRequest

    See

    AWSEC2GetImageBlockPublicAccessStateResult

    Declaration

    Objective-C

    - (id)getImageBlockPublicAccessState:
        (nonnull AWSEC2GetImageBlockPublicAccessStateRequest *)request;

    Swift

    func getImageBlockPublicAccessState(_ request: AWSEC2GetImageBlockPublicAccessStateRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetImageBlockPublicAccessState service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetImageBlockPublicAccessStateResult.

  • Gets the current state of block public access for AMIs at the account level in the specified Amazon Web Services Region.

    For more information, see Block public access to your AMIs in the Amazon EC2 User Guide.

    See

    AWSEC2GetImageBlockPublicAccessStateRequest

    See

    AWSEC2GetImageBlockPublicAccessStateResult

    Declaration

    Objective-C

    - (void)
        getImageBlockPublicAccessState:
            (nonnull AWSEC2GetImageBlockPublicAccessStateRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2GetImageBlockPublicAccessStateResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func imageBlockPublicAccessState(_ request: AWSEC2GetImageBlockPublicAccessStateRequest) async throws -> AWSEC2GetImageBlockPublicAccessStateResult

    Parameters

    request

    A container for the necessary parameters to execute the GetImageBlockPublicAccessState service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets the default instance metadata service (IMDS) settings that are set at the account level in the specified Amazon Web Services
 Region.

    For more information, see Order of precedence for instance metadata options in the Amazon EC2 User Guide.

    See

    AWSEC2GetInstanceMetadataDefaultsRequest

    See

    AWSEC2GetInstanceMetadataDefaultsResult

    Declaration

    Objective-C

    - (id)getInstanceMetadataDefaults:
        (nonnull AWSEC2GetInstanceMetadataDefaultsRequest *)request;

    Swift

    func getInstanceMetadataDefaults(_ request: AWSEC2GetInstanceMetadataDefaultsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetInstanceMetadataDefaults service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetInstanceMetadataDefaultsResult.

  • Gets the default instance metadata service (IMDS) settings that are set at the account level in the specified Amazon Web Services
 Region.

    For more information, see Order of precedence for instance metadata options in the Amazon EC2 User Guide.

    See

    AWSEC2GetInstanceMetadataDefaultsRequest

    See

    AWSEC2GetInstanceMetadataDefaultsResult

    Declaration

    Objective-C

    - (void)getInstanceMetadataDefaults:
                (nonnull AWSEC2GetInstanceMetadataDefaultsRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2GetInstanceMetadataDefaultsResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func instanceMetadataDefaults(_ request: AWSEC2GetInstanceMetadataDefaultsRequest) async throws -> AWSEC2GetInstanceMetadataDefaultsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetInstanceMetadataDefaults service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance.

    See

    AWSEC2GetInstanceTpmEkPubRequest

    See

    AWSEC2GetInstanceTpmEkPubResult

    Declaration

    Objective-C

    - (id)getInstanceTpmEkPub:(nonnull AWSEC2GetInstanceTpmEkPubRequest *)request;

    Swift

    func getInstanceTpmEkPub(_ request: AWSEC2GetInstanceTpmEkPubRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetInstanceTpmEkPub service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetInstanceTpmEkPubResult.

  • Gets the public endorsement key associated with the Nitro Trusted Platform Module (NitroTPM) for the specified instance.

    See

    AWSEC2GetInstanceTpmEkPubRequest

    See

    AWSEC2GetInstanceTpmEkPubResult

    Declaration

    Objective-C

    - (void)getInstanceTpmEkPub:(nonnull AWSEC2GetInstanceTpmEkPubRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2GetInstanceTpmEkPubResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func instanceTpmEkPub(_ request: AWSEC2GetInstanceTpmEkPubRequest) async throws -> AWSEC2GetInstanceTpmEkPubResult

    Parameters

    request

    A container for the necessary parameters to execute the GetInstanceTpmEkPub service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Returns a list of instance types with the specified instance attributes. You can use the response to preview the instance types without launching instances. Note that the response does not consider capacity.

    When you specify multiple parameters, you get instance types that satisfy all of the specified parameters. If you specify multiple values for a parameter, you get instance types that satisfy any of the specified values.

    For more information, see Preview instance types with specified attributes, Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide, and Creating an Auto Scaling group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide.

    See

    AWSEC2GetInstanceTypesFromInstanceRequirementsRequest

    See

    AWSEC2GetInstanceTypesFromInstanceRequirementsResult

    Declaration

    Objective-C

    - (id)getInstanceTypesFromInstanceRequirements:
        (nonnull AWSEC2GetInstanceTypesFromInstanceRequirementsRequest *)request;

    Swift

    func getInstanceTypes(fromInstanceRequirements request: AWSEC2GetInstanceTypesFromInstanceRequirementsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetInstanceTypesFromInstanceRequirements service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetInstanceTypesFromInstanceRequirementsResult.

  • Returns a list of instance types with the specified instance attributes. You can use the response to preview the instance types without launching instances. Note that the response does not consider capacity.

    When you specify multiple parameters, you get instance types that satisfy all of the specified parameters. If you specify multiple values for a parameter, you get instance types that satisfy any of the specified values.

    For more information, see Preview instance types with specified attributes, Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide, and Creating an Auto Scaling group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide.

    See

    AWSEC2GetInstanceTypesFromInstanceRequirementsRequest

    See

    AWSEC2GetInstanceTypesFromInstanceRequirementsResult

    Declaration

    Objective-C

    - (void)
        getInstanceTypesFromInstanceRequirements:
            (nonnull AWSEC2GetInstanceTypesFromInstanceRequirementsRequest *)request
                               completionHandler:
                                   (void (^_Nullable)(
                                       AWSEC2GetInstanceTypesFromInstanceRequirementsResult
                                           *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func instanceTypes(fromInstanceRequirements request: AWSEC2GetInstanceTypesFromInstanceRequirementsRequest) async throws -> AWSEC2GetInstanceTypesFromInstanceRequirementsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetInstanceTypesFromInstanceRequirements service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • A binary representation of the UEFI variable store. Only non-volatile variables are stored. This is a base64 encoded and zlib compressed binary value that must be properly encoded.

    When you use register-image to create an AMI, you can create an exact copy of your variable store by passing the UEFI data in the UefiData parameter. You can modify the UEFI data by using the python-uefivars tool on GitHub. You can use the tool to convert the UEFI data into a human-readable format (JSON), which you can inspect and modify, and then convert back into the binary format to use with register-image.

    For more information, see UEFI Secure Boot in the Amazon EC2 User Guide.

    See

    AWSEC2GetInstanceUefiDataRequest

    See

    AWSEC2GetInstanceUefiDataResult

    Declaration

    Objective-C

    - (id)getInstanceUefiData:(nonnull AWSEC2GetInstanceUefiDataRequest *)request;

    Swift

    func getInstanceUefiData(_ request: AWSEC2GetInstanceUefiDataRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetInstanceUefiData service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetInstanceUefiDataResult.

  • A binary representation of the UEFI variable store. Only non-volatile variables are stored. This is a base64 encoded and zlib compressed binary value that must be properly encoded.

    When you use register-image to create an AMI, you can create an exact copy of your variable store by passing the UEFI data in the UefiData parameter. You can modify the UEFI data by using the python-uefivars tool on GitHub. You can use the tool to convert the UEFI data into a human-readable format (JSON), which you can inspect and modify, and then convert back into the binary format to use with register-image.

    For more information, see UEFI Secure Boot in the Amazon EC2 User Guide.

    See

    AWSEC2GetInstanceUefiDataRequest

    See

    AWSEC2GetInstanceUefiDataResult

    Declaration

    Objective-C

    - (void)getInstanceUefiData:(nonnull AWSEC2GetInstanceUefiDataRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2GetInstanceUefiDataResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func instanceUefiData(_ request: AWSEC2GetInstanceUefiDataRequest) async throws -> AWSEC2GetInstanceUefiDataResult

    Parameters

    request

    A container for the necessary parameters to execute the GetInstanceUefiData service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Retrieve historical information about a CIDR within an IPAM scope. For more information, see View the history of IP addresses in the Amazon VPC IPAM User Guide.

    See

    AWSEC2GetIpamAddressHistoryRequest

    See

    AWSEC2GetIpamAddressHistoryResult

    Declaration

    Objective-C

    - (id)getIpamAddressHistory:
        (nonnull AWSEC2GetIpamAddressHistoryRequest *)request;

    Swift

    func getIpamAddressHistory(_ request: AWSEC2GetIpamAddressHistoryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamAddressHistory service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetIpamAddressHistoryResult.

  • Retrieve historical information about a CIDR within an IPAM scope. For more information, see View the history of IP addresses in the Amazon VPC IPAM User Guide.

    See

    AWSEC2GetIpamAddressHistoryRequest

    See

    AWSEC2GetIpamAddressHistoryResult

    Declaration

    Objective-C

    - (void)getIpamAddressHistory:
                (nonnull AWSEC2GetIpamAddressHistoryRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2GetIpamAddressHistoryResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func ipamAddressHistory(_ request: AWSEC2GetIpamAddressHistoryRequest) async throws -> AWSEC2GetIpamAddressHistoryResult

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamAddressHistory service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets IPAM discovered accounts. A discovered account is an Amazon Web Services account that is monitored under a resource discovery. If you have integrated IPAM with Amazon Web Services Organizations, all accounts in the organization are discovered accounts. Only the IPAM account can get all discovered accounts in the organization.

    See

    AWSEC2GetIpamDiscoveredAccountsRequest

    See

    AWSEC2GetIpamDiscoveredAccountsResult

    Declaration

    Objective-C

    - (id)getIpamDiscoveredAccounts:
        (nonnull AWSEC2GetIpamDiscoveredAccountsRequest *)request;

    Swift

    func getIpamDiscoveredAccounts(_ request: AWSEC2GetIpamDiscoveredAccountsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamDiscoveredAccounts service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetIpamDiscoveredAccountsResult.

  • Gets IPAM discovered accounts. A discovered account is an Amazon Web Services account that is monitored under a resource discovery. If you have integrated IPAM with Amazon Web Services Organizations, all accounts in the organization are discovered accounts. Only the IPAM account can get all discovered accounts in the organization.

    See

    AWSEC2GetIpamDiscoveredAccountsRequest

    See

    AWSEC2GetIpamDiscoveredAccountsResult

    Declaration

    Objective-C

    - (void)getIpamDiscoveredAccounts:
                (nonnull AWSEC2GetIpamDiscoveredAccountsRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2GetIpamDiscoveredAccountsResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func ipamDiscoveredAccounts(_ request: AWSEC2GetIpamDiscoveredAccountsRequest) async throws -> AWSEC2GetIpamDiscoveredAccountsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamDiscoveredAccounts service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets the public IP addresses that have been discovered by IPAM.

    See

    AWSEC2GetIpamDiscoveredPublicAddressesRequest

    See

    AWSEC2GetIpamDiscoveredPublicAddressesResult

    Declaration

    Objective-C

    - (id)getIpamDiscoveredPublicAddresses:
        (nonnull AWSEC2GetIpamDiscoveredPublicAddressesRequest *)request;

    Swift

    func getIpamDiscoveredPublicAddresses(_ request: AWSEC2GetIpamDiscoveredPublicAddressesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamDiscoveredPublicAddresses service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetIpamDiscoveredPublicAddressesResult.

  • Gets the public IP addresses that have been discovered by IPAM.

    See

    AWSEC2GetIpamDiscoveredPublicAddressesRequest

    See

    AWSEC2GetIpamDiscoveredPublicAddressesResult

    Declaration

    Objective-C

    - (void)getIpamDiscoveredPublicAddresses:
                (nonnull AWSEC2GetIpamDiscoveredPublicAddressesRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2GetIpamDiscoveredPublicAddressesResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func ipamDiscoveredPublicAddresses(_ request: AWSEC2GetIpamDiscoveredPublicAddressesRequest) async throws -> AWSEC2GetIpamDiscoveredPublicAddressesResult

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamDiscoveredPublicAddresses service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Returns the resource CIDRs that are monitored as part of a resource discovery. A discovered resource is a resource CIDR monitored under a resource discovery. The following resources can be discovered: VPCs, Public IPv4 pools, VPC subnets, and Elastic IP addresses.

    See

    AWSEC2GetIpamDiscoveredResourceCidrsRequest

    See

    AWSEC2GetIpamDiscoveredResourceCidrsResult

    Declaration

    Objective-C

    - (id)getIpamDiscoveredResourceCidrs:
        (nonnull AWSEC2GetIpamDiscoveredResourceCidrsRequest *)request;

    Swift

    func getIpamDiscoveredResourceCidrs(_ request: AWSEC2GetIpamDiscoveredResourceCidrsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamDiscoveredResourceCidrs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetIpamDiscoveredResourceCidrsResult.

  • Returns the resource CIDRs that are monitored as part of a resource discovery. A discovered resource is a resource CIDR monitored under a resource discovery. The following resources can be discovered: VPCs, Public IPv4 pools, VPC subnets, and Elastic IP addresses.

    See

    AWSEC2GetIpamDiscoveredResourceCidrsRequest

    See

    AWSEC2GetIpamDiscoveredResourceCidrsResult

    Declaration

    Objective-C

    - (void)
        getIpamDiscoveredResourceCidrs:
            (nonnull AWSEC2GetIpamDiscoveredResourceCidrsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2GetIpamDiscoveredResourceCidrsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func ipamDiscoveredResourceCidrs(_ request: AWSEC2GetIpamDiscoveredResourceCidrsRequest) async throws -> AWSEC2GetIpamDiscoveredResourceCidrsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamDiscoveredResourceCidrs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Get a list of all the CIDR allocations in an IPAM pool. The Region you use should be the IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM pool is available for allocations.

    If you use this action after AllocateIpamPoolCidr or ReleaseIpamPoolAllocation, note that all EC2 API actions follow an eventual consistency model.

    See

    AWSEC2GetIpamPoolAllocationsRequest

    See

    AWSEC2GetIpamPoolAllocationsResult

    Declaration

    Objective-C

    - (id)getIpamPoolAllocations:
        (nonnull AWSEC2GetIpamPoolAllocationsRequest *)request;

    Swift

    func getIpamPoolAllocations(_ request: AWSEC2GetIpamPoolAllocationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamPoolAllocations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetIpamPoolAllocationsResult.

  • Get a list of all the CIDR allocations in an IPAM pool. The Region you use should be the IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM pool is available for allocations.

    If you use this action after AllocateIpamPoolCidr or ReleaseIpamPoolAllocation, note that all EC2 API actions follow an eventual consistency model.

    See

    AWSEC2GetIpamPoolAllocationsRequest

    See

    AWSEC2GetIpamPoolAllocationsResult

    Declaration

    Objective-C

    - (void)
        getIpamPoolAllocations:
            (nonnull AWSEC2GetIpamPoolAllocationsRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2GetIpamPoolAllocationsResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func ipamPoolAllocations(_ request: AWSEC2GetIpamPoolAllocationsRequest) async throws -> AWSEC2GetIpamPoolAllocationsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamPoolAllocations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Get the CIDRs provisioned to an IPAM pool.

    See

    AWSEC2GetIpamPoolCidrsRequest

    See

    AWSEC2GetIpamPoolCidrsResult

    Declaration

    Objective-C

    - (id)getIpamPoolCidrs:(nonnull AWSEC2GetIpamPoolCidrsRequest *)request;

    Swift

    func getIpamPoolCidrs(_ request: AWSEC2GetIpamPoolCidrsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamPoolCidrs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetIpamPoolCidrsResult.

  • Get the CIDRs provisioned to an IPAM pool.

    See

    AWSEC2GetIpamPoolCidrsRequest

    See

    AWSEC2GetIpamPoolCidrsResult

    Declaration

    Objective-C

    - (void)getIpamPoolCidrs:(nonnull AWSEC2GetIpamPoolCidrsRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2GetIpamPoolCidrsResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func ipamPoolCidrs(_ request: AWSEC2GetIpamPoolCidrsRequest) async throws -> AWSEC2GetIpamPoolCidrsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamPoolCidrs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Returns resource CIDRs managed by IPAM in a given scope. If an IPAM is associated with more than one resource discovery, the resource CIDRs across all of the resource discoveries is returned. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2GetIpamResourceCidrsRequest

    See

    AWSEC2GetIpamResourceCidrsResult

    Declaration

    Objective-C

    - (id)getIpamResourceCidrs:(nonnull AWSEC2GetIpamResourceCidrsRequest *)request;

    Swift

    func getIpamResourceCidrs(_ request: AWSEC2GetIpamResourceCidrsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamResourceCidrs service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetIpamResourceCidrsResult.

  • Returns resource CIDRs managed by IPAM in a given scope. If an IPAM is associated with more than one resource discovery, the resource CIDRs across all of the resource discoveries is returned. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2GetIpamResourceCidrsRequest

    See

    AWSEC2GetIpamResourceCidrsResult

    Declaration

    Objective-C

    - (void)getIpamResourceCidrs:
                (nonnull AWSEC2GetIpamResourceCidrsRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2GetIpamResourceCidrsResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func ipamResourceCidrs(_ request: AWSEC2GetIpamResourceCidrsRequest) async throws -> AWSEC2GetIpamResourceCidrsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetIpamResourceCidrs service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Retrieves the configuration data of the specified instance. You can use this data to create a launch template.

    This action calls on other describe actions to get instance information. Depending on your instance configuration, you may need to allow the following actions in your IAM policy: DescribeSpotInstanceRequests, DescribeInstanceCreditSpecifications, DescribeVolumes, and DescribeInstanceAttribute. Or, you can allow describe* depending on your instance requirements.

    See

    AWSEC2GetLaunchTemplateDataRequest

    See

    AWSEC2GetLaunchTemplateDataResult

    Declaration

    Objective-C

    - (id)getLaunchTemplateData:
        (nonnull AWSEC2GetLaunchTemplateDataRequest *)request;

    Swift

    func getLaunchTemplateData(_ request: AWSEC2GetLaunchTemplateDataRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetLaunchTemplateData service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetLaunchTemplateDataResult.

  • Retrieves the configuration data of the specified instance. You can use this data to create a launch template.

    This action calls on other describe actions to get instance information. Depending on your instance configuration, you may need to allow the following actions in your IAM policy: DescribeSpotInstanceRequests, DescribeInstanceCreditSpecifications, DescribeVolumes, and DescribeInstanceAttribute. Or, you can allow describe* depending on your instance requirements.

    See

    AWSEC2GetLaunchTemplateDataRequest

    See

    AWSEC2GetLaunchTemplateDataResult

    Declaration

    Objective-C

    - (void)getLaunchTemplateData:
                (nonnull AWSEC2GetLaunchTemplateDataRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2GetLaunchTemplateDataResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func launchTemplateData(_ request: AWSEC2GetLaunchTemplateDataRequest) async throws -> AWSEC2GetLaunchTemplateDataResult

    Parameters

    request

    A container for the necessary parameters to execute the GetLaunchTemplateData service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets information about the resources that are associated with the specified managed prefix list.

    See

    AWSEC2GetManagedPrefixListAssociationsRequest

    See

    AWSEC2GetManagedPrefixListAssociationsResult

    Declaration

    Objective-C

    - (id)getManagedPrefixListAssociations:
        (nonnull AWSEC2GetManagedPrefixListAssociationsRequest *)request;

    Swift

    func getManagedPrefixListAssociations(_ request: AWSEC2GetManagedPrefixListAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetManagedPrefixListAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetManagedPrefixListAssociationsResult.

  • Gets information about the resources that are associated with the specified managed prefix list.

    See

    AWSEC2GetManagedPrefixListAssociationsRequest

    See

    AWSEC2GetManagedPrefixListAssociationsResult

    Declaration

    Objective-C

    - (void)getManagedPrefixListAssociations:
                (nonnull AWSEC2GetManagedPrefixListAssociationsRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2GetManagedPrefixListAssociationsResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func managedPrefixListAssociations(_ request: AWSEC2GetManagedPrefixListAssociationsRequest) async throws -> AWSEC2GetManagedPrefixListAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetManagedPrefixListAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets information about the entries for a specified managed prefix list.

    See

    AWSEC2GetManagedPrefixListEntriesRequest

    See

    AWSEC2GetManagedPrefixListEntriesResult

    Declaration

    Objective-C

    - (id)getManagedPrefixListEntries:
        (nonnull AWSEC2GetManagedPrefixListEntriesRequest *)request;

    Swift

    func getManagedPrefixListEntries(_ request: AWSEC2GetManagedPrefixListEntriesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetManagedPrefixListEntries service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetManagedPrefixListEntriesResult.

  • Gets information about the entries for a specified managed prefix list.

    See

    AWSEC2GetManagedPrefixListEntriesRequest

    See

    AWSEC2GetManagedPrefixListEntriesResult

    Declaration

    Objective-C

    - (void)getManagedPrefixListEntries:
                (nonnull AWSEC2GetManagedPrefixListEntriesRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2GetManagedPrefixListEntriesResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func managedPrefixListEntries(_ request: AWSEC2GetManagedPrefixListEntriesRequest) async throws -> AWSEC2GetManagedPrefixListEntriesResult

    Parameters

    request

    A container for the necessary parameters to execute the GetManagedPrefixListEntries service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets the findings for the specified Network Access Scope analysis.

    See

    AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest

    See

    AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsResult

    Declaration

    Objective-C

    - (id)getNetworkInsightsAccessScopeAnalysisFindings:
        (nonnull AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest *)
            request;

    Swift

    func getNetworkInsightsAccessScopeAnalysisFindings(_ request: AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetNetworkInsightsAccessScopeAnalysisFindings service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsResult.

  • Gets the findings for the specified Network Access Scope analysis.

    See

    AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest

    See

    AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsResult

    Declaration

    Objective-C

    - (void)
        getNetworkInsightsAccessScopeAnalysisFindings:
            (nonnull AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest *)
                request
                                    completionHandler:
                                        (void (^_Nullable)(
                                            AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsResult
                                                *_Nullable,
                                            NSError *_Nullable))completionHandler;

    Swift

    func networkInsightsAccessScopeAnalysisFindings(_ request: AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest) async throws -> AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetNetworkInsightsAccessScopeAnalysisFindings service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets the content for the specified Network Access Scope.

    See

    AWSEC2GetNetworkInsightsAccessScopeContentRequest

    See

    AWSEC2GetNetworkInsightsAccessScopeContentResult

    Declaration

    Objective-C

    - (id)getNetworkInsightsAccessScopeContent:
        (nonnull AWSEC2GetNetworkInsightsAccessScopeContentRequest *)request;

    Swift

    func getNetworkInsightsAccessScopeContent(_ request: AWSEC2GetNetworkInsightsAccessScopeContentRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetNetworkInsightsAccessScopeContent service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetNetworkInsightsAccessScopeContentResult.

  • Gets the content for the specified Network Access Scope.

    See

    AWSEC2GetNetworkInsightsAccessScopeContentRequest

    See

    AWSEC2GetNetworkInsightsAccessScopeContentResult

    Declaration

    Objective-C

    - (void)
        getNetworkInsightsAccessScopeContent:
            (nonnull AWSEC2GetNetworkInsightsAccessScopeContentRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2GetNetworkInsightsAccessScopeContentResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func networkInsightsAccessScopeContent(_ request: AWSEC2GetNetworkInsightsAccessScopeContentRequest) async throws -> AWSEC2GetNetworkInsightsAccessScopeContentResult

    Parameters

    request

    A container for the necessary parameters to execute the GetNetworkInsightsAccessScopeContent service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Retrieves the encrypted administrator password for a running Windows instance.

    The Windows password is generated at boot by the EC2Config service or EC2Launch scripts (Windows Server 2016 and later). This usually only happens the first time an instance is launched. For more information, see EC2Config and EC2Launch in the Amazon EC2 User Guide.

    For the EC2Config service, the password is not generated for rebundled AMIs unless Ec2SetPassword is enabled before bundling.

    The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.

    When you launch an instance, password generation and encryption may take a few minutes. If you try to retrieve the password before it’s available, the output returns an empty string. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.

    See

    AWSEC2GetPasswordDataRequest

    See

    AWSEC2GetPasswordDataResult

    Declaration

    Objective-C

    - (id)getPasswordData:(nonnull AWSEC2GetPasswordDataRequest *)request;

    Swift

    func getPasswordData(_ request: AWSEC2GetPasswordDataRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetPasswordData service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetPasswordDataResult.

  • Retrieves the encrypted administrator password for a running Windows instance.

    The Windows password is generated at boot by the EC2Config service or EC2Launch scripts (Windows Server 2016 and later). This usually only happens the first time an instance is launched. For more information, see EC2Config and EC2Launch in the Amazon EC2 User Guide.

    For the EC2Config service, the password is not generated for rebundled AMIs unless Ec2SetPassword is enabled before bundling.

    The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.

    When you launch an instance, password generation and encryption may take a few minutes. If you try to retrieve the password before it’s available, the output returns an empty string. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.

    See

    AWSEC2GetPasswordDataRequest

    See

    AWSEC2GetPasswordDataResult

    Declaration

    Objective-C

    - (void)getPasswordData:(nonnull AWSEC2GetPasswordDataRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2GetPasswordDataResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func passwordData(_ request: AWSEC2GetPasswordDataRequest) async throws -> AWSEC2GetPasswordDataResult

    Parameters

    request

    A container for the necessary parameters to execute the GetPasswordData service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange.

    See

    AWSEC2GetReservedInstancesExchangeQuoteRequest

    See

    AWSEC2GetReservedInstancesExchangeQuoteResult

    Declaration

    Objective-C

    - (id)getReservedInstancesExchangeQuote:
        (nonnull AWSEC2GetReservedInstancesExchangeQuoteRequest *)request;

    Swift

    func getReservedInstancesExchangeQuote(_ request: AWSEC2GetReservedInstancesExchangeQuoteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetReservedInstancesExchangeQuote service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetReservedInstancesExchangeQuoteResult.

  • Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange.

    See

    AWSEC2GetReservedInstancesExchangeQuoteRequest

    See

    AWSEC2GetReservedInstancesExchangeQuoteResult

    Declaration

    Objective-C

    - (void)getReservedInstancesExchangeQuote:
                (nonnull AWSEC2GetReservedInstancesExchangeQuoteRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2GetReservedInstancesExchangeQuoteResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func reservedInstancesExchangeQuote(_ request: AWSEC2GetReservedInstancesExchangeQuoteRequest) async throws -> AWSEC2GetReservedInstancesExchangeQuoteResult

    Parameters

    request

    A container for the necessary parameters to execute the GetReservedInstancesExchangeQuote service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC.

    See

    AWSEC2GetSecurityGroupsForVpcRequest

    See

    AWSEC2GetSecurityGroupsForVpcResult

    Declaration

    Objective-C

    - (id)getSecurityGroupsForVpc:
        (nonnull AWSEC2GetSecurityGroupsForVpcRequest *)request;

    Swift

    func getSecurityGroups(forVpc request: AWSEC2GetSecurityGroupsForVpcRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetSecurityGroupsForVpc service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetSecurityGroupsForVpcResult.

  • Gets security groups that can be associated by the Amazon Web Services account making the request with network interfaces in the specified VPC.

    See

    AWSEC2GetSecurityGroupsForVpcRequest

    See

    AWSEC2GetSecurityGroupsForVpcResult

    Declaration

    Objective-C

    - (void)
        getSecurityGroupsForVpc:
            (nonnull AWSEC2GetSecurityGroupsForVpcRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2GetSecurityGroupsForVpcResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func securityGroups(forVpc request: AWSEC2GetSecurityGroupsForVpcRequest) async throws -> AWSEC2GetSecurityGroupsForVpcResult

    Parameters

    request

    A container for the necessary parameters to execute the GetSecurityGroupsForVpc service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Retrieves the access status of your account to the EC2 serial console of all instances. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.

    See

    AWSEC2GetSerialConsoleAccessStatusRequest

    See

    AWSEC2GetSerialConsoleAccessStatusResult

    Declaration

    Objective-C

    - (id)getSerialConsoleAccessStatus:
        (nonnull AWSEC2GetSerialConsoleAccessStatusRequest *)request;

    Swift

    func getSerialConsoleAccessStatus(_ request: AWSEC2GetSerialConsoleAccessStatusRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetSerialConsoleAccessStatus service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetSerialConsoleAccessStatusResult.

  • Retrieves the access status of your account to the EC2 serial console of all instances. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.

    See

    AWSEC2GetSerialConsoleAccessStatusRequest

    See

    AWSEC2GetSerialConsoleAccessStatusResult

    Declaration

    Objective-C

    - (void)getSerialConsoleAccessStatus:
                (nonnull AWSEC2GetSerialConsoleAccessStatusRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2GetSerialConsoleAccessStatusResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func serialConsoleAccessStatus(_ request: AWSEC2GetSerialConsoleAccessStatusRequest) async throws -> AWSEC2GetSerialConsoleAccessStatusResult

    Parameters

    request

    A container for the necessary parameters to execute the GetSerialConsoleAccessStatus service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets the current state of block public access for snapshots setting for the account and Region.

    For more information, see Block public access for snapshots in the Amazon EBS User Guide.

    See

    AWSEC2GetSnapshotBlockPublicAccessStateRequest

    See

    AWSEC2GetSnapshotBlockPublicAccessStateResult

    Declaration

    Objective-C

    - (id)getSnapshotBlockPublicAccessState:
        (nonnull AWSEC2GetSnapshotBlockPublicAccessStateRequest *)request;

    Swift

    func getSnapshotBlockPublicAccessState(_ request: AWSEC2GetSnapshotBlockPublicAccessStateRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetSnapshotBlockPublicAccessState service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetSnapshotBlockPublicAccessStateResult.

  • Gets the current state of block public access for snapshots setting for the account and Region.

    For more information, see Block public access for snapshots in the Amazon EBS User Guide.

    See

    AWSEC2GetSnapshotBlockPublicAccessStateRequest

    See

    AWSEC2GetSnapshotBlockPublicAccessStateResult

    Declaration

    Objective-C

    - (void)getSnapshotBlockPublicAccessState:
                (nonnull AWSEC2GetSnapshotBlockPublicAccessStateRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2GetSnapshotBlockPublicAccessStateResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func snapshotBlockPublicAccessState(_ request: AWSEC2GetSnapshotBlockPublicAccessStateRequest) async throws -> AWSEC2GetSnapshotBlockPublicAccessStateResult

    Parameters

    request

    A container for the necessary parameters to execute the GetSnapshotBlockPublicAccessState service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements.

    You can specify your compute requirements either by using InstanceRequirementsWithMetadata and letting Amazon EC2 choose the optimal instance types to fulfill your Spot request, or you can specify the instance types by using InstanceTypes.

    For more information, see Spot placement score in the Amazon EC2 User Guide.

    See

    AWSEC2GetSpotPlacementScoresRequest

    See

    AWSEC2GetSpotPlacementScoresResult

    Declaration

    Objective-C

    - (id)getSpotPlacementScores:
        (nonnull AWSEC2GetSpotPlacementScoresRequest *)request;

    Swift

    func getSpotPlacementScores(_ request: AWSEC2GetSpotPlacementScoresRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetSpotPlacementScores service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetSpotPlacementScoresResult.

  • Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements.

    You can specify your compute requirements either by using InstanceRequirementsWithMetadata and letting Amazon EC2 choose the optimal instance types to fulfill your Spot request, or you can specify the instance types by using InstanceTypes.

    For more information, see Spot placement score in the Amazon EC2 User Guide.

    See

    AWSEC2GetSpotPlacementScoresRequest

    See

    AWSEC2GetSpotPlacementScoresResult

    Declaration

    Objective-C

    - (void)
        getSpotPlacementScores:
            (nonnull AWSEC2GetSpotPlacementScoresRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2GetSpotPlacementScoresResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func spotPlacementScores(_ request: AWSEC2GetSpotPlacementScoresRequest) async throws -> AWSEC2GetSpotPlacementScoresResult

    Parameters

    request

    A container for the necessary parameters to execute the GetSpotPlacementScores service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets information about the subnet CIDR reservations.

    See

    AWSEC2GetSubnetCidrReservationsRequest

    See

    AWSEC2GetSubnetCidrReservationsResult

    Declaration

    Objective-C

    - (id)getSubnetCidrReservations:
        (nonnull AWSEC2GetSubnetCidrReservationsRequest *)request;

    Swift

    func getSubnetCidrReservations(_ request: AWSEC2GetSubnetCidrReservationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetSubnetCidrReservations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetSubnetCidrReservationsResult.

  • Gets information about the subnet CIDR reservations.

    See

    AWSEC2GetSubnetCidrReservationsRequest

    See

    AWSEC2GetSubnetCidrReservationsResult

    Declaration

    Objective-C

    - (void)getSubnetCidrReservations:
                (nonnull AWSEC2GetSubnetCidrReservationsRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2GetSubnetCidrReservationsResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func subnetCidrReservations(_ request: AWSEC2GetSubnetCidrReservationsRequest) async throws -> AWSEC2GetSubnetCidrReservationsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetSubnetCidrReservations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Lists the route tables to which the specified resource attachment propagates routes.

    See

    AWSEC2GetTransitGatewayAttachmentPropagationsRequest

    See

    AWSEC2GetTransitGatewayAttachmentPropagationsResult

    Declaration

    Objective-C

    - (id)getTransitGatewayAttachmentPropagations:
        (nonnull AWSEC2GetTransitGatewayAttachmentPropagationsRequest *)request;

    Swift

    func getTransitGatewayAttachmentPropagations(_ request: AWSEC2GetTransitGatewayAttachmentPropagationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayAttachmentPropagations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetTransitGatewayAttachmentPropagationsResult.

  • Lists the route tables to which the specified resource attachment propagates routes.

    See

    AWSEC2GetTransitGatewayAttachmentPropagationsRequest

    See

    AWSEC2GetTransitGatewayAttachmentPropagationsResult

    Declaration

    Objective-C

    - (void)
        getTransitGatewayAttachmentPropagations:
            (nonnull AWSEC2GetTransitGatewayAttachmentPropagationsRequest *)request
                              completionHandler:
                                  (void (^_Nullable)(
                                      AWSEC2GetTransitGatewayAttachmentPropagationsResult
                                          *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func transitGatewayAttachmentPropagations(_ request: AWSEC2GetTransitGatewayAttachmentPropagationsRequest) async throws -> AWSEC2GetTransitGatewayAttachmentPropagationsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayAttachmentPropagations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets information about the associations for the transit gateway multicast domain.

    See

    AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest

    See

    AWSEC2GetTransitGatewayMulticastDomainAssociationsResult

    Declaration

    Objective-C

    - (id)getTransitGatewayMulticastDomainAssociations:
        (nonnull AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest *)
            request;

    Swift

    func getTransitGatewayMulticastDomainAssociations(_ request: AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayMulticastDomainAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetTransitGatewayMulticastDomainAssociationsResult.

  • Gets information about the associations for the transit gateway multicast domain.

    See

    AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest

    See

    AWSEC2GetTransitGatewayMulticastDomainAssociationsResult

    Declaration

    Objective-C

    - (void)
        getTransitGatewayMulticastDomainAssociations:
            (nonnull AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest *)
                request
                                   completionHandler:
                                       (void (^_Nullable)(
                                           AWSEC2GetTransitGatewayMulticastDomainAssociationsResult
                                               *_Nullable,
                                           NSError *_Nullable))completionHandler;

    Swift

    func transitGatewayMulticastDomainAssociations(_ request: AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest) async throws -> AWSEC2GetTransitGatewayMulticastDomainAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayMulticastDomainAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets a list of the transit gateway policy table associations.

    See

    AWSEC2GetTransitGatewayPolicyTableAssociationsRequest

    See

    AWSEC2GetTransitGatewayPolicyTableAssociationsResult

    Declaration

    Objective-C

    - (id)getTransitGatewayPolicyTableAssociations:
        (nonnull AWSEC2GetTransitGatewayPolicyTableAssociationsRequest *)request;

    Swift

    func getTransitGatewayPolicyTableAssociations(_ request: AWSEC2GetTransitGatewayPolicyTableAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayPolicyTableAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetTransitGatewayPolicyTableAssociationsResult.

  • Gets a list of the transit gateway policy table associations.

    See

    AWSEC2GetTransitGatewayPolicyTableAssociationsRequest

    See

    AWSEC2GetTransitGatewayPolicyTableAssociationsResult

    Declaration

    Objective-C

    - (void)
        getTransitGatewayPolicyTableAssociations:
            (nonnull AWSEC2GetTransitGatewayPolicyTableAssociationsRequest *)request
                               completionHandler:
                                   (void (^_Nullable)(
                                       AWSEC2GetTransitGatewayPolicyTableAssociationsResult
                                           *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func transitGatewayPolicyTableAssociations(_ request: AWSEC2GetTransitGatewayPolicyTableAssociationsRequest) async throws -> AWSEC2GetTransitGatewayPolicyTableAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayPolicyTableAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Returns a list of transit gateway policy table entries.

    See

    AWSEC2GetTransitGatewayPolicyTableEntriesRequest

    See

    AWSEC2GetTransitGatewayPolicyTableEntriesResult

    Declaration

    Objective-C

    - (id)getTransitGatewayPolicyTableEntries:
        (nonnull AWSEC2GetTransitGatewayPolicyTableEntriesRequest *)request;

    Swift

    func getTransitGatewayPolicyTableEntries(_ request: AWSEC2GetTransitGatewayPolicyTableEntriesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayPolicyTableEntries service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetTransitGatewayPolicyTableEntriesResult.

  • Returns a list of transit gateway policy table entries.

    See

    AWSEC2GetTransitGatewayPolicyTableEntriesRequest

    See

    AWSEC2GetTransitGatewayPolicyTableEntriesResult

    Declaration

    Objective-C

    - (void)
        getTransitGatewayPolicyTableEntries:
            (nonnull AWSEC2GetTransitGatewayPolicyTableEntriesRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2GetTransitGatewayPolicyTableEntriesResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func transitGatewayPolicyTableEntries(_ request: AWSEC2GetTransitGatewayPolicyTableEntriesRequest) async throws -> AWSEC2GetTransitGatewayPolicyTableEntriesResult

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayPolicyTableEntries service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets information about the prefix list references in a specified transit gateway route table.

    See

    AWSEC2GetTransitGatewayPrefixListReferencesRequest

    See

    AWSEC2GetTransitGatewayPrefixListReferencesResult

    Declaration

    Objective-C

    - (id)getTransitGatewayPrefixListReferences:
        (nonnull AWSEC2GetTransitGatewayPrefixListReferencesRequest *)request;

    Swift

    func getTransitGatewayPrefixListReferences(_ request: AWSEC2GetTransitGatewayPrefixListReferencesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayPrefixListReferences service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetTransitGatewayPrefixListReferencesResult.

  • Gets information about the prefix list references in a specified transit gateway route table.

    See

    AWSEC2GetTransitGatewayPrefixListReferencesRequest

    See

    AWSEC2GetTransitGatewayPrefixListReferencesResult

    Declaration

    Objective-C

    - (void)
        getTransitGatewayPrefixListReferences:
            (nonnull AWSEC2GetTransitGatewayPrefixListReferencesRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2GetTransitGatewayPrefixListReferencesResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func transitGatewayPrefixListReferences(_ request: AWSEC2GetTransitGatewayPrefixListReferencesRequest) async throws -> AWSEC2GetTransitGatewayPrefixListReferencesResult

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayPrefixListReferences service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets information about the associations for the specified transit gateway route table.

    See

    AWSEC2GetTransitGatewayRouteTableAssociationsRequest

    See

    AWSEC2GetTransitGatewayRouteTableAssociationsResult

    Declaration

    Objective-C

    - (id)getTransitGatewayRouteTableAssociations:
        (nonnull AWSEC2GetTransitGatewayRouteTableAssociationsRequest *)request;

    Swift

    func getTransitGatewayRouteTableAssociations(_ request: AWSEC2GetTransitGatewayRouteTableAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayRouteTableAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetTransitGatewayRouteTableAssociationsResult.

  • Gets information about the associations for the specified transit gateway route table.

    See

    AWSEC2GetTransitGatewayRouteTableAssociationsRequest

    See

    AWSEC2GetTransitGatewayRouteTableAssociationsResult

    Declaration

    Objective-C

    - (void)
        getTransitGatewayRouteTableAssociations:
            (nonnull AWSEC2GetTransitGatewayRouteTableAssociationsRequest *)request
                              completionHandler:
                                  (void (^_Nullable)(
                                      AWSEC2GetTransitGatewayRouteTableAssociationsResult
                                          *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func transitGatewayRouteTableAssociations(_ request: AWSEC2GetTransitGatewayRouteTableAssociationsRequest) async throws -> AWSEC2GetTransitGatewayRouteTableAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayRouteTableAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Gets information about the route table propagations for the specified transit gateway route table.

    See

    AWSEC2GetTransitGatewayRouteTablePropagationsRequest

    See

    AWSEC2GetTransitGatewayRouteTablePropagationsResult

    Declaration

    Objective-C

    - (id)getTransitGatewayRouteTablePropagations:
        (nonnull AWSEC2GetTransitGatewayRouteTablePropagationsRequest *)request;

    Swift

    func getTransitGatewayRouteTablePropagations(_ request: AWSEC2GetTransitGatewayRouteTablePropagationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayRouteTablePropagations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetTransitGatewayRouteTablePropagationsResult.

  • Gets information about the route table propagations for the specified transit gateway route table.

    See

    AWSEC2GetTransitGatewayRouteTablePropagationsRequest

    See

    AWSEC2GetTransitGatewayRouteTablePropagationsResult

    Declaration

    Objective-C

    - (void)
        getTransitGatewayRouteTablePropagations:
            (nonnull AWSEC2GetTransitGatewayRouteTablePropagationsRequest *)request
                              completionHandler:
                                  (void (^_Nullable)(
                                      AWSEC2GetTransitGatewayRouteTablePropagationsResult
                                          *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func transitGatewayRouteTablePropagations(_ request: AWSEC2GetTransitGatewayRouteTablePropagationsRequest) async throws -> AWSEC2GetTransitGatewayRouteTablePropagationsResult

    Parameters

    request

    A container for the necessary parameters to execute the GetTransitGatewayRouteTablePropagations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Get the Verified Access policy associated with the endpoint.

    See

    AWSEC2GetVerifiedAccessEndpointPolicyRequest

    See

    AWSEC2GetVerifiedAccessEndpointPolicyResult

    Declaration

    Objective-C

    - (id)getVerifiedAccessEndpointPolicy:
        (nonnull AWSEC2GetVerifiedAccessEndpointPolicyRequest *)request;

    Swift

    func getVerifiedAccessEndpointPolicy(_ request: AWSEC2GetVerifiedAccessEndpointPolicyRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetVerifiedAccessEndpointPolicy service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetVerifiedAccessEndpointPolicyResult.

  • Get the Verified Access policy associated with the endpoint.

    See

    AWSEC2GetVerifiedAccessEndpointPolicyRequest

    See

    AWSEC2GetVerifiedAccessEndpointPolicyResult

    Declaration

    Objective-C

    - (void)getVerifiedAccessEndpointPolicy:
                (nonnull AWSEC2GetVerifiedAccessEndpointPolicyRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2GetVerifiedAccessEndpointPolicyResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func verifiedAccessEndpointPolicy(_ request: AWSEC2GetVerifiedAccessEndpointPolicyRequest) async throws -> AWSEC2GetVerifiedAccessEndpointPolicyResult

    Parameters

    request

    A container for the necessary parameters to execute the GetVerifiedAccessEndpointPolicy service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Shows the contents of the Verified Access policy associated with the group.

    See

    AWSEC2GetVerifiedAccessGroupPolicyRequest

    See

    AWSEC2GetVerifiedAccessGroupPolicyResult

    Declaration

    Objective-C

    - (id)getVerifiedAccessGroupPolicy:
        (nonnull AWSEC2GetVerifiedAccessGroupPolicyRequest *)request;

    Swift

    func getVerifiedAccessGroupPolicy(_ request: AWSEC2GetVerifiedAccessGroupPolicyRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetVerifiedAccessGroupPolicy service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetVerifiedAccessGroupPolicyResult.

  • Shows the contents of the Verified Access policy associated with the group.

    See

    AWSEC2GetVerifiedAccessGroupPolicyRequest

    See

    AWSEC2GetVerifiedAccessGroupPolicyResult

    Declaration

    Objective-C

    - (void)getVerifiedAccessGroupPolicy:
                (nonnull AWSEC2GetVerifiedAccessGroupPolicyRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2GetVerifiedAccessGroupPolicyResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func verifiedAccessGroupPolicy(_ request: AWSEC2GetVerifiedAccessGroupPolicyRequest) async throws -> AWSEC2GetVerifiedAccessGroupPolicyResult

    Parameters

    request

    A container for the necessary parameters to execute the GetVerifiedAccessGroupPolicy service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Download an Amazon Web Services-provided sample configuration file to be used with the customer gateway device specified for your Site-to-Site VPN connection.

    See

    AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest

    See

    AWSEC2GetVpnConnectionDeviceSampleConfigurationResult

    Declaration

    Objective-C

    - (id)getVpnConnectionDeviceSampleConfiguration:
        (nonnull AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest *)request;

    Swift

    func getVpnConnectionDeviceSampleConfiguration(_ request: AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetVpnConnectionDeviceSampleConfiguration service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetVpnConnectionDeviceSampleConfigurationResult.

  • Download an Amazon Web Services-provided sample configuration file to be used with the customer gateway device specified for your Site-to-Site VPN connection.

    See

    AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest

    See

    AWSEC2GetVpnConnectionDeviceSampleConfigurationResult

    Declaration

    Objective-C

    - (void)
        getVpnConnectionDeviceSampleConfiguration:
            (nonnull AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest *)
                request
                                completionHandler:
                                    (void (^_Nullable)(
                                        AWSEC2GetVpnConnectionDeviceSampleConfigurationResult
                                            *_Nullable,
                                        NSError *_Nullable))completionHandler;

    Swift

    func vpnConnectionDeviceSampleConfiguration(_ request: AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest) async throws -> AWSEC2GetVpnConnectionDeviceSampleConfigurationResult

    Parameters

    request

    A container for the necessary parameters to execute the GetVpnConnectionDeviceSampleConfiguration service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Obtain a list of customer gateway devices for which sample configuration files can be provided. The request has no additional parameters. You can also see the list of device types with sample configuration files available under Your customer gateway device in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2GetVpnConnectionDeviceTypesRequest

    See

    AWSEC2GetVpnConnectionDeviceTypesResult

    Declaration

    Objective-C

    - (id)getVpnConnectionDeviceTypes:
        (nonnull AWSEC2GetVpnConnectionDeviceTypesRequest *)request;

    Swift

    func getVpnConnectionDeviceTypes(_ request: AWSEC2GetVpnConnectionDeviceTypesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetVpnConnectionDeviceTypes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetVpnConnectionDeviceTypesResult.

  • Obtain a list of customer gateway devices for which sample configuration files can be provided. The request has no additional parameters. You can also see the list of device types with sample configuration files available under Your customer gateway device in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2GetVpnConnectionDeviceTypesRequest

    See

    AWSEC2GetVpnConnectionDeviceTypesResult

    Declaration

    Objective-C

    - (void)getVpnConnectionDeviceTypes:
                (nonnull AWSEC2GetVpnConnectionDeviceTypesRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2GetVpnConnectionDeviceTypesResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func vpnConnectionDeviceTypes(_ request: AWSEC2GetVpnConnectionDeviceTypesRequest) async throws -> AWSEC2GetVpnConnectionDeviceTypesResult

    Parameters

    request

    A container for the necessary parameters to execute the GetVpnConnectionDeviceTypes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Get details of available tunnel endpoint maintenance.

    See

    AWSEC2GetVpnTunnelReplacementStatusRequest

    See

    AWSEC2GetVpnTunnelReplacementStatusResult

    Declaration

    Objective-C

    - (id)getVpnTunnelReplacementStatus:
        (nonnull AWSEC2GetVpnTunnelReplacementStatusRequest *)request;

    Swift

    func getVpnTunnelReplacementStatus(_ request: AWSEC2GetVpnTunnelReplacementStatusRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the GetVpnTunnelReplacementStatus service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2GetVpnTunnelReplacementStatusResult.

  • Get details of available tunnel endpoint maintenance.

    See

    AWSEC2GetVpnTunnelReplacementStatusRequest

    See

    AWSEC2GetVpnTunnelReplacementStatusResult

    Declaration

    Objective-C

    - (void)
        getVpnTunnelReplacementStatus:
            (nonnull AWSEC2GetVpnTunnelReplacementStatusRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2GetVpnTunnelReplacementStatusResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func vpnTunnelReplacementStatus(_ request: AWSEC2GetVpnTunnelReplacementStatusRequest) async throws -> AWSEC2GetVpnTunnelReplacementStatusResult

    Parameters

    request

    A container for the necessary parameters to execute the GetVpnTunnelReplacementStatus service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list.

    Uploading a client certificate revocation list resets existing client connections.

    See

    AWSEC2ImportClientVpnClientCertificateRevocationListRequest

    See

    AWSEC2ImportClientVpnClientCertificateRevocationListResult

    Declaration

    Objective-C

    - (id)importClientVpnClientCertificateRevocationList:
        (nonnull AWSEC2ImportClientVpnClientCertificateRevocationListRequest *)
            request;

    Swift

    func importClientVpnClientCertificateRevocationList(_ request: AWSEC2ImportClientVpnClientCertificateRevocationListRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ImportClientVpnClientCertificateRevocationList service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ImportClientVpnClientCertificateRevocationListResult.

  • Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list.

    Uploading a client certificate revocation list resets existing client connections.

    See

    AWSEC2ImportClientVpnClientCertificateRevocationListRequest

    See

    AWSEC2ImportClientVpnClientCertificateRevocationListResult

    Declaration

    Objective-C

    - (void)
        importClientVpnClientCertificateRevocationList:
            (nonnull AWSEC2ImportClientVpnClientCertificateRevocationListRequest *)
                request
                                     completionHandler:
                                         (void (^_Nullable)(
                                             AWSEC2ImportClientVpnClientCertificateRevocationListResult
                                                 *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func importClientVpnClientCertificateRevocationList(_ request: AWSEC2ImportClientVpnClientCertificateRevocationListRequest) async throws -> AWSEC2ImportClientVpnClientCertificateRevocationListResult

    Parameters

    request

    A container for the necessary parameters to execute the ImportClientVpnClientCertificateRevocationList service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • To import your virtual machines (VMs) with a console-based experience, you can use the Import virtual machine images to Amazon Web Services template in the Migration Hub Orchestrator console. For more information, see the Migration Hub Orchestrator User Guide.

    Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).

    Amazon Web Services VM Import/Export strongly recommends specifying a value for either the --license-type or --usage-operation parameter when you create a new VM Import task. This ensures your operating system is licensed appropriately and your billing is optimized.

    For more information, see Importing a VM as an image using VM Import/Export in the VM Import/Export User Guide.

    See

    AWSEC2ImportImageRequest

    See

    AWSEC2ImportImageResult

    Declaration

    Objective-C

    - (id)importImage:(nonnull AWSEC2ImportImageRequest *)request;

    Swift

    func importImage(_ request: AWSEC2ImportImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ImportImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ImportImageResult.

  • To import your virtual machines (VMs) with a console-based experience, you can use the Import virtual machine images to Amazon Web Services template in the Migration Hub Orchestrator console. For more information, see the Migration Hub Orchestrator User Guide.

    Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).

    Amazon Web Services VM Import/Export strongly recommends specifying a value for either the --license-type or --usage-operation parameter when you create a new VM Import task. This ensures your operating system is licensed appropriately and your billing is optimized.

    For more information, see Importing a VM as an image using VM Import/Export in the VM Import/Export User Guide.

    See

    AWSEC2ImportImageRequest

    See

    AWSEC2ImportImageResult

    Declaration

    Objective-C

    - (void)importImage:(nonnull AWSEC2ImportImageRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2ImportImageResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func importImage(_ request: AWSEC2ImportImageRequest) async throws -> AWSEC2ImportImageResult

    Parameters

    request

    A container for the necessary parameters to execute the ImportImage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • We recommend that you use the ImportImage API. For more information, see Importing a VM as an image using VM Import/Export in the VM Import/Export User Guide.

    Creates an import instance task using metadata from the specified disk image.

    This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file.

    This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    See

    AWSEC2ImportInstanceRequest

    See

    AWSEC2ImportInstanceResult

    Declaration

    Objective-C

    - (id)importInstance:(nonnull AWSEC2ImportInstanceRequest *)request;

    Swift

    func importInstance(_ request: AWSEC2ImportInstanceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ImportInstance service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ImportInstanceResult.

  • We recommend that you use the ImportImage API. For more information, see Importing a VM as an image using VM Import/Export in the VM Import/Export User Guide.

    Creates an import instance task using metadata from the specified disk image.

    This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file.

    This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    See

    AWSEC2ImportInstanceRequest

    See

    AWSEC2ImportInstanceResult

    Declaration

    Objective-C

    - (void)importInstance:(nonnull AWSEC2ImportInstanceRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2ImportInstanceResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func importInstance(_ request: AWSEC2ImportInstanceRequest) async throws -> AWSEC2ImportInstanceResult

    Parameters

    request

    A container for the necessary parameters to execute the ImportInstance service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Imports the public key from an RSA or ED25519 key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which Amazon Web Services creates the key pair and gives the keys to you (Amazon Web Services keeps a copy of the public key). With ImportKeyPair, you create the key pair and give Amazon Web Services just the public key. The private key is never transferred between you and Amazon Web Services.

    For more information about key pairs, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.

    See

    AWSEC2ImportKeyPairRequest

    See

    AWSEC2ImportKeyPairResult

    Declaration

    Objective-C

    - (id)importKeyPair:(nonnull AWSEC2ImportKeyPairRequest *)request;

    Swift

    func importKeyPair(_ request: AWSEC2ImportKeyPairRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ImportKeyPair service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ImportKeyPairResult.

  • Imports the public key from an RSA or ED25519 key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which Amazon Web Services creates the key pair and gives the keys to you (Amazon Web Services keeps a copy of the public key). With ImportKeyPair, you create the key pair and give Amazon Web Services just the public key. The private key is never transferred between you and Amazon Web Services.

    For more information about key pairs, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.

    See

    AWSEC2ImportKeyPairRequest

    See

    AWSEC2ImportKeyPairResult

    Declaration

    Objective-C

    - (void)importKeyPair:(nonnull AWSEC2ImportKeyPairRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2ImportKeyPairResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func importKeyPair(_ request: AWSEC2ImportKeyPairRequest) async throws -> AWSEC2ImportKeyPairResult

    Parameters

    request

    A container for the necessary parameters to execute the ImportKeyPair service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Imports a disk into an EBS snapshot.

    For more information, see Importing a disk as a snapshot using VM Import/Export in the VM Import/Export User Guide.

    See

    AWSEC2ImportSnapshotRequest

    See

    AWSEC2ImportSnapshotResult

    Declaration

    Objective-C

    - (id)importSnapshot:(nonnull AWSEC2ImportSnapshotRequest *)request;

    Swift

    func importSnapshot(_ request: AWSEC2ImportSnapshotRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ImportSnapshot service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ImportSnapshotResult.

  • Imports a disk into an EBS snapshot.

    For more information, see Importing a disk as a snapshot using VM Import/Export in the VM Import/Export User Guide.

    See

    AWSEC2ImportSnapshotRequest

    See

    AWSEC2ImportSnapshotResult

    Declaration

    Objective-C

    - (void)importSnapshot:(nonnull AWSEC2ImportSnapshotRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2ImportSnapshotResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func importSnapshot(_ request: AWSEC2ImportSnapshotRequest) async throws -> AWSEC2ImportSnapshotResult

    Parameters

    request

    A container for the necessary parameters to execute the ImportSnapshot service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates an import volume task using metadata from the specified disk image.

    This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead. To import a disk to a snapshot, use ImportSnapshot instead.

    This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing Disks to Amazon EBS in the Amazon EC2 CLI Reference PDF file.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    See

    AWSEC2ImportVolumeRequest

    See

    AWSEC2ImportVolumeResult

    Declaration

    Objective-C

    - (id)importVolume:(nonnull AWSEC2ImportVolumeRequest *)request;

    Swift

    func importVolume(_ request: AWSEC2ImportVolumeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ImportVolume service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ImportVolumeResult.

  • Creates an import volume task using metadata from the specified disk image.

    This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead. To import a disk to a snapshot, use ImportSnapshot instead.

    This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing Disks to Amazon EBS in the Amazon EC2 CLI Reference PDF file.

    For information about the import manifest referenced by this API action, see VM Import Manifest.

    See

    AWSEC2ImportVolumeRequest

    See

    AWSEC2ImportVolumeResult

    Declaration

    Objective-C

    - (void)importVolume:(nonnull AWSEC2ImportVolumeRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2ImportVolumeResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func importVolume(_ request: AWSEC2ImportVolumeRequest) async throws -> AWSEC2ImportVolumeResult

    Parameters

    request

    A container for the necessary parameters to execute the ImportVolume service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Lists one or more AMIs that are currently in the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide.

    See

    AWSEC2ListImagesInRecycleBinRequest

    See

    AWSEC2ListImagesInRecycleBinResult

    Declaration

    Objective-C

    - (id)listImagesInRecycleBin:
        (nonnull AWSEC2ListImagesInRecycleBinRequest *)request;

    Swift

    func listImages(inRecycleBin request: AWSEC2ListImagesInRecycleBinRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListImagesInRecycleBin service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ListImagesInRecycleBinResult.

  • Lists one or more AMIs that are currently in the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide.

    See

    AWSEC2ListImagesInRecycleBinRequest

    See

    AWSEC2ListImagesInRecycleBinResult

    Declaration

    Objective-C

    - (void)
        listImagesInRecycleBin:
            (nonnull AWSEC2ListImagesInRecycleBinRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2ListImagesInRecycleBinResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func listImages(inRecycleBin request: AWSEC2ListImagesInRecycleBinRequest) async throws -> AWSEC2ListImagesInRecycleBinResult

    Parameters

    request

    A container for the necessary parameters to execute the ListImagesInRecycleBin service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Lists one or more snapshots that are currently in the Recycle Bin.

    See

    AWSEC2ListSnapshotsInRecycleBinRequest

    See

    AWSEC2ListSnapshotsInRecycleBinResult

    Declaration

    Objective-C

    - (id)listSnapshotsInRecycleBin:
        (nonnull AWSEC2ListSnapshotsInRecycleBinRequest *)request;

    Swift

    func listSnapshots(inRecycleBin request: AWSEC2ListSnapshotsInRecycleBinRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ListSnapshotsInRecycleBin service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ListSnapshotsInRecycleBinResult.

  • Lists one or more snapshots that are currently in the Recycle Bin.

    See

    AWSEC2ListSnapshotsInRecycleBinRequest

    See

    AWSEC2ListSnapshotsInRecycleBinResult

    Declaration

    Objective-C

    - (void)listSnapshotsInRecycleBin:
                (nonnull AWSEC2ListSnapshotsInRecycleBinRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2ListSnapshotsInRecycleBinResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func listSnapshots(inRecycleBin request: AWSEC2ListSnapshotsInRecycleBinRequest) async throws -> AWSEC2ListSnapshotsInRecycleBinResult

    Parameters

    request

    A container for the necessary parameters to execute the ListSnapshotsInRecycleBin service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Locks an Amazon EBS snapshot in either governance or compliance mode to protect it against accidental or malicious deletions for a specific duration. A locked snapshot can’t be deleted.

    You can also use this action to modify the lock settings for a snapshot that is already locked. The allowed modifications depend on the lock mode and lock state:

    • If the snapshot is locked in governance mode, you can modify the lock mode and the lock duration or lock expiration date.

    • If the snapshot is locked in compliance mode and it is in the cooling-off period, you can modify the lock mode and the lock duration or lock expiration date.

    • If the snapshot is locked in compliance mode and the cooling-off period has lapsed, you can only increase the lock duration or extend the lock expiration date.

    See

    AWSEC2LockSnapshotRequest

    See

    AWSEC2LockSnapshotResult

    Declaration

    Objective-C

    - (id)lockSnapshot:(nonnull AWSEC2LockSnapshotRequest *)request;

    Swift

    func lockSnapshot(_ request: AWSEC2LockSnapshotRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the LockSnapshot service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2LockSnapshotResult.

  • Locks an Amazon EBS snapshot in either governance or compliance mode to protect it against accidental or malicious deletions for a specific duration. A locked snapshot can’t be deleted.

    You can also use this action to modify the lock settings for a snapshot that is already locked. The allowed modifications depend on the lock mode and lock state:

    • If the snapshot is locked in governance mode, you can modify the lock mode and the lock duration or lock expiration date.

    • If the snapshot is locked in compliance mode and it is in the cooling-off period, you can modify the lock mode and the lock duration or lock expiration date.

    • If the snapshot is locked in compliance mode and the cooling-off period has lapsed, you can only increase the lock duration or extend the lock expiration date.

    See

    AWSEC2LockSnapshotRequest

    See

    AWSEC2LockSnapshotResult

    Declaration

    Objective-C

    - (void)lockSnapshot:(nonnull AWSEC2LockSnapshotRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2LockSnapshotResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func lockSnapshot(_ request: AWSEC2LockSnapshotRequest) async throws -> AWSEC2LockSnapshotResult

    Parameters

    request

    A container for the necessary parameters to execute the LockSnapshot service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies an attribute of the specified Elastic IP address. For requirements, see Using reverse DNS for email applications.

    See

    AWSEC2ModifyAddressAttributeRequest

    See

    AWSEC2ModifyAddressAttributeResult

    Declaration

    Objective-C

    - (id)modifyAddressAttribute:
        (nonnull AWSEC2ModifyAddressAttributeRequest *)request;

    Swift

    func modifyAddressAttribute(_ request: AWSEC2ModifyAddressAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyAddressAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyAddressAttributeResult.

  • Modifies an attribute of the specified Elastic IP address. For requirements, see Using reverse DNS for email applications.

    See

    AWSEC2ModifyAddressAttributeRequest

    See

    AWSEC2ModifyAddressAttributeResult

    Declaration

    Objective-C

    - (void)
        modifyAddressAttribute:
            (nonnull AWSEC2ModifyAddressAttributeRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2ModifyAddressAttributeResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func modifyAddressAttribute(_ request: AWSEC2ModifyAddressAttributeRequest) async throws -> AWSEC2ModifyAddressAttributeResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyAddressAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Changes the opt-in status of the specified zone group for your account.

    See

    AWSEC2ModifyAvailabilityZoneGroupRequest

    See

    AWSEC2ModifyAvailabilityZoneGroupResult

    Declaration

    Objective-C

    - (id)modifyAvailabilityZoneGroup:
        (nonnull AWSEC2ModifyAvailabilityZoneGroupRequest *)request;

    Swift

    func modifyAvailabilityZoneGroup(_ request: AWSEC2ModifyAvailabilityZoneGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyAvailabilityZoneGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyAvailabilityZoneGroupResult.

  • Changes the opt-in status of the specified zone group for your account.

    See

    AWSEC2ModifyAvailabilityZoneGroupRequest

    See

    AWSEC2ModifyAvailabilityZoneGroupResult

    Declaration

    Objective-C

    - (void)modifyAvailabilityZoneGroup:
                (nonnull AWSEC2ModifyAvailabilityZoneGroupRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2ModifyAvailabilityZoneGroupResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func modifyAvailabilityZoneGroup(_ request: AWSEC2ModifyAvailabilityZoneGroupRequest) async throws -> AWSEC2ModifyAvailabilityZoneGroupResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyAvailabilityZoneGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies a Capacity Reservation’s capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation’s instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes.

    See

    AWSEC2ModifyCapacityReservationRequest

    See

    AWSEC2ModifyCapacityReservationResult

    Declaration

    Objective-C

    - (id)modifyCapacityReservation:
        (nonnull AWSEC2ModifyCapacityReservationRequest *)request;

    Swift

    func modifyCapacityReservation(_ request: AWSEC2ModifyCapacityReservationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyCapacityReservation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyCapacityReservationResult.

  • Modifies a Capacity Reservation’s capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation’s instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes.

    See

    AWSEC2ModifyCapacityReservationRequest

    See

    AWSEC2ModifyCapacityReservationResult

    Declaration

    Objective-C

    - (void)modifyCapacityReservation:
                (nonnull AWSEC2ModifyCapacityReservationRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2ModifyCapacityReservationResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func modifyCapacityReservation(_ request: AWSEC2ModifyCapacityReservationRequest) async throws -> AWSEC2ModifyCapacityReservationResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyCapacityReservation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies a Capacity Reservation Fleet.

    When you modify the total target capacity of a Capacity Reservation Fleet, the Fleet automatically creates new Capacity Reservations, or modifies or cancels existing Capacity Reservations in the Fleet to meet the new total target capacity. When you modify the end date for the Fleet, the end dates for all of the individual Capacity Reservations in the Fleet are updated accordingly.

    See

    AWSEC2ModifyCapacityReservationFleetRequest

    See

    AWSEC2ModifyCapacityReservationFleetResult

    Declaration

    Objective-C

    - (id)modifyCapacityReservationFleet:
        (nonnull AWSEC2ModifyCapacityReservationFleetRequest *)request;

    Swift

    func modifyCapacityReservationFleet(_ request: AWSEC2ModifyCapacityReservationFleetRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyCapacityReservationFleet service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyCapacityReservationFleetResult.

  • Modifies a Capacity Reservation Fleet.

    When you modify the total target capacity of a Capacity Reservation Fleet, the Fleet automatically creates new Capacity Reservations, or modifies or cancels existing Capacity Reservations in the Fleet to meet the new total target capacity. When you modify the end date for the Fleet, the end dates for all of the individual Capacity Reservations in the Fleet are updated accordingly.

    See

    AWSEC2ModifyCapacityReservationFleetRequest

    See

    AWSEC2ModifyCapacityReservationFleetResult

    Declaration

    Objective-C

    - (void)
        modifyCapacityReservationFleet:
            (nonnull AWSEC2ModifyCapacityReservationFleetRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2ModifyCapacityReservationFleetResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func modifyCapacityReservationFleet(_ request: AWSEC2ModifyCapacityReservationFleetRequest) async throws -> AWSEC2ModifyCapacityReservationFleetResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyCapacityReservationFleet service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections.

    See

    AWSEC2ModifyClientVpnEndpointRequest

    See

    AWSEC2ModifyClientVpnEndpointResult

    Declaration

    Objective-C

    - (id)modifyClientVpnEndpoint:
        (nonnull AWSEC2ModifyClientVpnEndpointRequest *)request;

    Swift

    func modifyClientVpnEndpoint(_ request: AWSEC2ModifyClientVpnEndpointRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyClientVpnEndpoint service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyClientVpnEndpointResult.

  • Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections.

    See

    AWSEC2ModifyClientVpnEndpointRequest

    See

    AWSEC2ModifyClientVpnEndpointResult

    Declaration

    Objective-C

    - (void)
        modifyClientVpnEndpoint:
            (nonnull AWSEC2ModifyClientVpnEndpointRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2ModifyClientVpnEndpointResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func modifyClientVpnEndpoint(_ request: AWSEC2ModifyClientVpnEndpointRequest) async throws -> AWSEC2ModifyClientVpnEndpointResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyClientVpnEndpoint service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the default credit option for CPU usage of burstable performance instances. The default credit option is set at the account level per Amazon Web Services Region, and is specified per instance family. All new burstable performance instances in the account launch using the default credit option.

    ModifyDefaultCreditSpecification is an asynchronous operation, which works at an Amazon Web Services Region level and modifies the credit option for each Availability Zone. All zones in a Region are updated within five minutes. But if instances are launched during this operation, they might not get the new credit option until the zone is updated. To verify whether the update has occurred, you can call GetDefaultCreditSpecification and check DefaultCreditSpecification for updates.

    For more information, see Burstable performance instances in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyDefaultCreditSpecificationRequest

    See

    AWSEC2ModifyDefaultCreditSpecificationResult

    Declaration

    Objective-C

    - (id)modifyDefaultCreditSpecification:
        (nonnull AWSEC2ModifyDefaultCreditSpecificationRequest *)request;

    Swift

    func modifyDefaultCreditSpecification(_ request: AWSEC2ModifyDefaultCreditSpecificationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyDefaultCreditSpecification service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyDefaultCreditSpecificationResult.

  • Modifies the default credit option for CPU usage of burstable performance instances. The default credit option is set at the account level per Amazon Web Services Region, and is specified per instance family. All new burstable performance instances in the account launch using the default credit option.

    ModifyDefaultCreditSpecification is an asynchronous operation, which works at an Amazon Web Services Region level and modifies the credit option for each Availability Zone. All zones in a Region are updated within five minutes. But if instances are launched during this operation, they might not get the new credit option until the zone is updated. To verify whether the update has occurred, you can call GetDefaultCreditSpecification and check DefaultCreditSpecification for updates.

    For more information, see Burstable performance instances in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyDefaultCreditSpecificationRequest

    See

    AWSEC2ModifyDefaultCreditSpecificationResult

    Declaration

    Objective-C

    - (void)modifyDefaultCreditSpecification:
                (nonnull AWSEC2ModifyDefaultCreditSpecificationRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2ModifyDefaultCreditSpecificationResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func modifyDefaultCreditSpecification(_ request: AWSEC2ModifyDefaultCreditSpecificationRequest) async throws -> AWSEC2ModifyDefaultCreditSpecificationResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyDefaultCreditSpecification service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Changes the default KMS key for EBS encryption by default for your account in this Region.

    Amazon Web Services creates a unique Amazon Web Services managed KMS key in each Region for use with encryption by default. If you change the default KMS key to a symmetric customer managed KMS key, it is used instead of the Amazon Web Services managed KMS key. To reset the default KMS key to the Amazon Web Services managed KMS key for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric KMS keys.

    If you delete or disable the customer managed KMS key that you specified for use with encryption by default, your instances will fail to launch.

    For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2ModifyEbsDefaultKmsKeyIdRequest

    See

    AWSEC2ModifyEbsDefaultKmsKeyIdResult

    Declaration

    Objective-C

    - (id)modifyEbsDefaultKmsKeyId:
        (nonnull AWSEC2ModifyEbsDefaultKmsKeyIdRequest *)request;

    Swift

    func modifyEbsDefaultKmsKeyId(_ request: AWSEC2ModifyEbsDefaultKmsKeyIdRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyEbsDefaultKmsKeyId service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyEbsDefaultKmsKeyIdResult.

  • Changes the default KMS key for EBS encryption by default for your account in this Region.

    Amazon Web Services creates a unique Amazon Web Services managed KMS key in each Region for use with encryption by default. If you change the default KMS key to a symmetric customer managed KMS key, it is used instead of the Amazon Web Services managed KMS key. To reset the default KMS key to the Amazon Web Services managed KMS key for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric KMS keys.

    If you delete or disable the customer managed KMS key that you specified for use with encryption by default, your instances will fail to launch.

    For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2ModifyEbsDefaultKmsKeyIdRequest

    See

    AWSEC2ModifyEbsDefaultKmsKeyIdResult

    Declaration

    Objective-C

    - (void)modifyEbsDefaultKmsKeyId:
                (nonnull AWSEC2ModifyEbsDefaultKmsKeyIdRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2ModifyEbsDefaultKmsKeyIdResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func modifyEbsDefaultKmsKeyId(_ request: AWSEC2ModifyEbsDefaultKmsKeyIdRequest) async throws -> AWSEC2ModifyEbsDefaultKmsKeyIdResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyEbsDefaultKmsKeyId service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified EC2 Fleet.

    You can only modify an EC2 Fleet request of type maintain.

    While the EC2 Fleet is being modified, it is in the modifying state.

    To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet launches the additional Spot Instances according to the allocation strategy for the EC2 Fleet request. If the allocation strategy is lowest-price, the EC2 Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the EC2 Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your EC2 Fleet, decrease its target capacity. First, the EC2 Fleet cancels any open requests that exceed the new target capacity. You can request that the EC2 Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowest-price, the EC2 Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacity-optimized, the EC2 Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the EC2 Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the EC2 Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your EC2 Fleet for now, but will use it again later, you can set the target capacity to 0.

    See

    AWSEC2ModifyFleetRequest

    See

    AWSEC2ModifyFleetResult

    Declaration

    Objective-C

    - (id)modifyFleet:(nonnull AWSEC2ModifyFleetRequest *)request;

    Swift

    func modifyFleet(_ request: AWSEC2ModifyFleetRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyFleet service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyFleetResult.

  • Modifies the specified EC2 Fleet.

    You can only modify an EC2 Fleet request of type maintain.

    While the EC2 Fleet is being modified, it is in the modifying state.

    To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet launches the additional Spot Instances according to the allocation strategy for the EC2 Fleet request. If the allocation strategy is lowest-price, the EC2 Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the EC2 Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacity-optimized, EC2 Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your EC2 Fleet, decrease its target capacity. First, the EC2 Fleet cancels any open requests that exceed the new target capacity. You can request that the EC2 Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowest-price, the EC2 Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacity-optimized, the EC2 Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the EC2 Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the EC2 Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your EC2 Fleet for now, but will use it again later, you can set the target capacity to 0.

    See

    AWSEC2ModifyFleetRequest

    See

    AWSEC2ModifyFleetResult

    Declaration

    Objective-C

    - (void)modifyFleet:(nonnull AWSEC2ModifyFleetRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2ModifyFleetResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func modifyFleet(_ request: AWSEC2ModifyFleetRequest) async throws -> AWSEC2ModifyFleetResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyFleet service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified attribute of the specified Amazon FPGA Image (AFI).

    See

    AWSEC2ModifyFpgaImageAttributeRequest

    See

    AWSEC2ModifyFpgaImageAttributeResult

    Declaration

    Objective-C

    - (id)modifyFpgaImageAttribute:
        (nonnull AWSEC2ModifyFpgaImageAttributeRequest *)request;

    Swift

    func modifyFpgaImageAttribute(_ request: AWSEC2ModifyFpgaImageAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyFpgaImageAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyFpgaImageAttributeResult.

  • Modifies the specified attribute of the specified Amazon FPGA Image (AFI).

    See

    AWSEC2ModifyFpgaImageAttributeRequest

    See

    AWSEC2ModifyFpgaImageAttributeResult

    Declaration

    Objective-C

    - (void)modifyFpgaImageAttribute:
                (nonnull AWSEC2ModifyFpgaImageAttributeRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2ModifyFpgaImageAttributeResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func modifyFpgaImageAttribute(_ request: AWSEC2ModifyFpgaImageAttributeRequest) async throws -> AWSEC2ModifyFpgaImageAttributeResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyFpgaImageAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of host but without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with auto-placement enabled.

    You can also use this API action to modify a Dedicated Host to support either multiple instance types in an instance family, or to support a specific instance type only.

    See

    AWSEC2ModifyHostsRequest

    See

    AWSEC2ModifyHostsResult

    Declaration

    Objective-C

    - (id)modifyHosts:(nonnull AWSEC2ModifyHostsRequest *)request;

    Swift

    func modifyHosts(_ request: AWSEC2ModifyHostsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyHosts service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyHostsResult.

  • Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of host but without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with auto-placement enabled.

    You can also use this API action to modify a Dedicated Host to support either multiple instance types in an instance family, or to support a specific instance type only.

    See

    AWSEC2ModifyHostsRequest

    See

    AWSEC2ModifyHostsResult

    Declaration

    Objective-C

    - (void)modifyHosts:(nonnull AWSEC2ModifyHostsRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2ModifyHostsResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func modifyHosts(_ request: AWSEC2ModifyHostsRequest) async throws -> AWSEC2ModifyHostsResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyHosts service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the ID format for the specified resource on a per-Region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    This setting applies to the IAM user who makes the request; it does not apply to the entire Amazon Web Services account. By default, an IAM user defaults to the same settings as the root user. If you’re using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    See

    AWSEC2ModifyIdFormatRequest

    Declaration

    Objective-C

    - (id)modifyIdFormat:(nonnull AWSEC2ModifyIdFormatRequest *)request;

    Swift

    func modifyIdFormat(_ request: AWSEC2ModifyIdFormatRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIdFormat service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Modifies the ID format for the specified resource on a per-Region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    This setting applies to the IAM user who makes the request; it does not apply to the entire Amazon Web Services account. By default, an IAM user defaults to the same settings as the root user. If you’re using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    See

    AWSEC2ModifyIdFormatRequest

    Declaration

    Objective-C

    - (void)modifyIdFormat:(nonnull AWSEC2ModifyIdFormatRequest *)request
         completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func modifyIdFormat(_ request: AWSEC2ModifyIdFormatRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIdFormat service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    See

    AWSEC2ModifyIdentityIdFormatRequest

    Declaration

    Objective-C

    - (id)modifyIdentityIdFormat:
        (nonnull AWSEC2ModifyIdentityIdFormatRequest *)request;

    Swift

    func modifyIdentityIdFormat(_ request: AWSEC2ModifyIdentityIdFormatRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIdentityIdFormat service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.

    This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include: bundle | conversion-task | customer-gateway | dhcp-options | elastic-ip-allocation | elastic-ip-association | export-task | flow-log | image | import-task | internet-gateway | network-acl | network-acl-association | network-interface | network-interface-attachment | prefix-list | route-table | route-table-association | security-group | subnet | subnet-cidr-block-association | vpc | vpc-cidr-block-association | vpc-endpoint | vpc-peering-connection | vpn-connection | vpn-gateway.

    For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.

    This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.

    Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

    See

    AWSEC2ModifyIdentityIdFormatRequest

    Declaration

    Objective-C

    - (void)modifyIdentityIdFormat:
                (nonnull AWSEC2ModifyIdentityIdFormatRequest *)request
                 completionHandler:
                     (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func modifyIdentityIdFormat(_ request: AWSEC2ModifyIdentityIdFormatRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIdentityIdFormat service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.

    To specify the attribute, you can use the Attribute parameter, or one of the following parameters: Description, ImdsSupport, or LaunchPermission.

    Images with an Amazon Web Services Marketplace product code cannot be made public.

    To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.

    See

    AWSEC2ModifyImageAttributeRequest

    Declaration

    Objective-C

    - (id)modifyImageAttribute:(nonnull AWSEC2ModifyImageAttributeRequest *)request;

    Swift

    func modifyImageAttribute(_ request: AWSEC2ModifyImageAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyImageAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time.

    To specify the attribute, you can use the Attribute parameter, or one of the following parameters: Description, ImdsSupport, or LaunchPermission.

    Images with an Amazon Web Services Marketplace product code cannot be made public.

    To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.

    See

    AWSEC2ModifyImageAttributeRequest

    Declaration

    Objective-C

    - (void)modifyImageAttribute:
                (nonnull AWSEC2ModifyImageAttributeRequest *)request
               completionHandler:
                   (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func modifyImageAttribute(_ request: AWSEC2ModifyImageAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ModifyImageAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

    Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.

    To modify some attributes, the instance must be stopped. For more information, see Modify a stopped instance in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyInstanceAttributeRequest

    Declaration

    Objective-C

    - (id)modifyInstanceAttribute:
        (nonnull AWSEC2ModifyInstanceAttributeRequest *)request;

    Swift

    func modifyInstanceAttribute(_ request: AWSEC2ModifyInstanceAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.

    Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.

    To modify some attributes, the instance must be stopped. For more information, see Modify a stopped instance in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyInstanceAttributeRequest

    Declaration

    Objective-C

    - (void)modifyInstanceAttribute:
                (nonnull AWSEC2ModifyInstanceAttributeRequest *)request
                  completionHandler:
                      (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func modifyInstanceAttribute(_ request: AWSEC2ModifyInstanceAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity.

    See

    AWSEC2ModifyInstanceCapacityReservationAttributesRequest

    See

    AWSEC2ModifyInstanceCapacityReservationAttributesResult

    Declaration

    Objective-C

    - (id)modifyInstanceCapacityReservationAttributes:
        (nonnull AWSEC2ModifyInstanceCapacityReservationAttributesRequest *)request;

    Swift

    func modifyInstanceCapacityReservationAttributes(_ request: AWSEC2ModifyInstanceCapacityReservationAttributesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceCapacityReservationAttributes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyInstanceCapacityReservationAttributesResult.

  • Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any open Capacity Reservation with matching attributes, or run On-Demand Instance capacity.

    See

    AWSEC2ModifyInstanceCapacityReservationAttributesRequest

    See

    AWSEC2ModifyInstanceCapacityReservationAttributesResult

    Declaration

    Objective-C

    - (void)
        modifyInstanceCapacityReservationAttributes:
            (nonnull AWSEC2ModifyInstanceCapacityReservationAttributesRequest *)
                request
                                  completionHandler:
                                      (void (^_Nullable)(
                                          AWSEC2ModifyInstanceCapacityReservationAttributesResult
                                              *_Nullable,
                                          NSError *_Nullable))completionHandler;

    Swift

    func modifyInstanceCapacityReservationAttributes(_ request: AWSEC2ModifyInstanceCapacityReservationAttributesRequest) async throws -> AWSEC2ModifyInstanceCapacityReservationAttributesResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceCapacityReservationAttributes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are standard and unlimited.

    For more information, see Burstable performance instances in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyInstanceCreditSpecificationRequest

    See

    AWSEC2ModifyInstanceCreditSpecificationResult

    Declaration

    Objective-C

    - (id)modifyInstanceCreditSpecification:
        (nonnull AWSEC2ModifyInstanceCreditSpecificationRequest *)request;

    Swift

    func modifyInstanceCreditSpecification(_ request: AWSEC2ModifyInstanceCreditSpecificationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceCreditSpecification service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyInstanceCreditSpecificationResult.

  • Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are standard and unlimited.

    For more information, see Burstable performance instances in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyInstanceCreditSpecificationRequest

    See

    AWSEC2ModifyInstanceCreditSpecificationResult

    Declaration

    Objective-C

    - (void)modifyInstanceCreditSpecification:
                (nonnull AWSEC2ModifyInstanceCreditSpecificationRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2ModifyInstanceCreditSpecificationResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func modifyInstanceCreditSpecification(_ request: AWSEC2ModifyInstanceCreditSpecificationRequest) async throws -> AWSEC2ModifyInstanceCreditSpecificationResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceCreditSpecification service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the start time for a scheduled Amazon EC2 instance event.

    See

    AWSEC2ModifyInstanceEventStartTimeRequest

    See

    AWSEC2ModifyInstanceEventStartTimeResult

    Declaration

    Objective-C

    - (id)modifyInstanceEventStartTime:
        (nonnull AWSEC2ModifyInstanceEventStartTimeRequest *)request;

    Swift

    func modifyInstanceEventStartTime(_ request: AWSEC2ModifyInstanceEventStartTimeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceEventStartTime service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyInstanceEventStartTimeResult.

  • Modifies the start time for a scheduled Amazon EC2 instance event.

    See

    AWSEC2ModifyInstanceEventStartTimeRequest

    See

    AWSEC2ModifyInstanceEventStartTimeResult

    Declaration

    Objective-C

    - (void)modifyInstanceEventStartTime:
                (nonnull AWSEC2ModifyInstanceEventStartTimeRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2ModifyInstanceEventStartTimeResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func modifyInstanceEventStartTime(_ request: AWSEC2ModifyInstanceEventStartTimeRequest) async throws -> AWSEC2ModifyInstanceEventStartTimeResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceEventStartTime service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified event window.

    You can define either a set of time ranges or a cron expression when modifying the event window, but not both.

    To modify the targets associated with the event window, use the AssociateInstanceEventWindow and DisassociateInstanceEventWindow API.

    If Amazon Web Services has already scheduled an event, modifying an event window won’t change the time of the scheduled event.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyInstanceEventWindowRequest

    See

    AWSEC2ModifyInstanceEventWindowResult

    Declaration

    Objective-C

    - (id)modifyInstanceEventWindow:
        (nonnull AWSEC2ModifyInstanceEventWindowRequest *)request;

    Swift

    func modifyInstanceEventWindow(_ request: AWSEC2ModifyInstanceEventWindowRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceEventWindow service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyInstanceEventWindowResult.

  • Modifies the specified event window.

    You can define either a set of time ranges or a cron expression when modifying the event window, but not both.

    To modify the targets associated with the event window, use the AssociateInstanceEventWindow and DisassociateInstanceEventWindow API.

    If Amazon Web Services has already scheduled an event, modifying an event window won’t change the time of the scheduled event.

    For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyInstanceEventWindowRequest

    See

    AWSEC2ModifyInstanceEventWindowResult

    Declaration

    Objective-C

    - (void)modifyInstanceEventWindow:
                (nonnull AWSEC2ModifyInstanceEventWindowRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2ModifyInstanceEventWindowResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func modifyInstanceEventWindow(_ request: AWSEC2ModifyInstanceEventWindowRequest) async throws -> AWSEC2ModifyInstanceEventWindowResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceEventWindow service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default. The default configuration will not enable simplified automatic recovery for an unsupported instance type. For more information, see Simplified automatic recovery.

    See

    AWSEC2ModifyInstanceMaintenanceOptionsRequest

    See

    AWSEC2ModifyInstanceMaintenanceOptionsResult

    Declaration

    Objective-C

    - (id)modifyInstanceMaintenanceOptions:
        (nonnull AWSEC2ModifyInstanceMaintenanceOptionsRequest *)request;

    Swift

    func modifyInstanceMaintenanceOptions(_ request: AWSEC2ModifyInstanceMaintenanceOptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceMaintenanceOptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyInstanceMaintenanceOptionsResult.

  • Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default. The default configuration will not enable simplified automatic recovery for an unsupported instance type. For more information, see Simplified automatic recovery.

    See

    AWSEC2ModifyInstanceMaintenanceOptionsRequest

    See

    AWSEC2ModifyInstanceMaintenanceOptionsResult

    Declaration

    Objective-C

    - (void)modifyInstanceMaintenanceOptions:
                (nonnull AWSEC2ModifyInstanceMaintenanceOptionsRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2ModifyInstanceMaintenanceOptionsResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func modifyInstanceMaintenanceOptions(_ request: AWSEC2ModifyInstanceMaintenanceOptionsRequest) async throws -> AWSEC2ModifyInstanceMaintenanceOptionsResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceMaintenanceOptions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the default instance metadata service (IMDS) settings at the account level in the specified Amazon Web Services
 Region.

    To remove a parameter’s account-level default setting, specify no-preference. If an account-level setting is cleared with no-preference, then the instance launch considers the other instance metadata settings. For more information, see Order of precedence for instance metadata options in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyInstanceMetadataDefaultsRequest

    See

    AWSEC2ModifyInstanceMetadataDefaultsResult

    Declaration

    Objective-C

    - (id)modifyInstanceMetadataDefaults:
        (nonnull AWSEC2ModifyInstanceMetadataDefaultsRequest *)request;

    Swift

    func modifyInstanceMetadataDefaults(_ request: AWSEC2ModifyInstanceMetadataDefaultsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceMetadataDefaults service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyInstanceMetadataDefaultsResult.

  • Modifies the default instance metadata service (IMDS) settings at the account level in the specified Amazon Web Services
 Region.

    To remove a parameter’s account-level default setting, specify no-preference. If an account-level setting is cleared with no-preference, then the instance launch considers the other instance metadata settings. For more information, see Order of precedence for instance metadata options in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyInstanceMetadataDefaultsRequest

    See

    AWSEC2ModifyInstanceMetadataDefaultsResult

    Declaration

    Objective-C

    - (void)
        modifyInstanceMetadataDefaults:
            (nonnull AWSEC2ModifyInstanceMetadataDefaultsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2ModifyInstanceMetadataDefaultsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func modifyInstanceMetadataDefaults(_ request: AWSEC2ModifyInstanceMetadataDefaultsRequest) async throws -> AWSEC2ModifyInstanceMetadataDefaultsResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceMetadataDefaults service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modify the instance metadata parameters on a running or stopped instance. When you modify the parameters on a stopped instance, they are applied when the instance is started. When you modify the parameters on a running instance, the API responds with a state of “pending”. After the parameter modifications are successfully applied to the instance, the state of the modifications changes from “pending” to “applied” in subsequent describe-instances API calls. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyInstanceMetadataOptionsRequest

    See

    AWSEC2ModifyInstanceMetadataOptionsResult

    Declaration

    Objective-C

    - (id)modifyInstanceMetadataOptions:
        (nonnull AWSEC2ModifyInstanceMetadataOptionsRequest *)request;

    Swift

    func modifyInstanceMetadataOptions(_ request: AWSEC2ModifyInstanceMetadataOptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceMetadataOptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyInstanceMetadataOptionsResult.

  • Modify the instance metadata parameters on a running or stopped instance. When you modify the parameters on a stopped instance, they are applied when the instance is started. When you modify the parameters on a running instance, the API responds with a state of “pending”. After the parameter modifications are successfully applied to the instance, the state of the modifications changes from “pending” to “applied” in subsequent describe-instances API calls. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyInstanceMetadataOptionsRequest

    See

    AWSEC2ModifyInstanceMetadataOptionsResult

    Declaration

    Objective-C

    - (void)
        modifyInstanceMetadataOptions:
            (nonnull AWSEC2ModifyInstanceMetadataOptionsRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2ModifyInstanceMetadataOptionsResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func modifyInstanceMetadataOptions(_ request: AWSEC2ModifyInstanceMetadataOptionsRequest) async throws -> AWSEC2ModifyInstanceMetadataOptionsResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstanceMetadataOptions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the placement attributes for a specified instance. You can do the following:

    • Modify the affinity between an instance and a Dedicated Host. When affinity is set to host and the instance is not associated with a specific Dedicated Host, the next time the instance is started, it is automatically associated with the host on which it lands. If the instance is restarted or rebooted, this relationship persists.

    • Change the Dedicated Host with which an instance is associated.

    • Change the instance tenancy of an instance.

    • Move an instance to or from a placement group.

    At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.

    To modify the host ID, tenancy, placement group, or partition for an instance, the instance must be in the stopped state.

    See

    AWSEC2ModifyInstancePlacementRequest

    See

    AWSEC2ModifyInstancePlacementResult

    Declaration

    Objective-C

    - (id)modifyInstancePlacement:
        (nonnull AWSEC2ModifyInstancePlacementRequest *)request;

    Swift

    func modifyInstancePlacement(_ request: AWSEC2ModifyInstancePlacementRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstancePlacement service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyInstancePlacementResult.

  • Modifies the placement attributes for a specified instance. You can do the following:

    • Modify the affinity between an instance and a Dedicated Host. When affinity is set to host and the instance is not associated with a specific Dedicated Host, the next time the instance is started, it is automatically associated with the host on which it lands. If the instance is restarted or rebooted, this relationship persists.

    • Change the Dedicated Host with which an instance is associated.

    • Change the instance tenancy of an instance.

    • Move an instance to or from a placement group.

    At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.

    To modify the host ID, tenancy, placement group, or partition for an instance, the instance must be in the stopped state.

    See

    AWSEC2ModifyInstancePlacementRequest

    See

    AWSEC2ModifyInstancePlacementResult

    Declaration

    Objective-C

    - (void)
        modifyInstancePlacement:
            (nonnull AWSEC2ModifyInstancePlacementRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2ModifyInstancePlacementResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func modifyInstancePlacement(_ request: AWSEC2ModifyInstancePlacementRequest) async throws -> AWSEC2ModifyInstancePlacementResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyInstancePlacement service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modify the configurations of an IPAM.

    See

    AWSEC2ModifyIpamRequest

    See

    AWSEC2ModifyIpamResult

    Declaration

    Objective-C

    - (id)modifyIpam:(nonnull AWSEC2ModifyIpamRequest *)request;

    Swift

    func modifyIpam(_ request: AWSEC2ModifyIpamRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIpam service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyIpamResult.

  • Modify the configurations of an IPAM.

    See

    AWSEC2ModifyIpamRequest

    See

    AWSEC2ModifyIpamResult

    Declaration

    Objective-C

    - (void)modifyIpam:(nonnull AWSEC2ModifyIpamRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2ModifyIpamResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func modifyIpam(_ request: AWSEC2ModifyIpamRequest) async throws -> AWSEC2ModifyIpamResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIpam service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modify the configurations of an IPAM pool.

    For more information, see Modify a pool in the Amazon VPC IPAM User Guide.

    See

    AWSEC2ModifyIpamPoolRequest

    See

    AWSEC2ModifyIpamPoolResult

    Declaration

    Objective-C

    - (id)modifyIpamPool:(nonnull AWSEC2ModifyIpamPoolRequest *)request;

    Swift

    func modifyIpamPool(_ request: AWSEC2ModifyIpamPoolRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIpamPool service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyIpamPoolResult.

  • Modify the configurations of an IPAM pool.

    For more information, see Modify a pool in the Amazon VPC IPAM User Guide.

    See

    AWSEC2ModifyIpamPoolRequest

    See

    AWSEC2ModifyIpamPoolResult

    Declaration

    Objective-C

    - (void)modifyIpamPool:(nonnull AWSEC2ModifyIpamPoolRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2ModifyIpamPoolResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func modifyIpamPool(_ request: AWSEC2ModifyIpamPoolRequest) async throws -> AWSEC2ModifyIpamPoolResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIpamPool service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modify a resource CIDR. You can use this action to transfer resource CIDRs between scopes and ignore resource CIDRs that you do not want to manage. If set to false, the resource will not be tracked for overlap, it cannot be auto-imported into a pool, and it will be removed from any pool it has an allocation in.

    For more information, see Move resource CIDRs between scopes and Change the monitoring state of resource CIDRs in the Amazon VPC IPAM User Guide.

    See

    AWSEC2ModifyIpamResourceCidrRequest

    See

    AWSEC2ModifyIpamResourceCidrResult

    Declaration

    Objective-C

    - (id)modifyIpamResourceCidr:
        (nonnull AWSEC2ModifyIpamResourceCidrRequest *)request;

    Swift

    func modifyIpamResourceCidr(_ request: AWSEC2ModifyIpamResourceCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIpamResourceCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyIpamResourceCidrResult.

  • Modify a resource CIDR. You can use this action to transfer resource CIDRs between scopes and ignore resource CIDRs that you do not want to manage. If set to false, the resource will not be tracked for overlap, it cannot be auto-imported into a pool, and it will be removed from any pool it has an allocation in.

    For more information, see Move resource CIDRs between scopes and Change the monitoring state of resource CIDRs in the Amazon VPC IPAM User Guide.

    See

    AWSEC2ModifyIpamResourceCidrRequest

    See

    AWSEC2ModifyIpamResourceCidrResult

    Declaration

    Objective-C

    - (void)
        modifyIpamResourceCidr:
            (nonnull AWSEC2ModifyIpamResourceCidrRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2ModifyIpamResourceCidrResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func modifyIpamResourceCidr(_ request: AWSEC2ModifyIpamResourceCidrRequest) async throws -> AWSEC2ModifyIpamResourceCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIpamResourceCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies a resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2ModifyIpamResourceDiscoveryRequest

    See

    AWSEC2ModifyIpamResourceDiscoveryResult

    Declaration

    Objective-C

    - (id)modifyIpamResourceDiscovery:
        (nonnull AWSEC2ModifyIpamResourceDiscoveryRequest *)request;

    Swift

    func modifyIpamResourceDiscovery(_ request: AWSEC2ModifyIpamResourceDiscoveryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIpamResourceDiscovery service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyIpamResourceDiscoveryResult.

  • Modifies a resource discovery. A resource discovery is an IPAM component that enables IPAM to manage and monitor resources that belong to the owning account.

    See

    AWSEC2ModifyIpamResourceDiscoveryRequest

    See

    AWSEC2ModifyIpamResourceDiscoveryResult

    Declaration

    Objective-C

    - (void)modifyIpamResourceDiscovery:
                (nonnull AWSEC2ModifyIpamResourceDiscoveryRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2ModifyIpamResourceDiscoveryResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func modifyIpamResourceDiscovery(_ request: AWSEC2ModifyIpamResourceDiscoveryRequest) async throws -> AWSEC2ModifyIpamResourceDiscoveryResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIpamResourceDiscovery service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modify an IPAM scope.

    See

    AWSEC2ModifyIpamScopeRequest

    See

    AWSEC2ModifyIpamScopeResult

    Declaration

    Objective-C

    - (id)modifyIpamScope:(nonnull AWSEC2ModifyIpamScopeRequest *)request;

    Swift

    func modifyIpamScope(_ request: AWSEC2ModifyIpamScopeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIpamScope service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyIpamScopeResult.

  • Modify an IPAM scope.

    See

    AWSEC2ModifyIpamScopeRequest

    See

    AWSEC2ModifyIpamScopeResult

    Declaration

    Objective-C

    - (void)modifyIpamScope:(nonnull AWSEC2ModifyIpamScopeRequest *)request
          completionHandler:
              (void (^_Nullable)(AWSEC2ModifyIpamScopeResult *_Nullable,
                                 NSError *_Nullable))completionHandler;

    Swift

    func modifyIpamScope(_ request: AWSEC2ModifyIpamScopeRequest) async throws -> AWSEC2ModifyIpamScopeResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyIpamScope service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.

    See

    AWSEC2ModifyLaunchTemplateRequest

    See

    AWSEC2ModifyLaunchTemplateResult

    Declaration

    Objective-C

    - (id)modifyLaunchTemplate:(nonnull AWSEC2ModifyLaunchTemplateRequest *)request;

    Swift

    func modifyLaunchTemplate(_ request: AWSEC2ModifyLaunchTemplateRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyLaunchTemplate service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyLaunchTemplateResult.

  • Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.

    See

    AWSEC2ModifyLaunchTemplateRequest

    See

    AWSEC2ModifyLaunchTemplateResult

    Declaration

    Objective-C

    - (void)modifyLaunchTemplate:
                (nonnull AWSEC2ModifyLaunchTemplateRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2ModifyLaunchTemplateResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func modifyLaunchTemplate(_ request: AWSEC2ModifyLaunchTemplateRequest) async throws -> AWSEC2ModifyLaunchTemplateResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyLaunchTemplate service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified local gateway route.

    See

    AWSEC2ModifyLocalGatewayRouteRequest

    See

    AWSEC2ModifyLocalGatewayRouteResult

    Declaration

    Objective-C

    - (id)modifyLocalGatewayRoute:
        (nonnull AWSEC2ModifyLocalGatewayRouteRequest *)request;

    Swift

    func modifyLocalGatewayRoute(_ request: AWSEC2ModifyLocalGatewayRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyLocalGatewayRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyLocalGatewayRouteResult.

  • Modifies the specified local gateway route.

    See

    AWSEC2ModifyLocalGatewayRouteRequest

    See

    AWSEC2ModifyLocalGatewayRouteResult

    Declaration

    Objective-C

    - (void)
        modifyLocalGatewayRoute:
            (nonnull AWSEC2ModifyLocalGatewayRouteRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2ModifyLocalGatewayRouteResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func modifyLocalGatewayRoute(_ request: AWSEC2ModifyLocalGatewayRouteRequest) async throws -> AWSEC2ModifyLocalGatewayRouteResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyLocalGatewayRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified managed prefix list.

    Adding or removing entries in a prefix list creates a new version of the prefix list. Changing the name of the prefix list does not affect the version.

    If you specify a current version number that does not match the true current version number, the request fails.

    See

    AWSEC2ModifyManagedPrefixListRequest

    See

    AWSEC2ModifyManagedPrefixListResult

    Declaration

    Objective-C

    - (id)modifyManagedPrefixList:
        (nonnull AWSEC2ModifyManagedPrefixListRequest *)request;

    Swift

    func modifyManagedPrefixList(_ request: AWSEC2ModifyManagedPrefixListRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyManagedPrefixList service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyManagedPrefixListResult.

  • Modifies the specified managed prefix list.

    Adding or removing entries in a prefix list creates a new version of the prefix list. Changing the name of the prefix list does not affect the version.

    If you specify a current version number that does not match the true current version number, the request fails.

    See

    AWSEC2ModifyManagedPrefixListRequest

    See

    AWSEC2ModifyManagedPrefixListResult

    Declaration

    Objective-C

    - (void)
        modifyManagedPrefixList:
            (nonnull AWSEC2ModifyManagedPrefixListRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2ModifyManagedPrefixListResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func modifyManagedPrefixList(_ request: AWSEC2ModifyManagedPrefixListRequest) async throws -> AWSEC2ModifyManagedPrefixListResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyManagedPrefixList service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance.

    See

    AWSEC2ModifyNetworkInterfaceAttributeRequest

    Declaration

    Objective-C

    - (id)modifyNetworkInterfaceAttribute:
        (nonnull AWSEC2ModifyNetworkInterfaceAttributeRequest *)request;

    Swift

    func modifyNetworkInterfaceAttribute(_ request: AWSEC2ModifyNetworkInterfaceAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyNetworkInterfaceAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance.

    See

    AWSEC2ModifyNetworkInterfaceAttributeRequest

    Declaration

    Objective-C

    - (void)modifyNetworkInterfaceAttribute:
                (nonnull AWSEC2ModifyNetworkInterfaceAttributeRequest *)request
                          completionHandler:(void (^_Nullable)(NSError *_Nullable))
                                                completionHandler;

    Swift

    func modifyNetworkInterfaceAttribute(_ request: AWSEC2ModifyNetworkInterfaceAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ModifyNetworkInterfaceAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the options for instance hostnames for the specified instance.

    See

    AWSEC2ModifyPrivateDnsNameOptionsRequest

    See

    AWSEC2ModifyPrivateDnsNameOptionsResult

    Declaration

    Objective-C

    - (id)modifyPrivateDnsNameOptions:
        (nonnull AWSEC2ModifyPrivateDnsNameOptionsRequest *)request;

    Swift

    func modifyPrivateDnsNameOptions(_ request: AWSEC2ModifyPrivateDnsNameOptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyPrivateDnsNameOptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyPrivateDnsNameOptionsResult.

  • Modifies the options for instance hostnames for the specified instance.

    See

    AWSEC2ModifyPrivateDnsNameOptionsRequest

    See

    AWSEC2ModifyPrivateDnsNameOptionsResult

    Declaration

    Objective-C

    - (void)modifyPrivateDnsNameOptions:
                (nonnull AWSEC2ModifyPrivateDnsNameOptionsRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2ModifyPrivateDnsNameOptionsResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func modifyPrivateDnsNameOptions(_ request: AWSEC2ModifyPrivateDnsNameOptionsRequest) async throws -> AWSEC2ModifyPrivateDnsNameOptionsResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyPrivateDnsNameOptions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the configuration of your Reserved Instances, such as the Availability Zone, instance count, or instance type. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

    For more information, see Modify Reserved Instances in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyReservedInstancesRequest

    See

    AWSEC2ModifyReservedInstancesResult

    Declaration

    Objective-C

    - (id)modifyReservedInstances:
        (nonnull AWSEC2ModifyReservedInstancesRequest *)request;

    Swift

    func modifyReservedInstances(_ request: AWSEC2ModifyReservedInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyReservedInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyReservedInstancesResult.

  • Modifies the configuration of your Reserved Instances, such as the Availability Zone, instance count, or instance type. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.

    For more information, see Modify Reserved Instances in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyReservedInstancesRequest

    See

    AWSEC2ModifyReservedInstancesResult

    Declaration

    Objective-C

    - (void)
        modifyReservedInstances:
            (nonnull AWSEC2ModifyReservedInstancesRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2ModifyReservedInstancesResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func modifyReservedInstances(_ request: AWSEC2ModifyReservedInstancesRequest) async throws -> AWSEC2ModifyReservedInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyReservedInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the rules of a security group.

    See

    AWSEC2ModifySecurityGroupRulesRequest

    See

    AWSEC2ModifySecurityGroupRulesResult

    Declaration

    Objective-C

    - (id)modifySecurityGroupRules:
        (nonnull AWSEC2ModifySecurityGroupRulesRequest *)request;

    Swift

    func modifySecurityGroupRules(_ request: AWSEC2ModifySecurityGroupRulesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifySecurityGroupRules service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifySecurityGroupRulesResult.

  • Modifies the rules of a security group.

    See

    AWSEC2ModifySecurityGroupRulesRequest

    See

    AWSEC2ModifySecurityGroupRulesResult

    Declaration

    Objective-C

    - (void)modifySecurityGroupRules:
                (nonnull AWSEC2ModifySecurityGroupRulesRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2ModifySecurityGroupRulesResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func modifySecurityGroupRules(_ request: AWSEC2ModifySecurityGroupRulesRequest) async throws -> AWSEC2ModifySecurityGroupRulesResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifySecurityGroupRules service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Adds or removes permission settings for the specified snapshot. You may add or remove specified Amazon Web Services account IDs from a snapshot’s list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

    Encrypted snapshots and snapshots with Amazon Web Services Marketplace product codes cannot be made public. Snapshots encrypted with your default KMS key cannot be shared with other accounts.

    For more information about modifying snapshot permissions, see Share a snapshot in the Amazon EBS User Guide.

    See

    AWSEC2ModifySnapshotAttributeRequest

    Declaration

    Objective-C

    - (id)modifySnapshotAttribute:
        (nonnull AWSEC2ModifySnapshotAttributeRequest *)request;

    Swift

    func modifySnapshotAttribute(_ request: AWSEC2ModifySnapshotAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifySnapshotAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Adds or removes permission settings for the specified snapshot. You may add or remove specified Amazon Web Services account IDs from a snapshot’s list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.

    Encrypted snapshots and snapshots with Amazon Web Services Marketplace product codes cannot be made public. Snapshots encrypted with your default KMS key cannot be shared with other accounts.

    For more information about modifying snapshot permissions, see Share a snapshot in the Amazon EBS User Guide.

    See

    AWSEC2ModifySnapshotAttributeRequest

    Declaration

    Objective-C

    - (void)modifySnapshotAttribute:
                (nonnull AWSEC2ModifySnapshotAttributeRequest *)request
                  completionHandler:
                      (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func modifySnapshotAttribute(_ request: AWSEC2ModifySnapshotAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ModifySnapshotAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Archives an Amazon EBS snapshot. When you archive a snapshot, it is converted to a full snapshot that includes all of the blocks of data that were written to the volume at the time the snapshot was created, and moved from the standard tier to the archive tier. For more information, see Archive Amazon EBS snapshots in the Amazon EBS User Guide.

    See

    AWSEC2ModifySnapshotTierRequest

    See

    AWSEC2ModifySnapshotTierResult

    Declaration

    Objective-C

    - (id)modifySnapshotTier:(nonnull AWSEC2ModifySnapshotTierRequest *)request;

    Swift

    func modifySnapshotTier(_ request: AWSEC2ModifySnapshotTierRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifySnapshotTier service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifySnapshotTierResult.

  • Archives an Amazon EBS snapshot. When you archive a snapshot, it is converted to a full snapshot that includes all of the blocks of data that were written to the volume at the time the snapshot was created, and moved from the standard tier to the archive tier. For more information, see Archive Amazon EBS snapshots in the Amazon EBS User Guide.

    See

    AWSEC2ModifySnapshotTierRequest

    See

    AWSEC2ModifySnapshotTierResult

    Declaration

    Objective-C

    - (void)modifySnapshotTier:(nonnull AWSEC2ModifySnapshotTierRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2ModifySnapshotTierResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func modifySnapshotTier(_ request: AWSEC2ModifySnapshotTierRequest) async throws -> AWSEC2ModifySnapshotTierResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifySnapshotTier service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified Spot Fleet request.

    You can only modify a Spot Fleet request of type maintain.

    While the Spot Fleet request is being modified, it is in the modifying state.

    To scale up your Spot Fleet, increase its target capacity. The Spot Fleet launches the additional Spot Instances according to the allocation strategy for the Spot Fleet request. If the allocation strategy is lowestPrice, the Spot Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the Spot Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacityOptimized, Spot Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your Spot Fleet, decrease its target capacity. First, the Spot Fleet cancels any open requests that exceed the new target capacity. You can request that the Spot Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowestPrice, the Spot Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacityOptimized, the Spot Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the Spot Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the Spot Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.

    See

    AWSEC2ModifySpotFleetRequestRequest

    See

    AWSEC2ModifySpotFleetRequestResponse

    Declaration

    Objective-C

    - (id)modifySpotFleetRequest:
        (nonnull AWSEC2ModifySpotFleetRequestRequest *)request;

    Swift

    func modifySpotFleetRequest(_ request: AWSEC2ModifySpotFleetRequestRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifySpotFleetRequest service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifySpotFleetRequestResponse.

  • Modifies the specified Spot Fleet request.

    You can only modify a Spot Fleet request of type maintain.

    While the Spot Fleet request is being modified, it is in the modifying state.

    To scale up your Spot Fleet, increase its target capacity. The Spot Fleet launches the additional Spot Instances according to the allocation strategy for the Spot Fleet request. If the allocation strategy is lowestPrice, the Spot Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy is diversified, the Spot Fleet distributes the instances across the Spot Instance pools. If the allocation strategy is capacityOptimized, Spot Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.

    To scale down your Spot Fleet, decrease its target capacity. First, the Spot Fleet cancels any open requests that exceed the new target capacity. You can request that the Spot Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is lowestPrice, the Spot Fleet terminates the instances with the highest price per unit. If the allocation strategy is capacityOptimized, the Spot Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy is diversified, the Spot Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the Spot Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.

    If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.

    See

    AWSEC2ModifySpotFleetRequestRequest

    See

    AWSEC2ModifySpotFleetRequestResponse

    Declaration

    Objective-C

    - (void)
        modifySpotFleetRequest:
            (nonnull AWSEC2ModifySpotFleetRequestRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2ModifySpotFleetRequestResponse *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func modifySpotFleetRequest(_ request: AWSEC2ModifySpotFleetRequestRequest) async throws -> AWSEC2ModifySpotFleetRequestResponse

    Parameters

    request

    A container for the necessary parameters to execute the ModifySpotFleetRequest service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies a subnet attribute. You can only modify one attribute at a time.

    Use this action to modify subnets on Amazon Web Services Outposts.

    • To modify a subnet on an Outpost rack, set both MapCustomerOwnedIpOnLaunch and CustomerOwnedIpv4Pool. These two parameters act as a single attribute.

    • To modify a subnet on an Outpost server, set either EnableLniAtDeviceIndex or DisableLniAtDeviceIndex.

    For more information about Amazon Web Services Outposts, see the following:

    See

    AWSEC2ModifySubnetAttributeRequest

    Declaration

    Objective-C

    - (id)modifySubnetAttribute:
        (nonnull AWSEC2ModifySubnetAttributeRequest *)request;

    Swift

    func modifySubnetAttribute(_ request: AWSEC2ModifySubnetAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifySubnetAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Modifies a subnet attribute. You can only modify one attribute at a time.

    Use this action to modify subnets on Amazon Web Services Outposts.

    • To modify a subnet on an Outpost rack, set both MapCustomerOwnedIpOnLaunch and CustomerOwnedIpv4Pool. These two parameters act as a single attribute.

    • To modify a subnet on an Outpost server, set either EnableLniAtDeviceIndex or DisableLniAtDeviceIndex.

    For more information about Amazon Web Services Outposts, see the following:

    See

    AWSEC2ModifySubnetAttributeRequest

    Declaration

    Objective-C

    - (void)modifySubnetAttribute:
                (nonnull AWSEC2ModifySubnetAttributeRequest *)request
                completionHandler:
                    (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func modifySubnetAttribute(_ request: AWSEC2ModifySubnetAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ModifySubnetAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • 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

    AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest

    See

    AWSEC2ModifyTrafficMirrorFilterNetworkServicesResult

    Declaration

    Objective-C

    - (id)modifyTrafficMirrorFilterNetworkServices:
        (nonnull AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest *)request;

    Swift

    func modifyTrafficMirrorFilterNetworkServices(_ request: AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTrafficMirrorFilterNetworkServices service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyTrafficMirrorFilterNetworkServicesResult.

  • 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

    AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest

    See

    AWSEC2ModifyTrafficMirrorFilterNetworkServicesResult

    Declaration

    Objective-C

    - (void)
        modifyTrafficMirrorFilterNetworkServices:
            (nonnull AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest *)request
                               completionHandler:
                                   (void (^_Nullable)(
                                       AWSEC2ModifyTrafficMirrorFilterNetworkServicesResult
                                           *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func modifyTrafficMirrorFilterNetworkServices(_ request: AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest) async throws -> AWSEC2ModifyTrafficMirrorFilterNetworkServicesResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTrafficMirrorFilterNetworkServices service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified Traffic Mirror rule.

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

    See

    AWSEC2ModifyTrafficMirrorFilterRuleRequest

    See

    AWSEC2ModifyTrafficMirrorFilterRuleResult

    Declaration

    Objective-C

    - (id)modifyTrafficMirrorFilterRule:
        (nonnull AWSEC2ModifyTrafficMirrorFilterRuleRequest *)request;

    Swift

    func modifyTrafficMirrorFilterRule(_ request: AWSEC2ModifyTrafficMirrorFilterRuleRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTrafficMirrorFilterRule service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyTrafficMirrorFilterRuleResult.

  • Modifies the specified Traffic Mirror rule.

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

    See

    AWSEC2ModifyTrafficMirrorFilterRuleRequest

    See

    AWSEC2ModifyTrafficMirrorFilterRuleResult

    Declaration

    Objective-C

    - (void)
        modifyTrafficMirrorFilterRule:
            (nonnull AWSEC2ModifyTrafficMirrorFilterRuleRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2ModifyTrafficMirrorFilterRuleResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func modifyTrafficMirrorFilterRule(_ request: AWSEC2ModifyTrafficMirrorFilterRuleRequest) async throws -> AWSEC2ModifyTrafficMirrorFilterRuleResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTrafficMirrorFilterRule service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies a Traffic Mirror session.

    See

    AWSEC2ModifyTrafficMirrorSessionRequest

    See

    AWSEC2ModifyTrafficMirrorSessionResult

    Declaration

    Objective-C

    - (id)modifyTrafficMirrorSession:
        (nonnull AWSEC2ModifyTrafficMirrorSessionRequest *)request;

    Swift

    func modifyTrafficMirrorSession(_ request: AWSEC2ModifyTrafficMirrorSessionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTrafficMirrorSession service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyTrafficMirrorSessionResult.

  • Modifies a Traffic Mirror session.

    See

    AWSEC2ModifyTrafficMirrorSessionRequest

    See

    AWSEC2ModifyTrafficMirrorSessionResult

    Declaration

    Objective-C

    - (void)modifyTrafficMirrorSession:
                (nonnull AWSEC2ModifyTrafficMirrorSessionRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2ModifyTrafficMirrorSessionResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func modifyTrafficMirrorSession(_ request: AWSEC2ModifyTrafficMirrorSessionRequest) async throws -> AWSEC2ModifyTrafficMirrorSessionResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTrafficMirrorSession service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified transit gateway. When you modify a transit gateway, the modified options are applied to new transit gateway attachments only. Your existing transit gateway attachments are not modified.

    See

    AWSEC2ModifyTransitGatewayRequest

    See

    AWSEC2ModifyTransitGatewayResult

    Declaration

    Objective-C

    - (id)modifyTransitGateway:(nonnull AWSEC2ModifyTransitGatewayRequest *)request;

    Swift

    func modifyTransitGateway(_ request: AWSEC2ModifyTransitGatewayRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTransitGateway service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyTransitGatewayResult.

  • Modifies the specified transit gateway. When you modify a transit gateway, the modified options are applied to new transit gateway attachments only. Your existing transit gateway attachments are not modified.

    See

    AWSEC2ModifyTransitGatewayRequest

    See

    AWSEC2ModifyTransitGatewayResult

    Declaration

    Objective-C

    - (void)modifyTransitGateway:
                (nonnull AWSEC2ModifyTransitGatewayRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2ModifyTransitGatewayResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func modifyTransitGateway(_ request: AWSEC2ModifyTransitGatewayRequest) async throws -> AWSEC2ModifyTransitGatewayResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTransitGateway service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies a reference (route) to a prefix list in a specified transit gateway route table.

    See

    AWSEC2ModifyTransitGatewayPrefixListReferenceRequest

    See

    AWSEC2ModifyTransitGatewayPrefixListReferenceResult

    Declaration

    Objective-C

    - (id)modifyTransitGatewayPrefixListReference:
        (nonnull AWSEC2ModifyTransitGatewayPrefixListReferenceRequest *)request;

    Swift

    func modifyTransitGatewayPrefixListReference(_ request: AWSEC2ModifyTransitGatewayPrefixListReferenceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTransitGatewayPrefixListReference service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyTransitGatewayPrefixListReferenceResult.

  • Modifies a reference (route) to a prefix list in a specified transit gateway route table.

    See

    AWSEC2ModifyTransitGatewayPrefixListReferenceRequest

    See

    AWSEC2ModifyTransitGatewayPrefixListReferenceResult

    Declaration

    Objective-C

    - (void)
        modifyTransitGatewayPrefixListReference:
            (nonnull AWSEC2ModifyTransitGatewayPrefixListReferenceRequest *)request
                              completionHandler:
                                  (void (^_Nullable)(
                                      AWSEC2ModifyTransitGatewayPrefixListReferenceResult
                                          *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func modifyTransitGatewayPrefixListReference(_ request: AWSEC2ModifyTransitGatewayPrefixListReferenceRequest) async throws -> AWSEC2ModifyTransitGatewayPrefixListReferenceResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTransitGatewayPrefixListReference service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified VPC attachment.

    See

    AWSEC2ModifyTransitGatewayVpcAttachmentRequest

    See

    AWSEC2ModifyTransitGatewayVpcAttachmentResult

    Declaration

    Objective-C

    - (id)modifyTransitGatewayVpcAttachment:
        (nonnull AWSEC2ModifyTransitGatewayVpcAttachmentRequest *)request;

    Swift

    func modifyTransitGatewayVpcAttachment(_ request: AWSEC2ModifyTransitGatewayVpcAttachmentRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTransitGatewayVpcAttachment service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyTransitGatewayVpcAttachmentResult.

  • Modifies the specified VPC attachment.

    See

    AWSEC2ModifyTransitGatewayVpcAttachmentRequest

    See

    AWSEC2ModifyTransitGatewayVpcAttachmentResult

    Declaration

    Objective-C

    - (void)modifyTransitGatewayVpcAttachment:
                (nonnull AWSEC2ModifyTransitGatewayVpcAttachmentRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2ModifyTransitGatewayVpcAttachmentResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func modifyTransitGatewayVpcAttachment(_ request: AWSEC2ModifyTransitGatewayVpcAttachmentRequest) async throws -> AWSEC2ModifyTransitGatewayVpcAttachmentResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyTransitGatewayVpcAttachment service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the configuration of the specified Amazon Web Services Verified Access endpoint.

    See

    AWSEC2ModifyVerifiedAccessEndpointRequest

    See

    AWSEC2ModifyVerifiedAccessEndpointResult

    Declaration

    Objective-C

    - (id)modifyVerifiedAccessEndpoint:
        (nonnull AWSEC2ModifyVerifiedAccessEndpointRequest *)request;

    Swift

    func modifyVerifiedAccessEndpoint(_ request: AWSEC2ModifyVerifiedAccessEndpointRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessEndpoint service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVerifiedAccessEndpointResult.

  • Modifies the configuration of the specified Amazon Web Services Verified Access endpoint.

    See

    AWSEC2ModifyVerifiedAccessEndpointRequest

    See

    AWSEC2ModifyVerifiedAccessEndpointResult

    Declaration

    Objective-C

    - (void)modifyVerifiedAccessEndpoint:
                (nonnull AWSEC2ModifyVerifiedAccessEndpointRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2ModifyVerifiedAccessEndpointResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func modifyVerifiedAccessEndpoint(_ request: AWSEC2ModifyVerifiedAccessEndpointRequest) async throws -> AWSEC2ModifyVerifiedAccessEndpointResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessEndpoint service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified Amazon Web Services Verified Access endpoint policy.

    See

    AWSEC2ModifyVerifiedAccessEndpointPolicyRequest

    See

    AWSEC2ModifyVerifiedAccessEndpointPolicyResult

    Declaration

    Objective-C

    - (id)modifyVerifiedAccessEndpointPolicy:
        (nonnull AWSEC2ModifyVerifiedAccessEndpointPolicyRequest *)request;

    Swift

    func modifyVerifiedAccessEndpointPolicy(_ request: AWSEC2ModifyVerifiedAccessEndpointPolicyRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessEndpointPolicy service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVerifiedAccessEndpointPolicyResult.

  • Modifies the specified Amazon Web Services Verified Access endpoint policy.

    See

    AWSEC2ModifyVerifiedAccessEndpointPolicyRequest

    See

    AWSEC2ModifyVerifiedAccessEndpointPolicyResult

    Declaration

    Objective-C

    - (void)modifyVerifiedAccessEndpointPolicy:
                (nonnull AWSEC2ModifyVerifiedAccessEndpointPolicyRequest *)request
                             completionHandler:
                                 (void (^_Nullable)(
                                     AWSEC2ModifyVerifiedAccessEndpointPolicyResult
                                         *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func modifyVerifiedAccessEndpointPolicy(_ request: AWSEC2ModifyVerifiedAccessEndpointPolicyRequest) async throws -> AWSEC2ModifyVerifiedAccessEndpointPolicyResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessEndpointPolicy service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified Amazon Web Services Verified Access group configuration.

    See

    AWSEC2ModifyVerifiedAccessGroupRequest

    See

    AWSEC2ModifyVerifiedAccessGroupResult

    Declaration

    Objective-C

    - (id)modifyVerifiedAccessGroup:
        (nonnull AWSEC2ModifyVerifiedAccessGroupRequest *)request;

    Swift

    func modifyVerifiedAccessGroup(_ request: AWSEC2ModifyVerifiedAccessGroupRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessGroup service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVerifiedAccessGroupResult.

  • Modifies the specified Amazon Web Services Verified Access group configuration.

    See

    AWSEC2ModifyVerifiedAccessGroupRequest

    See

    AWSEC2ModifyVerifiedAccessGroupResult

    Declaration

    Objective-C

    - (void)modifyVerifiedAccessGroup:
                (nonnull AWSEC2ModifyVerifiedAccessGroupRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2ModifyVerifiedAccessGroupResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func modifyVerifiedAccessGroup(_ request: AWSEC2ModifyVerifiedAccessGroupRequest) async throws -> AWSEC2ModifyVerifiedAccessGroupResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessGroup service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified Amazon Web Services Verified Access group policy.

    See

    AWSEC2ModifyVerifiedAccessGroupPolicyRequest

    See

    AWSEC2ModifyVerifiedAccessGroupPolicyResult

    Declaration

    Objective-C

    - (id)modifyVerifiedAccessGroupPolicy:
        (nonnull AWSEC2ModifyVerifiedAccessGroupPolicyRequest *)request;

    Swift

    func modifyVerifiedAccessGroupPolicy(_ request: AWSEC2ModifyVerifiedAccessGroupPolicyRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessGroupPolicy service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVerifiedAccessGroupPolicyResult.

  • Modifies the specified Amazon Web Services Verified Access group policy.

    See

    AWSEC2ModifyVerifiedAccessGroupPolicyRequest

    See

    AWSEC2ModifyVerifiedAccessGroupPolicyResult

    Declaration

    Objective-C

    - (void)modifyVerifiedAccessGroupPolicy:
                (nonnull AWSEC2ModifyVerifiedAccessGroupPolicyRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2ModifyVerifiedAccessGroupPolicyResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func modifyVerifiedAccessGroupPolicy(_ request: AWSEC2ModifyVerifiedAccessGroupPolicyRequest) async throws -> AWSEC2ModifyVerifiedAccessGroupPolicyResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessGroupPolicy service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the configuration of the specified Amazon Web Services Verified Access instance.

    See

    AWSEC2ModifyVerifiedAccessInstanceRequest

    See

    AWSEC2ModifyVerifiedAccessInstanceResult

    Declaration

    Objective-C

    - (id)modifyVerifiedAccessInstance:
        (nonnull AWSEC2ModifyVerifiedAccessInstanceRequest *)request;

    Swift

    func modifyVerifiedAccessInstance(_ request: AWSEC2ModifyVerifiedAccessInstanceRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessInstance service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVerifiedAccessInstanceResult.

  • Modifies the configuration of the specified Amazon Web Services Verified Access instance.

    See

    AWSEC2ModifyVerifiedAccessInstanceRequest

    See

    AWSEC2ModifyVerifiedAccessInstanceResult

    Declaration

    Objective-C

    - (void)modifyVerifiedAccessInstance:
                (nonnull AWSEC2ModifyVerifiedAccessInstanceRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2ModifyVerifiedAccessInstanceResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func modifyVerifiedAccessInstance(_ request: AWSEC2ModifyVerifiedAccessInstanceRequest) async throws -> AWSEC2ModifyVerifiedAccessInstanceResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessInstance service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the logging configuration for the specified Amazon Web Services Verified Access instance.

    See

    AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationRequest

    See

    AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationResult

    Declaration

    Objective-C

    - (id)modifyVerifiedAccessInstanceLoggingConfiguration:
        (nonnull AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationRequest *)
            request;

    Swift

    func modifyVerifiedAccessInstanceLoggingConfiguration(_ request: AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessInstanceLoggingConfiguration service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationResult.

  • Modifies the logging configuration for the specified Amazon Web Services Verified Access instance.

    See

    AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationRequest

    See

    AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationResult

    Declaration

    Objective-C

    - (void)
        modifyVerifiedAccessInstanceLoggingConfiguration:
            (nonnull AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationRequest
                 *)request
                                       completionHandler:
                                           (void (^_Nullable)(
                                               AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationResult
                                                   *_Nullable,
                                               NSError *_Nullable))
                                               completionHandler;

    Swift

    func modifyVerifiedAccessInstanceLoggingConfiguration(_ request: AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationRequest) async throws -> AWSEC2ModifyVerifiedAccessInstanceLoggingConfigurationResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessInstanceLoggingConfiguration service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the configuration of the specified Amazon Web Services Verified Access trust provider.

    See

    AWSEC2ModifyVerifiedAccessTrustProviderRequest

    See

    AWSEC2ModifyVerifiedAccessTrustProviderResult

    Declaration

    Objective-C

    - (id)modifyVerifiedAccessTrustProvider:
        (nonnull AWSEC2ModifyVerifiedAccessTrustProviderRequest *)request;

    Swift

    func modifyVerifiedAccessTrustProvider(_ request: AWSEC2ModifyVerifiedAccessTrustProviderRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessTrustProvider service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVerifiedAccessTrustProviderResult.

  • Modifies the configuration of the specified Amazon Web Services Verified Access trust provider.

    See

    AWSEC2ModifyVerifiedAccessTrustProviderRequest

    See

    AWSEC2ModifyVerifiedAccessTrustProviderResult

    Declaration

    Objective-C

    - (void)modifyVerifiedAccessTrustProvider:
                (nonnull AWSEC2ModifyVerifiedAccessTrustProviderRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2ModifyVerifiedAccessTrustProviderResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func modifyVerifiedAccessTrustProvider(_ request: AWSEC2ModifyVerifiedAccessTrustProviderRequest) async throws -> AWSEC2ModifyVerifiedAccessTrustProviderResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVerifiedAccessTrustProvider service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you might be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying EBS volumes, see Amazon EBS Elastic Volumes in the Amazon EBS User Guide.

    When you complete a resize operation on your volume, you need to extend the volume’s file-system size to take advantage of the new storage capacity. For more information, see Extend the file system.

    For more information, see Monitor the progress of volume modifications in the Amazon EBS User Guide.

    With previous-generation instance types, resizing an EBS volume might require detaching and reattaching the volume or stopping and restarting the instance.

    After modifying a volume, you must wait at least six hours and ensure that the volume is in the in-use or available state before you can modify the same volume. This is sometimes referred to as a cooldown period.

    See

    AWSEC2ModifyVolumeRequest

    See

    AWSEC2ModifyVolumeResult

    Declaration

    Objective-C

    - (id)modifyVolume:(nonnull AWSEC2ModifyVolumeRequest *)request;

    Swift

    func modifyVolume(_ request: AWSEC2ModifyVolumeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVolume service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVolumeResult.

  • You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you might be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying EBS volumes, see Amazon EBS Elastic Volumes in the Amazon EBS User Guide.

    When you complete a resize operation on your volume, you need to extend the volume’s file-system size to take advantage of the new storage capacity. For more information, see Extend the file system.

    For more information, see Monitor the progress of volume modifications in the Amazon EBS User Guide.

    With previous-generation instance types, resizing an EBS volume might require detaching and reattaching the volume or stopping and restarting the instance.

    After modifying a volume, you must wait at least six hours and ensure that the volume is in the in-use or available state before you can modify the same volume. This is sometimes referred to as a cooldown period.

    See

    AWSEC2ModifyVolumeRequest

    See

    AWSEC2ModifyVolumeResult

    Declaration

    Objective-C

    - (void)modifyVolume:(nonnull AWSEC2ModifyVolumeRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2ModifyVolumeResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func modifyVolume(_ request: AWSEC2ModifyVolumeRequest) async throws -> AWSEC2ModifyVolumeResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVolume service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies a volume attribute.

    By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.

    You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.

    See

    AWSEC2ModifyVolumeAttributeRequest

    Declaration

    Objective-C

    - (id)modifyVolumeAttribute:
        (nonnull AWSEC2ModifyVolumeAttributeRequest *)request;

    Swift

    func modifyVolumeAttribute(_ request: AWSEC2ModifyVolumeAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVolumeAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Modifies a volume attribute.

    By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.

    You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.

    See

    AWSEC2ModifyVolumeAttributeRequest

    Declaration

    Objective-C

    - (void)modifyVolumeAttribute:
                (nonnull AWSEC2ModifyVolumeAttributeRequest *)request
                completionHandler:
                    (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func modifyVolumeAttribute(_ request: AWSEC2ModifyVolumeAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVolumeAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the specified attribute of the specified VPC.

    See

    AWSEC2ModifyVpcAttributeRequest

    Declaration

    Objective-C

    - (id)modifyVpcAttribute:(nonnull AWSEC2ModifyVpcAttributeRequest *)request;

    Swift

    func modifyVpcAttribute(_ request: AWSEC2ModifyVpcAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Modifies the specified attribute of the specified VPC.

    See

    AWSEC2ModifyVpcAttributeRequest

    Declaration

    Objective-C

    - (void)modifyVpcAttribute:(nonnull AWSEC2ModifyVpcAttributeRequest *)request
             completionHandler:
                 (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func modifyVpcAttribute(_ request: AWSEC2ModifyVpcAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface, gateway, or Gateway Load Balancer). For more information, see the Amazon Web Services PrivateLink Guide.

    See

    AWSEC2ModifyVpcEndpointRequest

    See

    AWSEC2ModifyVpcEndpointResult

    Declaration

    Objective-C

    - (id)modifyVpcEndpoint:(nonnull AWSEC2ModifyVpcEndpointRequest *)request;

    Swift

    func modifyVpcEndpoint(_ request: AWSEC2ModifyVpcEndpointRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcEndpoint service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpcEndpointResult.

  • Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface, gateway, or Gateway Load Balancer). For more information, see the Amazon Web Services PrivateLink Guide.

    See

    AWSEC2ModifyVpcEndpointRequest

    See

    AWSEC2ModifyVpcEndpointResult

    Declaration

    Objective-C

    - (void)modifyVpcEndpoint:(nonnull AWSEC2ModifyVpcEndpointRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2ModifyVpcEndpointResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func modifyVpcEndpoint(_ request: AWSEC2ModifyVpcEndpointRequest) async throws -> AWSEC2ModifyVpcEndpointResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcEndpoint service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified.

    See

    AWSEC2ModifyVpcEndpointConnectionNotificationRequest

    See

    AWSEC2ModifyVpcEndpointConnectionNotificationResult

    Declaration

    Objective-C

    - (id)modifyVpcEndpointConnectionNotification:
        (nonnull AWSEC2ModifyVpcEndpointConnectionNotificationRequest *)request;

    Swift

    func modifyVpcEndpointConnectionNotification(_ request: AWSEC2ModifyVpcEndpointConnectionNotificationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcEndpointConnectionNotification service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpcEndpointConnectionNotificationResult.

  • Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified.

    See

    AWSEC2ModifyVpcEndpointConnectionNotificationRequest

    See

    AWSEC2ModifyVpcEndpointConnectionNotificationResult

    Declaration

    Objective-C

    - (void)
        modifyVpcEndpointConnectionNotification:
            (nonnull AWSEC2ModifyVpcEndpointConnectionNotificationRequest *)request
                              completionHandler:
                                  (void (^_Nullable)(
                                      AWSEC2ModifyVpcEndpointConnectionNotificationResult
                                          *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func modifyVpcEndpointConnectionNotification(_ request: AWSEC2ModifyVpcEndpointConnectionNotificationRequest) async throws -> AWSEC2ModifyVpcEndpointConnectionNotificationResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcEndpointConnectionNotification service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers or Gateway Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.

    If you set or modify the private DNS name, you must prove that you own the private DNS domain name.

    See

    AWSEC2ModifyVpcEndpointServiceConfigurationRequest

    See

    AWSEC2ModifyVpcEndpointServiceConfigurationResult

    Declaration

    Objective-C

    - (id)modifyVpcEndpointServiceConfiguration:
        (nonnull AWSEC2ModifyVpcEndpointServiceConfigurationRequest *)request;

    Swift

    func modifyVpcEndpointServiceConfiguration(_ request: AWSEC2ModifyVpcEndpointServiceConfigurationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcEndpointServiceConfiguration service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpcEndpointServiceConfigurationResult.

  • Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers or Gateway Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.

    If you set or modify the private DNS name, you must prove that you own the private DNS domain name.

    See

    AWSEC2ModifyVpcEndpointServiceConfigurationRequest

    See

    AWSEC2ModifyVpcEndpointServiceConfigurationResult

    Declaration

    Objective-C

    - (void)
        modifyVpcEndpointServiceConfiguration:
            (nonnull AWSEC2ModifyVpcEndpointServiceConfigurationRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2ModifyVpcEndpointServiceConfigurationResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func modifyVpcEndpointServiceConfiguration(_ request: AWSEC2ModifyVpcEndpointServiceConfigurationRequest) async throws -> AWSEC2ModifyVpcEndpointServiceConfigurationResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcEndpointServiceConfiguration service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the payer responsibility for your VPC endpoint service.

    See

    AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest

    See

    AWSEC2ModifyVpcEndpointServicePayerResponsibilityResult

    Declaration

    Objective-C

    - (id)modifyVpcEndpointServicePayerResponsibility:
        (nonnull AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest *)request;

    Swift

    func modifyVpcEndpointServicePayerResponsibility(_ request: AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcEndpointServicePayerResponsibility service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpcEndpointServicePayerResponsibilityResult.

  • Modifies the payer responsibility for your VPC endpoint service.

    See

    AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest

    See

    AWSEC2ModifyVpcEndpointServicePayerResponsibilityResult

    Declaration

    Objective-C

    - (void)
        modifyVpcEndpointServicePayerResponsibility:
            (nonnull AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest *)
                request
                                  completionHandler:
                                      (void (^_Nullable)(
                                          AWSEC2ModifyVpcEndpointServicePayerResponsibilityResult
                                              *_Nullable,
                                          NSError *_Nullable))completionHandler;

    Swift

    func modifyVpcEndpointServicePayerResponsibility(_ request: AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest) async throws -> AWSEC2ModifyVpcEndpointServicePayerResponsibilityResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcEndpointServicePayerResponsibility service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the permissions for your VPC endpoint service. You can add or remove permissions for service consumers (Amazon Web Services accounts, users, and IAM roles) to connect to your endpoint service.

    If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.

    See

    AWSEC2ModifyVpcEndpointServicePermissionsRequest

    See

    AWSEC2ModifyVpcEndpointServicePermissionsResult

    Declaration

    Objective-C

    - (id)modifyVpcEndpointServicePermissions:
        (nonnull AWSEC2ModifyVpcEndpointServicePermissionsRequest *)request;

    Swift

    func modifyVpcEndpointServicePermissions(_ request: AWSEC2ModifyVpcEndpointServicePermissionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcEndpointServicePermissions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpcEndpointServicePermissionsResult.

  • Modifies the permissions for your VPC endpoint service. You can add or remove permissions for service consumers (Amazon Web Services accounts, users, and IAM roles) to connect to your endpoint service.

    If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.

    See

    AWSEC2ModifyVpcEndpointServicePermissionsRequest

    See

    AWSEC2ModifyVpcEndpointServicePermissionsResult

    Declaration

    Objective-C

    - (void)
        modifyVpcEndpointServicePermissions:
            (nonnull AWSEC2ModifyVpcEndpointServicePermissionsRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2ModifyVpcEndpointServicePermissionsResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func modifyVpcEndpointServicePermissions(_ request: AWSEC2ModifyVpcEndpointServicePermissionsRequest) async throws -> AWSEC2ModifyVpcEndpointServicePermissionsResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcEndpointServicePermissions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the VPC peering connection options on one side of a VPC peering connection.

    If the peered VPCs are in the same Amazon Web Services account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different Amazon Web Services accounts or different Regions. For peered VPCs in different Amazon Web Services accounts, each Amazon Web Services account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

    See

    AWSEC2ModifyVpcPeeringConnectionOptionsRequest

    See

    AWSEC2ModifyVpcPeeringConnectionOptionsResult

    Declaration

    Objective-C

    - (id)modifyVpcPeeringConnectionOptions:
        (nonnull AWSEC2ModifyVpcPeeringConnectionOptionsRequest *)request;

    Swift

    func modifyVpcPeeringConnectionOptions(_ request: AWSEC2ModifyVpcPeeringConnectionOptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcPeeringConnectionOptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpcPeeringConnectionOptionsResult.

  • Modifies the VPC peering connection options on one side of a VPC peering connection.

    If the peered VPCs are in the same Amazon Web Services account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different Amazon Web Services accounts or different Regions. For peered VPCs in different Amazon Web Services accounts, each Amazon Web Services account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.

    See

    AWSEC2ModifyVpcPeeringConnectionOptionsRequest

    See

    AWSEC2ModifyVpcPeeringConnectionOptionsResult

    Declaration

    Objective-C

    - (void)modifyVpcPeeringConnectionOptions:
                (nonnull AWSEC2ModifyVpcPeeringConnectionOptionsRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2ModifyVpcPeeringConnectionOptionsResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func modifyVpcPeeringConnectionOptions(_ request: AWSEC2ModifyVpcPeeringConnectionOptionsRequest) async throws -> AWSEC2ModifyVpcPeeringConnectionOptionsResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcPeeringConnectionOptions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated.

    After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

    For more information, see Dedicated Instances in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyVpcTenancyRequest

    See

    AWSEC2ModifyVpcTenancyResult

    Declaration

    Objective-C

    - (id)modifyVpcTenancy:(nonnull AWSEC2ModifyVpcTenancyRequest *)request;

    Swift

    func modifyVpcTenancy(_ request: AWSEC2ModifyVpcTenancyRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcTenancy service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpcTenancyResult.

  • Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to default only. You cannot change the instance tenancy attribute to dedicated.

    After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.

    For more information, see Dedicated Instances in the Amazon EC2 User Guide.

    See

    AWSEC2ModifyVpcTenancyRequest

    See

    AWSEC2ModifyVpcTenancyResult

    Declaration

    Objective-C

    - (void)modifyVpcTenancy:(nonnull AWSEC2ModifyVpcTenancyRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2ModifyVpcTenancyResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func modifyVpcTenancy(_ request: AWSEC2ModifyVpcTenancyRequest) async throws -> AWSEC2ModifyVpcTenancyResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpcTenancy service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the customer gateway or the target gateway of an Amazon Web Services Site-to-Site VPN connection. To modify the target gateway, the following migration options are available:

    • An existing virtual private gateway to a new virtual private gateway

    • An existing virtual private gateway to a transit gateway

    • An existing transit gateway to a new transit gateway

    • An existing transit gateway to a virtual private gateway

    Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway to create a virtual private gateway, or CreateTransitGateway to create a transit gateway.

    This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.

    You must delete the static routes before you migrate to the new gateway.

    Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.

    After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute and DeleteRoute to make the changes described in Update VPC route tables in the Amazon Web Services Site-to-Site VPN User Guide.

    When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the Amazon Web Services Site-to-Site VPN connection. Use CreateTransitGatewayRoute to add the routes.

    If you deleted VPN static routes, you must add the static routes to the transit gateway route table.

    After you perform this operation, the VPN endpoint’s IP addresses on the Amazon Web Services side and the tunnel options remain intact. Your Amazon Web Services Site-to-Site VPN connection will be temporarily unavailable for a brief period while we provision the new endpoints.

    See

    AWSEC2ModifyVpnConnectionRequest

    See

    AWSEC2ModifyVpnConnectionResult

    Declaration

    Objective-C

    - (id)modifyVpnConnection:(nonnull AWSEC2ModifyVpnConnectionRequest *)request;

    Swift

    func modifyVpnConnection(_ request: AWSEC2ModifyVpnConnectionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpnConnection service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpnConnectionResult.

  • Modifies the customer gateway or the target gateway of an Amazon Web Services Site-to-Site VPN connection. To modify the target gateway, the following migration options are available:

    • An existing virtual private gateway to a new virtual private gateway

    • An existing virtual private gateway to a transit gateway

    • An existing transit gateway to a new transit gateway

    • An existing transit gateway to a virtual private gateway

    Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway to create a virtual private gateway, or CreateTransitGateway to create a transit gateway.

    This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.

    You must delete the static routes before you migrate to the new gateway.

    Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.

    After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute and DeleteRoute to make the changes described in Update VPC route tables in the Amazon Web Services Site-to-Site VPN User Guide.

    When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the Amazon Web Services Site-to-Site VPN connection. Use CreateTransitGatewayRoute to add the routes.

    If you deleted VPN static routes, you must add the static routes to the transit gateway route table.

    After you perform this operation, the VPN endpoint’s IP addresses on the Amazon Web Services side and the tunnel options remain intact. Your Amazon Web Services Site-to-Site VPN connection will be temporarily unavailable for a brief period while we provision the new endpoints.

    See

    AWSEC2ModifyVpnConnectionRequest

    See

    AWSEC2ModifyVpnConnectionResult

    Declaration

    Objective-C

    - (void)modifyVpnConnection:(nonnull AWSEC2ModifyVpnConnectionRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2ModifyVpnConnectionResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func modifyVpnConnection(_ request: AWSEC2ModifyVpnConnectionRequest) async throws -> AWSEC2ModifyVpnConnectionResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpnConnection service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the connection options for your Site-to-Site VPN connection.

    When you modify the VPN connection options, the VPN endpoint IP addresses on the Amazon Web Services side do not change, and the tunnel options do not change. Your VPN connection will be temporarily unavailable for a brief period while the VPN connection is updated.

    See

    AWSEC2ModifyVpnConnectionOptionsRequest

    See

    AWSEC2ModifyVpnConnectionOptionsResult

    Declaration

    Objective-C

    - (id)modifyVpnConnectionOptions:
        (nonnull AWSEC2ModifyVpnConnectionOptionsRequest *)request;

    Swift

    func modifyVpnConnectionOptions(_ request: AWSEC2ModifyVpnConnectionOptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpnConnectionOptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpnConnectionOptionsResult.

  • Modifies the connection options for your Site-to-Site VPN connection.

    When you modify the VPN connection options, the VPN endpoint IP addresses on the Amazon Web Services side do not change, and the tunnel options do not change. Your VPN connection will be temporarily unavailable for a brief period while the VPN connection is updated.

    See

    AWSEC2ModifyVpnConnectionOptionsRequest

    See

    AWSEC2ModifyVpnConnectionOptionsResult

    Declaration

    Objective-C

    - (void)modifyVpnConnectionOptions:
                (nonnull AWSEC2ModifyVpnConnectionOptionsRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2ModifyVpnConnectionOptionsResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func modifyVpnConnectionOptions(_ request: AWSEC2ModifyVpnConnectionOptionsRequest) async throws -> AWSEC2ModifyVpnConnectionOptionsResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpnConnectionOptions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the VPN tunnel endpoint certificate.

    See

    AWSEC2ModifyVpnTunnelCertificateRequest

    See

    AWSEC2ModifyVpnTunnelCertificateResult

    Declaration

    Objective-C

    - (id)modifyVpnTunnelCertificate:
        (nonnull AWSEC2ModifyVpnTunnelCertificateRequest *)request;

    Swift

    func modifyVpnTunnelCertificate(_ request: AWSEC2ModifyVpnTunnelCertificateRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpnTunnelCertificate service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpnTunnelCertificateResult.

  • Modifies the VPN tunnel endpoint certificate.

    See

    AWSEC2ModifyVpnTunnelCertificateRequest

    See

    AWSEC2ModifyVpnTunnelCertificateResult

    Declaration

    Objective-C

    - (void)modifyVpnTunnelCertificate:
                (nonnull AWSEC2ModifyVpnTunnelCertificateRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2ModifyVpnTunnelCertificateResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func modifyVpnTunnelCertificate(_ request: AWSEC2ModifyVpnTunnelCertificateRequest) async throws -> AWSEC2ModifyVpnTunnelCertificateResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpnTunnelCertificate service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site VPN connection. You can modify multiple options for a tunnel in a single request, but you can only modify one tunnel at a time. For more information, see Site-to-Site VPN tunnel options for your Site-to-Site VPN connection in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2ModifyVpnTunnelOptionsRequest

    See

    AWSEC2ModifyVpnTunnelOptionsResult

    Declaration

    Objective-C

    - (id)modifyVpnTunnelOptions:
        (nonnull AWSEC2ModifyVpnTunnelOptionsRequest *)request;

    Swift

    func modifyVpnTunnelOptions(_ request: AWSEC2ModifyVpnTunnelOptionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpnTunnelOptions service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ModifyVpnTunnelOptionsResult.

  • Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site VPN connection. You can modify multiple options for a tunnel in a single request, but you can only modify one tunnel at a time. For more information, see Site-to-Site VPN tunnel options for your Site-to-Site VPN connection in the Amazon Web Services Site-to-Site VPN User Guide.

    See

    AWSEC2ModifyVpnTunnelOptionsRequest

    See

    AWSEC2ModifyVpnTunnelOptionsResult

    Declaration

    Objective-C

    - (void)
        modifyVpnTunnelOptions:
            (nonnull AWSEC2ModifyVpnTunnelOptionsRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2ModifyVpnTunnelOptionsResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func modifyVpnTunnelOptions(_ request: AWSEC2ModifyVpnTunnelOptionsRequest) async throws -> AWSEC2ModifyVpnTunnelOptionsResult

    Parameters

    request

    A container for the necessary parameters to execute the ModifyVpnTunnelOptions service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitor your instances using CloudWatch in the Amazon EC2 User Guide.

    To disable detailed monitoring, see UnmonitorInstances.

    See

    AWSEC2MonitorInstancesRequest

    See

    AWSEC2MonitorInstancesResult

    Declaration

    Objective-C

    - (id)monitorInstances:(nonnull AWSEC2MonitorInstancesRequest *)request;

    Swift

    func monitorInstances(_ request: AWSEC2MonitorInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the MonitorInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2MonitorInstancesResult.

  • Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitor your instances using CloudWatch in the Amazon EC2 User Guide.

    To disable detailed monitoring, see UnmonitorInstances.

    See

    AWSEC2MonitorInstancesRequest

    See

    AWSEC2MonitorInstancesResult

    Declaration

    Objective-C

    - (void)monitorInstances:(nonnull AWSEC2MonitorInstancesRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2MonitorInstancesResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func monitorInstances(_ request: AWSEC2MonitorInstancesRequest) async throws -> AWSEC2MonitorInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the MonitorInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.

    See

    AWSEC2MoveAddressToVpcRequest

    See

    AWSEC2MoveAddressToVpcResult

    Declaration

    Objective-C

    - (id)moveAddressToVpc:(nonnull AWSEC2MoveAddressToVpcRequest *)request;

    Swift

    func moveAddress(toVpc request: AWSEC2MoveAddressToVpcRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the MoveAddressToVpc service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2MoveAddressToVpcResult.

  • This action is deprecated.

    Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.

    See

    AWSEC2MoveAddressToVpcRequest

    See

    AWSEC2MoveAddressToVpcResult

    Declaration

    Objective-C

    - (void)moveAddressToVpc:(nonnull AWSEC2MoveAddressToVpcRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2MoveAddressToVpcResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func moveAddress(toVpc request: AWSEC2MoveAddressToVpcRequest) async throws -> AWSEC2MoveAddressToVpcResult

    Parameters

    request

    A container for the necessary parameters to execute the MoveAddressToVpc service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool.

    If you already have a BYOIPv4 CIDR with Amazon Web Services, you can move the CIDR to IPAM from a public IPv4 pool. You cannot move an IPv6 CIDR to IPAM. If you are bringing a new IP address to Amazon Web Services for the first time, complete the steps in Tutorial: BYOIP address CIDRs to IPAM.

    See

    AWSEC2MoveByoipCidrToIpamRequest

    See

    AWSEC2MoveByoipCidrToIpamResult

    Declaration

    Objective-C

    - (id)moveByoipCidrToIpam:(nonnull AWSEC2MoveByoipCidrToIpamRequest *)request;

    Swift

    func moveByoipCidr(toIpam request: AWSEC2MoveByoipCidrToIpamRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the MoveByoipCidrToIpam service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2MoveByoipCidrToIpamResult.

  • Move a BYOIPv4 CIDR to IPAM from a public IPv4 pool.

    If you already have a BYOIPv4 CIDR with Amazon Web Services, you can move the CIDR to IPAM from a public IPv4 pool. You cannot move an IPv6 CIDR to IPAM. If you are bringing a new IP address to Amazon Web Services for the first time, complete the steps in Tutorial: BYOIP address CIDRs to IPAM.

    See

    AWSEC2MoveByoipCidrToIpamRequest

    See

    AWSEC2MoveByoipCidrToIpamResult

    Declaration

    Objective-C

    - (void)moveByoipCidrToIpam:(nonnull AWSEC2MoveByoipCidrToIpamRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2MoveByoipCidrToIpamResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func moveByoipCidr(toIpam request: AWSEC2MoveByoipCidrToIpamRequest) async throws -> AWSEC2MoveByoipCidrToIpamResult

    Parameters

    request

    A container for the necessary parameters to execute the MoveByoipCidrToIpam service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • 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 EC2 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

    AWSEC2ProvisionByoipCidrRequest

    See

    AWSEC2ProvisionByoipCidrResult

    Declaration

    Objective-C

    - (id)provisionByoipCidr:(nonnull AWSEC2ProvisionByoipCidrRequest *)request;

    Swift

    func provisionByoipCidr(_ request: AWSEC2ProvisionByoipCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ProvisionByoipCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ProvisionByoipCidrResult.

  • 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 EC2 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

    AWSEC2ProvisionByoipCidrRequest

    See

    AWSEC2ProvisionByoipCidrResult

    Declaration

    Objective-C

    - (void)provisionByoipCidr:(nonnull AWSEC2ProvisionByoipCidrRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2ProvisionByoipCidrResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func provisionByoipCidr(_ request: AWSEC2ProvisionByoipCidrRequest) async throws -> AWSEC2ProvisionByoipCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the ProvisionByoipCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Provisions your Autonomous System Number (ASN) for use in your Amazon Web Services account. This action requires authorization context for Amazon to bring the ASN to an Amazon Web Services account. For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

    See

    AWSEC2ProvisionIpamByoasnRequest

    See

    AWSEC2ProvisionIpamByoasnResult

    Declaration

    Objective-C

    - (id)provisionIpamByoasn:(nonnull AWSEC2ProvisionIpamByoasnRequest *)request;

    Swift

    func provisionIpamByoasn(_ request: AWSEC2ProvisionIpamByoasnRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ProvisionIpamByoasn service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ProvisionIpamByoasnResult.

  • Provisions your Autonomous System Number (ASN) for use in your Amazon Web Services account. This action requires authorization context for Amazon to bring the ASN to an Amazon Web Services account. For more information, see Tutorial: Bring your ASN to IPAM in the Amazon VPC IPAM guide.

    See

    AWSEC2ProvisionIpamByoasnRequest

    See

    AWSEC2ProvisionIpamByoasnResult

    Declaration

    Objective-C

    - (void)provisionIpamByoasn:(nonnull AWSEC2ProvisionIpamByoasnRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2ProvisionIpamByoasnResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func provisionIpamByoasn(_ request: AWSEC2ProvisionIpamByoasnRequest) async throws -> AWSEC2ProvisionIpamByoasnResult

    Parameters

    request

    A container for the necessary parameters to execute the ProvisionIpamByoasn service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Provision a CIDR to an IPAM pool. You can use this action to provision new CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool within it.

    For more information, see Provision CIDRs to pools in the Amazon VPC IPAM User Guide.

    See

    AWSEC2ProvisionIpamPoolCidrRequest

    See

    AWSEC2ProvisionIpamPoolCidrResult

    Declaration

    Objective-C

    - (id)provisionIpamPoolCidr:
        (nonnull AWSEC2ProvisionIpamPoolCidrRequest *)request;

    Swift

    func provisionIpamPoolCidr(_ request: AWSEC2ProvisionIpamPoolCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ProvisionIpamPoolCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ProvisionIpamPoolCidrResult.

  • Provision a CIDR to an IPAM pool. You can use this action to provision new CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool within it.

    For more information, see Provision CIDRs to pools in the Amazon VPC IPAM User Guide.

    See

    AWSEC2ProvisionIpamPoolCidrRequest

    See

    AWSEC2ProvisionIpamPoolCidrResult

    Declaration

    Objective-C

    - (void)provisionIpamPoolCidr:
                (nonnull AWSEC2ProvisionIpamPoolCidrRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2ProvisionIpamPoolCidrResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func provisionIpamPoolCidr(_ request: AWSEC2ProvisionIpamPoolCidrRequest) async throws -> AWSEC2ProvisionIpamPoolCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the ProvisionIpamPoolCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Provision a CIDR to a public IPv4 pool.

    For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.

    See

    AWSEC2ProvisionPublicIpv4PoolCidrRequest

    See

    AWSEC2ProvisionPublicIpv4PoolCidrResult

    Declaration

    Objective-C

    - (id)provisionPublicIpv4PoolCidr:
        (nonnull AWSEC2ProvisionPublicIpv4PoolCidrRequest *)request;

    Swift

    func provisionPublicIpv4PoolCidr(_ request: AWSEC2ProvisionPublicIpv4PoolCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ProvisionPublicIpv4PoolCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ProvisionPublicIpv4PoolCidrResult.

  • Provision a CIDR to a public IPv4 pool.

    For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.

    See

    AWSEC2ProvisionPublicIpv4PoolCidrRequest

    See

    AWSEC2ProvisionPublicIpv4PoolCidrResult

    Declaration

    Objective-C

    - (void)provisionPublicIpv4PoolCidr:
                (nonnull AWSEC2ProvisionPublicIpv4PoolCidrRequest *)request
                      completionHandler:
                          (void (^_Nullable)(
                              AWSEC2ProvisionPublicIpv4PoolCidrResult *_Nullable,
                              NSError *_Nullable))completionHandler;

    Swift

    func provisionPublicIpv4PoolCidr(_ request: AWSEC2ProvisionPublicIpv4PoolCidrRequest) async throws -> AWSEC2ProvisionPublicIpv4PoolCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the ProvisionPublicIpv4PoolCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Purchase the Capacity Block for use with your account. With Capacity Blocks you ensure GPU capacity is available for machine learning (ML) workloads. You must specify the ID of the Capacity Block offering you are purchasing.

    See

    AWSEC2PurchaseCapacityBlockRequest

    See

    AWSEC2PurchaseCapacityBlockResult

    Declaration

    Objective-C

    - (id)purchaseCapacityBlock:
        (nonnull AWSEC2PurchaseCapacityBlockRequest *)request;

    Swift

    func purchaseCapacityBlock(_ request: AWSEC2PurchaseCapacityBlockRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the PurchaseCapacityBlock service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2PurchaseCapacityBlockResult.

  • Purchase the Capacity Block for use with your account. With Capacity Blocks you ensure GPU capacity is available for machine learning (ML) workloads. You must specify the ID of the Capacity Block offering you are purchasing.

    See

    AWSEC2PurchaseCapacityBlockRequest

    See

    AWSEC2PurchaseCapacityBlockResult

    Declaration

    Objective-C

    - (void)purchaseCapacityBlock:
                (nonnull AWSEC2PurchaseCapacityBlockRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2PurchaseCapacityBlockResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func purchaseCapacityBlock(_ request: AWSEC2PurchaseCapacityBlockRequest) async throws -> AWSEC2PurchaseCapacityBlockResult

    Parameters

    request

    A container for the necessary parameters to execute the PurchaseCapacityBlock service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account.

    See

    AWSEC2PurchaseHostReservationRequest

    See

    AWSEC2PurchaseHostReservationResult

    Declaration

    Objective-C

    - (id)purchaseHostReservation:
        (nonnull AWSEC2PurchaseHostReservationRequest *)request;

    Swift

    func purchaseHostReservation(_ request: AWSEC2PurchaseHostReservationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the PurchaseHostReservation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2PurchaseHostReservationResult.

  • Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account.

    See

    AWSEC2PurchaseHostReservationRequest

    See

    AWSEC2PurchaseHostReservationResult

    Declaration

    Objective-C

    - (void)
        purchaseHostReservation:
            (nonnull AWSEC2PurchaseHostReservationRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2PurchaseHostReservationResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func purchaseHostReservation(_ request: AWSEC2PurchaseHostReservationRequest) async throws -> AWSEC2PurchaseHostReservationResult

    Parameters

    request

    A container for the necessary parameters to execute the PurchaseHostReservation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.

    Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you’ve purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.

    To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.

    For more information, see Reserved Instances and Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

    See

    AWSEC2PurchaseReservedInstancesOfferingRequest

    See

    AWSEC2PurchaseReservedInstancesOfferingResult

    Declaration

    Objective-C

    - (id)purchaseReservedInstancesOffering:
        (nonnull AWSEC2PurchaseReservedInstancesOfferingRequest *)request;

    Swift

    func purchaseReservedInstancesOffering(_ request: AWSEC2PurchaseReservedInstancesOfferingRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the PurchaseReservedInstancesOffering service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2PurchaseReservedInstancesOfferingResult.

  • Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.

    Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you’ve purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.

    To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.

    For more information, see Reserved Instances and Sell in the Reserved Instance Marketplace in the Amazon EC2 User Guide.

    See

    AWSEC2PurchaseReservedInstancesOfferingRequest

    See

    AWSEC2PurchaseReservedInstancesOfferingResult

    Declaration

    Objective-C

    - (void)purchaseReservedInstancesOffering:
                (nonnull AWSEC2PurchaseReservedInstancesOfferingRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2PurchaseReservedInstancesOfferingResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func purchaseReservedInstancesOffering(_ request: AWSEC2PurchaseReservedInstancesOfferingRequest) async throws -> AWSEC2PurchaseReservedInstancesOfferingResult

    Parameters

    request

    A container for the necessary parameters to execute the PurchaseReservedInstancesOffering service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • You can no longer purchase Scheduled Instances.

    Purchases the Scheduled Instances with the specified schedule.

    Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

    After you purchase a Scheduled Instance, you can’t cancel, modify, or resell your purchase.

    See

    AWSEC2PurchaseScheduledInstancesRequest

    See

    AWSEC2PurchaseScheduledInstancesResult

    Declaration

    Objective-C

    - (id)purchaseScheduledInstances:
        (nonnull AWSEC2PurchaseScheduledInstancesRequest *)request;

    Swift

    func purchaseScheduledInstances(_ request: AWSEC2PurchaseScheduledInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the PurchaseScheduledInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2PurchaseScheduledInstancesResult.

  • You can no longer purchase Scheduled Instances.

    Purchases the Scheduled Instances with the specified schedule.

    Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.

    After you purchase a Scheduled Instance, you can’t cancel, modify, or resell your purchase.

    See

    AWSEC2PurchaseScheduledInstancesRequest

    See

    AWSEC2PurchaseScheduledInstancesResult

    Declaration

    Objective-C

    - (void)purchaseScheduledInstances:
                (nonnull AWSEC2PurchaseScheduledInstancesRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2PurchaseScheduledInstancesResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func purchaseScheduledInstances(_ request: AWSEC2PurchaseScheduledInstancesRequest) async throws -> AWSEC2PurchaseScheduledInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the PurchaseScheduledInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

    If an instance does not cleanly shut down within a few minutes, Amazon EC2 performs a hard reboot.

    For more information about troubleshooting, see Troubleshoot an unreachable instance in the Amazon EC2 User Guide.

    See

    AWSEC2RebootInstancesRequest

    Declaration

    Objective-C

    - (id)rebootInstances:(nonnull AWSEC2RebootInstancesRequest *)request;

    Swift

    func rebootInstances(_ request: AWSEC2RebootInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RebootInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.

    If an instance does not cleanly shut down within a few minutes, Amazon EC2 performs a hard reboot.

    For more information about troubleshooting, see Troubleshoot an unreachable instance in the Amazon EC2 User Guide.

    See

    AWSEC2RebootInstancesRequest

    Declaration

    Objective-C

    - (void)rebootInstances:(nonnull AWSEC2RebootInstancesRequest *)request
          completionHandler:
              (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func rebootInstances(_ request: AWSEC2RebootInstancesRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the RebootInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Registers an AMI. When you’re creating an instance-store backed AMI, registering the AMI is the final step in the creation process. For more information about creating AMIs, see Create your own AMI in the Amazon Elastic Compute Cloud User Guide.

    For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don’t have to register the AMI yourself. We recommend that you always use CreateImage unless you have a specific reason to use RegisterImage.

    If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

    Register a snapshot of a root device volume

    You can use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using a block device mapping. You can’t set the encryption state of the volume using the block device mapping. If the snapshot is encrypted, or encryption by default is enabled, the root volume of an instance launched from the AMI is encrypted.

    For more information, see Create a Linux AMI from a snapshot and Use encryption with Amazon EBS-backed AMIs in the Amazon Elastic Compute Cloud User Guide.

    Amazon Web Services Marketplace product codes

    If any snapshots have Amazon Web Services Marketplace product codes, they are copied to the new AMI.

    Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the Amazon EC2 billing product code associated with an AMI to verify the subscription status for package updates. To create a new AMI for operating systems that require a billing product code, instead of registering the AMI, do the following to preserve the billing product code association:

    1. Launch an instance from an existing AMI with that billing product code.

    2. Customize the instance.

    3. Create an AMI from the instance using CreateImage.

    If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an AMI with a billing product code, make sure that the Reserved Instance has the matching billing product code. If you purchase a Reserved Instance without the matching billing product code, the Reserved Instance will not be applied to the On-Demand Instance. For information about how to obtain the platform details and billing information of an AMI, see Understand AMI billing information in the Amazon EC2 User Guide.

    See

    AWSEC2RegisterImageRequest

    See

    AWSEC2RegisterImageResult

    Declaration

    Objective-C

    - (id)registerImage:(nonnull AWSEC2RegisterImageRequest *)request;

    Swift

    func registerImage(_ request: AWSEC2RegisterImageRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RegisterImage service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RegisterImageResult.

  • Registers an AMI. When you’re creating an instance-store backed AMI, registering the AMI is the final step in the creation process. For more information about creating AMIs, see Create your own AMI in the Amazon Elastic Compute Cloud User Guide.

    For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don’t have to register the AMI yourself. We recommend that you always use CreateImage unless you have a specific reason to use RegisterImage.

    If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.

    Register a snapshot of a root device volume

    You can use RegisterImage to create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using a block device mapping. You can’t set the encryption state of the volume using the block device mapping. If the snapshot is encrypted, or encryption by default is enabled, the root volume of an instance launched from the AMI is encrypted.

    For more information, see Create a Linux AMI from a snapshot and Use encryption with Amazon EBS-backed AMIs in the Amazon Elastic Compute Cloud User Guide.

    Amazon Web Services Marketplace product codes

    If any snapshots have Amazon Web Services Marketplace product codes, they are copied to the new AMI.

    Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the Amazon EC2 billing product code associated with an AMI to verify the subscription status for package updates. To create a new AMI for operating systems that require a billing product code, instead of registering the AMI, do the following to preserve the billing product code association:

    1. Launch an instance from an existing AMI with that billing product code.

    2. Customize the instance.

    3. Create an AMI from the instance using CreateImage.

    If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an AMI with a billing product code, make sure that the Reserved Instance has the matching billing product code. If you purchase a Reserved Instance without the matching billing product code, the Reserved Instance will not be applied to the On-Demand Instance. For information about how to obtain the platform details and billing information of an AMI, see Understand AMI billing information in the Amazon EC2 User Guide.

    See

    AWSEC2RegisterImageRequest

    See

    AWSEC2RegisterImageResult

    Declaration

    Objective-C

    - (void)registerImage:(nonnull AWSEC2RegisterImageRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2RegisterImageResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func registerImage(_ request: AWSEC2RegisterImageRequest) async throws -> AWSEC2RegisterImageResult

    Parameters

    request

    A container for the necessary parameters to execute the RegisterImage service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Registers a set of tag keys to include in scheduled event notifications for your resources.

    To remove tags, use DeregisterInstanceEventNotificationAttributes.

    See

    AWSEC2RegisterInstanceEventNotificationAttributesRequest

    See

    AWSEC2RegisterInstanceEventNotificationAttributesResult

    Declaration

    Objective-C

    - (id)registerInstanceEventNotificationAttributes:
        (nonnull AWSEC2RegisterInstanceEventNotificationAttributesRequest *)request;

    Swift

    func registerInstanceEventNotificationAttributes(_ request: AWSEC2RegisterInstanceEventNotificationAttributesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RegisterInstanceEventNotificationAttributes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RegisterInstanceEventNotificationAttributesResult.

  • Registers a set of tag keys to include in scheduled event notifications for your resources.

    To remove tags, use DeregisterInstanceEventNotificationAttributes.

    See

    AWSEC2RegisterInstanceEventNotificationAttributesRequest

    See

    AWSEC2RegisterInstanceEventNotificationAttributesResult

    Declaration

    Objective-C

    - (void)
        registerInstanceEventNotificationAttributes:
            (nonnull AWSEC2RegisterInstanceEventNotificationAttributesRequest *)
                request
                                  completionHandler:
                                      (void (^_Nullable)(
                                          AWSEC2RegisterInstanceEventNotificationAttributesResult
                                              *_Nullable,
                                          NSError *_Nullable))completionHandler;

    Swift

    func registerInstanceEventNotificationAttributes(_ request: AWSEC2RegisterInstanceEventNotificationAttributesRequest) async throws -> AWSEC2RegisterInstanceEventNotificationAttributesResult

    Parameters

    request

    A container for the necessary parameters to execute the RegisterInstanceEventNotificationAttributes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For more information, see Multicast on transit gateways in the Amazon Web Services Transit Gateways Guide.

    After you add the members, use SearchTransitGatewayMulticastGroups to verify that the members were added to the transit gateway multicast group.

    See

    AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest

    See

    AWSEC2RegisterTransitGatewayMulticastGroupMembersResult

    Declaration

    Objective-C

    - (id)registerTransitGatewayMulticastGroupMembers:
        (nonnull AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest *)request;

    Swift

    func registerTransitGatewayMulticastGroupMembers(_ request: AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RegisterTransitGatewayMulticastGroupMembers service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RegisterTransitGatewayMulticastGroupMembersResult.

  • Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For more information, see Multicast on transit gateways in the Amazon Web Services Transit Gateways Guide.

    After you add the members, use SearchTransitGatewayMulticastGroups to verify that the members were added to the transit gateway multicast group.

    See

    AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest

    See

    AWSEC2RegisterTransitGatewayMulticastGroupMembersResult

    Declaration

    Objective-C

    - (void)
        registerTransitGatewayMulticastGroupMembers:
            (nonnull AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest *)
                request
                                  completionHandler:
                                      (void (^_Nullable)(
                                          AWSEC2RegisterTransitGatewayMulticastGroupMembersResult
                                              *_Nullable,
                                          NSError *_Nullable))completionHandler;

    Swift

    func registerTransitGatewayMulticastGroupMembers(_ request: AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest) async throws -> AWSEC2RegisterTransitGatewayMulticastGroupMembersResult

    Parameters

    request

    A container for the necessary parameters to execute the RegisterTransitGatewayMulticastGroupMembers service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Registers sources (network interfaces) with the specified transit gateway multicast group.

    A multicast source is a network interface attached to a supported instance that sends multicast traffic. For more information about supported instances, see Multicast on transit gateways in the Amazon Web Services Transit Gateways Guide.

    After you add the source, use SearchTransitGatewayMulticastGroups to verify that the source was added to the multicast group.

    See

    AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest

    See

    AWSEC2RegisterTransitGatewayMulticastGroupSourcesResult

    Declaration

    Objective-C

    - (id)registerTransitGatewayMulticastGroupSources:
        (nonnull AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest *)request;

    Swift

    func registerTransitGatewayMulticastGroupSources(_ request: AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RegisterTransitGatewayMulticastGroupSources service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RegisterTransitGatewayMulticastGroupSourcesResult.

  • Registers sources (network interfaces) with the specified transit gateway multicast group.

    A multicast source is a network interface attached to a supported instance that sends multicast traffic. For more information about supported instances, see Multicast on transit gateways in the Amazon Web Services Transit Gateways Guide.

    After you add the source, use SearchTransitGatewayMulticastGroups to verify that the source was added to the multicast group.

    See

    AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest

    See

    AWSEC2RegisterTransitGatewayMulticastGroupSourcesResult

    Declaration

    Objective-C

    - (void)
        registerTransitGatewayMulticastGroupSources:
            (nonnull AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest *)
                request
                                  completionHandler:
                                      (void (^_Nullable)(
                                          AWSEC2RegisterTransitGatewayMulticastGroupSourcesResult
                                              *_Nullable,
                                          NSError *_Nullable))completionHandler;

    Swift

    func registerTransitGatewayMulticastGroupSources(_ request: AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest) async throws -> AWSEC2RegisterTransitGatewayMulticastGroupSourcesResult

    Parameters

    request

    A container for the necessary parameters to execute the RegisterTransitGatewayMulticastGroupSources service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Rejects a request to associate cross-account subnets with a transit gateway multicast domain.

    See

    AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest

    See

    AWSEC2RejectTransitGatewayMulticastDomainAssociationsResult

    Declaration

    Objective-C

    - (id)rejectTransitGatewayMulticastDomainAssociations:
        (nonnull AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest *)
            request;

    Swift

    func rejectTransitGatewayMulticastDomainAssociations(_ request: AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RejectTransitGatewayMulticastDomainAssociations service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RejectTransitGatewayMulticastDomainAssociationsResult.

  • Rejects a request to associate cross-account subnets with a transit gateway multicast domain.

    See

    AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest

    See

    AWSEC2RejectTransitGatewayMulticastDomainAssociationsResult

    Declaration

    Objective-C

    - (void)
        rejectTransitGatewayMulticastDomainAssociations:
            (nonnull AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest *)
                request
                                      completionHandler:
                                          (void (^_Nullable)(
                                              AWSEC2RejectTransitGatewayMulticastDomainAssociationsResult
                                                  *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func rejectTransitGatewayMulticastDomainAssociations(_ request: AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest) async throws -> AWSEC2RejectTransitGatewayMulticastDomainAssociationsResult

    Parameters

    request

    A container for the necessary parameters to execute the RejectTransitGatewayMulticastDomainAssociations service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Rejects a transit gateway peering attachment request.

    See

    AWSEC2RejectTransitGatewayPeeringAttachmentRequest

    See

    AWSEC2RejectTransitGatewayPeeringAttachmentResult

    Declaration

    Objective-C

    - (id)rejectTransitGatewayPeeringAttachment:
        (nonnull AWSEC2RejectTransitGatewayPeeringAttachmentRequest *)request;

    Swift

    func rejectTransitGatewayPeeringAttachment(_ request: AWSEC2RejectTransitGatewayPeeringAttachmentRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RejectTransitGatewayPeeringAttachment service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RejectTransitGatewayPeeringAttachmentResult.

  • Rejects a transit gateway peering attachment request.

    See

    AWSEC2RejectTransitGatewayPeeringAttachmentRequest

    See

    AWSEC2RejectTransitGatewayPeeringAttachmentResult

    Declaration

    Objective-C

    - (void)
        rejectTransitGatewayPeeringAttachment:
            (nonnull AWSEC2RejectTransitGatewayPeeringAttachmentRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2RejectTransitGatewayPeeringAttachmentResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func rejectTransitGatewayPeeringAttachment(_ request: AWSEC2RejectTransitGatewayPeeringAttachmentRequest) async throws -> AWSEC2RejectTransitGatewayPeeringAttachmentResult

    Parameters

    request

    A container for the necessary parameters to execute the RejectTransitGatewayPeeringAttachment service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Rejects a request to attach a VPC to a transit gateway.

    The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.

    See

    AWSEC2RejectTransitGatewayVpcAttachmentRequest

    See

    AWSEC2RejectTransitGatewayVpcAttachmentResult

    Declaration

    Objective-C

    - (id)rejectTransitGatewayVpcAttachment:
        (nonnull AWSEC2RejectTransitGatewayVpcAttachmentRequest *)request;

    Swift

    func rejectTransitGatewayVpcAttachment(_ request: AWSEC2RejectTransitGatewayVpcAttachmentRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RejectTransitGatewayVpcAttachment service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RejectTransitGatewayVpcAttachmentResult.

  • Rejects a request to attach a VPC to a transit gateway.

    The VPC attachment must be in the pendingAcceptance state. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.

    See

    AWSEC2RejectTransitGatewayVpcAttachmentRequest

    See

    AWSEC2RejectTransitGatewayVpcAttachmentResult

    Declaration

    Objective-C

    - (void)rejectTransitGatewayVpcAttachment:
                (nonnull AWSEC2RejectTransitGatewayVpcAttachmentRequest *)request
                            completionHandler:
                                (void (^_Nullable)(
                                    AWSEC2RejectTransitGatewayVpcAttachmentResult
                                        *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func rejectTransitGatewayVpcAttachment(_ request: AWSEC2RejectTransitGatewayVpcAttachmentRequest) async throws -> AWSEC2RejectTransitGatewayVpcAttachmentResult

    Parameters

    request

    A container for the necessary parameters to execute the RejectTransitGatewayVpcAttachment service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Rejects VPC endpoint connection requests to your VPC endpoint service.

    See

    AWSEC2RejectVpcEndpointConnectionsRequest

    See

    AWSEC2RejectVpcEndpointConnectionsResult

    Declaration

    Objective-C

    - (id)rejectVpcEndpointConnections:
        (nonnull AWSEC2RejectVpcEndpointConnectionsRequest *)request;

    Swift

    func rejectVpcEndpointConnections(_ request: AWSEC2RejectVpcEndpointConnectionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RejectVpcEndpointConnections service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RejectVpcEndpointConnectionsResult.

  • Rejects VPC endpoint connection requests to your VPC endpoint service.

    See

    AWSEC2RejectVpcEndpointConnectionsRequest

    See

    AWSEC2RejectVpcEndpointConnectionsResult

    Declaration

    Objective-C

    - (void)rejectVpcEndpointConnections:
                (nonnull AWSEC2RejectVpcEndpointConnectionsRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2RejectVpcEndpointConnectionsResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func rejectVpcEndpointConnections(_ request: AWSEC2RejectVpcEndpointConnectionsRequest) async throws -> AWSEC2RejectVpcEndpointConnectionsResult

    Parameters

    request

    A container for the necessary parameters to execute the RejectVpcEndpointConnections service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.

    See

    AWSEC2RejectVpcPeeringConnectionRequest

    See

    AWSEC2RejectVpcPeeringConnectionResult

    Declaration

    Objective-C

    - (id)rejectVpcPeeringConnection:
        (nonnull AWSEC2RejectVpcPeeringConnectionRequest *)request;

    Swift

    func rejectVpcPeeringConnection(_ request: AWSEC2RejectVpcPeeringConnectionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RejectVpcPeeringConnection service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RejectVpcPeeringConnectionResult.

  • Rejects a VPC peering connection request. The VPC peering connection must be in the pending-acceptance state. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.

    See

    AWSEC2RejectVpcPeeringConnectionRequest

    See

    AWSEC2RejectVpcPeeringConnectionResult

    Declaration

    Objective-C

    - (void)rejectVpcPeeringConnection:
                (nonnull AWSEC2RejectVpcPeeringConnectionRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2RejectVpcPeeringConnectionResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func rejectVpcPeeringConnection(_ request: AWSEC2RejectVpcPeeringConnectionRequest) async throws -> AWSEC2RejectVpcPeeringConnectionResult

    Parameters

    request

    A container for the necessary parameters to execute the RejectVpcPeeringConnection service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Releases the specified Elastic IP address.

    [Default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it’s associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.

    [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

    After releasing an Elastic IP address, it is released to the IP address pool. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you’ll get an AuthFailure error if the address is already allocated to another Amazon Web Services account.

    After you release an Elastic IP address, you might be able to recover it. For more information, see AllocateAddress.

    See

    AWSEC2ReleaseAddressRequest

    Declaration

    Objective-C

    - (id)releaseAddress:(nonnull AWSEC2ReleaseAddressRequest *)request;

    Swift

    func releaseAddress(_ request: AWSEC2ReleaseAddressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReleaseAddress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Releases the specified Elastic IP address.

    [Default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it’s associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.

    [Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you can release it. Otherwise, Amazon EC2 returns an error (InvalidIPAddress.InUse).

    After releasing an Elastic IP address, it is released to the IP address pool. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you’ll get an AuthFailure error if the address is already allocated to another Amazon Web Services account.

    After you release an Elastic IP address, you might be able to recover it. For more information, see AllocateAddress.

    See

    AWSEC2ReleaseAddressRequest

    Declaration

    Objective-C

    - (void)releaseAddress:(nonnull AWSEC2ReleaseAddressRequest *)request
         completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func releaseAddress(_ request: AWSEC2ReleaseAddressRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ReleaseAddress service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

    When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

    Released hosts still appear in a DescribeHosts response.

    See

    AWSEC2ReleaseHostsRequest

    See

    AWSEC2ReleaseHostsResult

    Declaration

    Objective-C

    - (id)releaseHosts:(nonnull AWSEC2ReleaseHostsRequest *)request;

    Swift

    func releaseHosts(_ request: AWSEC2ReleaseHostsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReleaseHosts service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ReleaseHostsResult.

  • When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into released state. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.

    When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.

    Released hosts still appear in a DescribeHosts response.

    See

    AWSEC2ReleaseHostsRequest

    See

    AWSEC2ReleaseHostsResult

    Declaration

    Objective-C

    - (void)releaseHosts:(nonnull AWSEC2ReleaseHostsRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2ReleaseHostsResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func releaseHosts(_ request: AWSEC2ReleaseHostsRequest) async throws -> AWSEC2ReleaseHostsResult

    Parameters

    request

    A container for the necessary parameters to execute the ReleaseHosts service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Release an allocation within an IPAM pool. The Region you use should be the IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM pool is available for allocations. You can only use this action to release manual allocations. To remove an allocation for a resource without deleting the resource, set its monitored state to false using ModifyIpamResourceCidr. For more information, see Release an allocation in the Amazon VPC IPAM User Guide.

    All EC2 API actions follow an eventual consistency model.

    See

    AWSEC2ReleaseIpamPoolAllocationRequest

    See

    AWSEC2ReleaseIpamPoolAllocationResult

    Declaration

    Objective-C

    - (id)releaseIpamPoolAllocation:
        (nonnull AWSEC2ReleaseIpamPoolAllocationRequest *)request;

    Swift

    func releaseIpamPoolAllocation(_ request: AWSEC2ReleaseIpamPoolAllocationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReleaseIpamPoolAllocation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ReleaseIpamPoolAllocationResult.

  • Release an allocation within an IPAM pool. The Region you use should be the IPAM pool locale. The locale is the Amazon Web Services Region where this IPAM pool is available for allocations. You can only use this action to release manual allocations. To remove an allocation for a resource without deleting the resource, set its monitored state to false using ModifyIpamResourceCidr. For more information, see Release an allocation in the Amazon VPC IPAM User Guide.

    All EC2 API actions follow an eventual consistency model.

    See

    AWSEC2ReleaseIpamPoolAllocationRequest

    See

    AWSEC2ReleaseIpamPoolAllocationResult

    Declaration

    Objective-C

    - (void)releaseIpamPoolAllocation:
                (nonnull AWSEC2ReleaseIpamPoolAllocationRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2ReleaseIpamPoolAllocationResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func releaseIpamPoolAllocation(_ request: AWSEC2ReleaseIpamPoolAllocationRequest) async throws -> AWSEC2ReleaseIpamPoolAllocationResult

    Parameters

    request

    A container for the necessary parameters to execute the ReleaseIpamPoolAllocation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that’s associated with an instance without having to disassociate the existing IAM instance profile first.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    See

    AWSEC2ReplaceIamInstanceProfileAssociationRequest

    See

    AWSEC2ReplaceIamInstanceProfileAssociationResult

    Declaration

    Objective-C

    - (id)replaceIamInstanceProfileAssociation:
        (nonnull AWSEC2ReplaceIamInstanceProfileAssociationRequest *)request;

    Swift

    func replaceIamInstanceProfileAssociation(_ request: AWSEC2ReplaceIamInstanceProfileAssociationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceIamInstanceProfileAssociation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ReplaceIamInstanceProfileAssociationResult.

  • Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that’s associated with an instance without having to disassociate the existing IAM instance profile first.

    Use DescribeIamInstanceProfileAssociations to get the association ID.

    See

    AWSEC2ReplaceIamInstanceProfileAssociationRequest

    See

    AWSEC2ReplaceIamInstanceProfileAssociationResult

    Declaration

    Objective-C

    - (void)
        replaceIamInstanceProfileAssociation:
            (nonnull AWSEC2ReplaceIamInstanceProfileAssociationRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2ReplaceIamInstanceProfileAssociationResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func replaceIamInstanceProfileAssociation(_ request: AWSEC2ReplaceIamInstanceProfileAssociationRequest) async throws -> AWSEC2ReplaceIamInstanceProfileAssociationResult

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceIamInstanceProfileAssociation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Changes which network ACL a subnet is associated with. By default when you create a subnet, it’s automatically associated with the default network ACL. For more information, see Network ACLs in the Amazon VPC User Guide.

    This is an idempotent operation.

    See

    AWSEC2ReplaceNetworkAclAssociationRequest

    See

    AWSEC2ReplaceNetworkAclAssociationResult

    Declaration

    Objective-C

    - (id)replaceNetworkAclAssociation:
        (nonnull AWSEC2ReplaceNetworkAclAssociationRequest *)request;

    Swift

    func replaceNetworkAclAssociation(_ request: AWSEC2ReplaceNetworkAclAssociationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceNetworkAclAssociation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ReplaceNetworkAclAssociationResult.

  • Changes which network ACL a subnet is associated with. By default when you create a subnet, it’s automatically associated with the default network ACL. For more information, see Network ACLs in the Amazon VPC User Guide.

    This is an idempotent operation.

    See

    AWSEC2ReplaceNetworkAclAssociationRequest

    See

    AWSEC2ReplaceNetworkAclAssociationResult

    Declaration

    Objective-C

    - (void)replaceNetworkAclAssociation:
                (nonnull AWSEC2ReplaceNetworkAclAssociationRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2ReplaceNetworkAclAssociationResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func replaceNetworkAclAssociation(_ request: AWSEC2ReplaceNetworkAclAssociationRequest) async throws -> AWSEC2ReplaceNetworkAclAssociationResult

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceNetworkAclAssociation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Replaces an entry (rule) in a network ACL. For more information, see Network ACLs in the Amazon VPC User Guide.

    See

    AWSEC2ReplaceNetworkAclEntryRequest

    Declaration

    Objective-C

    - (id)replaceNetworkAclEntry:
        (nonnull AWSEC2ReplaceNetworkAclEntryRequest *)request;

    Swift

    func replaceNetworkAclEntry(_ request: AWSEC2ReplaceNetworkAclEntryRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceNetworkAclEntry service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Replaces an entry (rule) in a network ACL. For more information, see Network ACLs in the Amazon VPC User Guide.

    See

    AWSEC2ReplaceNetworkAclEntryRequest

    Declaration

    Objective-C

    - (void)replaceNetworkAclEntry:
                (nonnull AWSEC2ReplaceNetworkAclEntryRequest *)request
                 completionHandler:
                     (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func replaceNetworkAclEntry(_ request: AWSEC2ReplaceNetworkAclEntryRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceNetworkAclEntry service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Replaces an existing route within a route table in a VPC.

    You must specify either a destination CIDR block or a prefix list ID. You must also specify exactly one of the resources from the parameter list, or reset the local route to its default target.

    For more information, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2ReplaceRouteRequest

    Declaration

    Objective-C

    - (id)replaceRoute:(nonnull AWSEC2ReplaceRouteRequest *)request;

    Swift

    func replaceRoute(_ request: AWSEC2ReplaceRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Replaces an existing route within a route table in a VPC.

    You must specify either a destination CIDR block or a prefix list ID. You must also specify exactly one of the resources from the parameter list, or reset the local route to its default target.

    For more information, see Route tables in the Amazon VPC User Guide.

    See

    AWSEC2ReplaceRouteRequest

    Declaration

    Objective-C

    - (void)replaceRoute:(nonnull AWSEC2ReplaceRouteRequest *)request
        completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func replaceRoute(_ request: AWSEC2ReplaceRouteRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route tables in the Amazon VPC User Guide.

    You can also use this operation to change which table is the main route table in the VPC. Specify the main route table’s association ID and the route table ID of the new main route table.

    See

    AWSEC2ReplaceRouteTableAssociationRequest

    See

    AWSEC2ReplaceRouteTableAssociationResult

    Declaration

    Objective-C

    - (id)replaceRouteTableAssociation:
        (nonnull AWSEC2ReplaceRouteTableAssociationRequest *)request;

    Swift

    func replaceRouteTableAssociation(_ request: AWSEC2ReplaceRouteTableAssociationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceRouteTableAssociation service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ReplaceRouteTableAssociationResult.

  • Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route tables in the Amazon VPC User Guide.

    You can also use this operation to change which table is the main route table in the VPC. Specify the main route table’s association ID and the route table ID of the new main route table.

    See

    AWSEC2ReplaceRouteTableAssociationRequest

    See

    AWSEC2ReplaceRouteTableAssociationResult

    Declaration

    Objective-C

    - (void)replaceRouteTableAssociation:
                (nonnull AWSEC2ReplaceRouteTableAssociationRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2ReplaceRouteTableAssociationResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func replaceRouteTableAssociation(_ request: AWSEC2ReplaceRouteTableAssociationRequest) async throws -> AWSEC2ReplaceRouteTableAssociationResult

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceRouteTableAssociation service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Replaces the specified route in the specified transit gateway route table.

    See

    AWSEC2ReplaceTransitGatewayRouteRequest

    See

    AWSEC2ReplaceTransitGatewayRouteResult

    Declaration

    Objective-C

    - (id)replaceTransitGatewayRoute:
        (nonnull AWSEC2ReplaceTransitGatewayRouteRequest *)request;

    Swift

    func replaceTransitGatewayRoute(_ request: AWSEC2ReplaceTransitGatewayRouteRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceTransitGatewayRoute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ReplaceTransitGatewayRouteResult.

  • Replaces the specified route in the specified transit gateway route table.

    See

    AWSEC2ReplaceTransitGatewayRouteRequest

    See

    AWSEC2ReplaceTransitGatewayRouteResult

    Declaration

    Objective-C

    - (void)replaceTransitGatewayRoute:
                (nonnull AWSEC2ReplaceTransitGatewayRouteRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2ReplaceTransitGatewayRouteResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func replaceTransitGatewayRoute(_ request: AWSEC2ReplaceTransitGatewayRouteRequest) async throws -> AWSEC2ReplaceTransitGatewayRouteResult

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceTransitGatewayRoute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Trigger replacement of specified VPN tunnel.

    See

    AWSEC2ReplaceVpnTunnelRequest

    See

    AWSEC2ReplaceVpnTunnelResult

    Declaration

    Objective-C

    - (id)replaceVpnTunnel:(nonnull AWSEC2ReplaceVpnTunnelRequest *)request;

    Swift

    func replaceVpnTunnel(_ request: AWSEC2ReplaceVpnTunnelRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceVpnTunnel service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ReplaceVpnTunnelResult.

  • Trigger replacement of specified VPN tunnel.

    See

    AWSEC2ReplaceVpnTunnelRequest

    See

    AWSEC2ReplaceVpnTunnelResult

    Declaration

    Objective-C

    - (void)replaceVpnTunnel:(nonnull AWSEC2ReplaceVpnTunnelRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2ReplaceVpnTunnelResult *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func replaceVpnTunnel(_ request: AWSEC2ReplaceVpnTunnelRequest) async throws -> AWSEC2ReplaceVpnTunnelResult

    Parameters

    request

    A container for the necessary parameters to execute the ReplaceVpnTunnel service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

    Use of this action does not change the value returned by DescribeInstanceStatus.

    See

    AWSEC2ReportInstanceStatusRequest

    Declaration

    Objective-C

    - (id)reportInstanceStatus:(nonnull AWSEC2ReportInstanceStatusRequest *)request;

    Swift

    func reportInstanceStatus(_ request: AWSEC2ReportInstanceStatusRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ReportInstanceStatus service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Submits feedback about the status of an instance. The instance must be in the running state. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.

    Use of this action does not change the value returned by DescribeInstanceStatus.

    See

    AWSEC2ReportInstanceStatusRequest

    Declaration

    Objective-C

    - (void)reportInstanceStatus:
                (nonnull AWSEC2ReportInstanceStatusRequest *)request
               completionHandler:
                   (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func reportInstanceStatus(_ request: AWSEC2ReportInstanceStatusRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ReportInstanceStatus service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a Spot Fleet request.

    The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.

    You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

    By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

    Alternatively, you can specify that the Spot Fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot Instances in your Spot Fleet are in different Spot pools, you can improve the availability of your fleet.

    You can specify tags for the Spot Fleet request and instances launched by the fleet. You cannot tag other resource types in a Spot Fleet request because only the spot-fleet-request and instance resource types are supported.

    For more information, see Spot Fleet requests in the Amazon EC2 User Guide.

    We strongly discourage using the RequestSpotFleet API because it is a legacy API with no planned investment. For options for requesting Spot Instances, see Which is the best Spot request method to use? in the Amazon EC2 User Guide.

    See

    AWSEC2RequestSpotFleetRequest

    See

    AWSEC2RequestSpotFleetResponse

    Declaration

    Objective-C

    - (id)requestSpotFleet:(nonnull AWSEC2RequestSpotFleetRequest *)request;

    Swift

    func requestSpotFleet(_ request: AWSEC2RequestSpotFleetRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RequestSpotFleet service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RequestSpotFleetResponse.

  • Creates a Spot Fleet request.

    The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.

    You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.

    By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.

    Alternatively, you can specify that the Spot Fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot Instances in your Spot Fleet are in different Spot pools, you can improve the availability of your fleet.

    You can specify tags for the Spot Fleet request and instances launched by the fleet. You cannot tag other resource types in a Spot Fleet request because only the spot-fleet-request and instance resource types are supported.

    For more information, see Spot Fleet requests in the Amazon EC2 User Guide.

    We strongly discourage using the RequestSpotFleet API because it is a legacy API with no planned investment. For options for requesting Spot Instances, see Which is the best Spot request method to use? in the Amazon EC2 User Guide.

    See

    AWSEC2RequestSpotFleetRequest

    See

    AWSEC2RequestSpotFleetResponse

    Declaration

    Objective-C

    - (void)requestSpotFleet:(nonnull AWSEC2RequestSpotFleetRequest *)request
           completionHandler:
               (void (^_Nullable)(AWSEC2RequestSpotFleetResponse *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func requestSpotFleet(_ request: AWSEC2RequestSpotFleetRequest) async throws -> AWSEC2RequestSpotFleetResponse

    Parameters

    request

    A container for the necessary parameters to execute the RequestSpotFleet service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Creates a Spot Instance request.

    For more information, see Work with Spot Instance in the Amazon EC2 User Guide.

    We strongly discourage using the RequestSpotInstances API because it is a legacy API with no planned investment. For options for requesting Spot Instances, see Which is the best Spot request method to use? in the Amazon EC2 User Guide.

    See

    AWSEC2RequestSpotInstancesRequest

    See

    AWSEC2RequestSpotInstancesResult

    Declaration

    Objective-C

    - (id)requestSpotInstances:(nonnull AWSEC2RequestSpotInstancesRequest *)request;

    Swift

    func requestSpotInstances(_ request: AWSEC2RequestSpotInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RequestSpotInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RequestSpotInstancesResult.

  • Creates a Spot Instance request.

    For more information, see Work with Spot Instance in the Amazon EC2 User Guide.

    We strongly discourage using the RequestSpotInstances API because it is a legacy API with no planned investment. For options for requesting Spot Instances, see Which is the best Spot request method to use? in the Amazon EC2 User Guide.

    See

    AWSEC2RequestSpotInstancesRequest

    See

    AWSEC2RequestSpotInstancesResult

    Declaration

    Objective-C

    - (void)requestSpotInstances:
                (nonnull AWSEC2RequestSpotInstancesRequest *)request
               completionHandler:
                   (void (^_Nullable)(AWSEC2RequestSpotInstancesResult *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func requestSpotInstances(_ request: AWSEC2RequestSpotInstancesRequest) async throws -> AWSEC2RequestSpotInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the RequestSpotInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Resets the attribute of the specified IP address. For requirements, see Using reverse DNS for email applications.

    See

    AWSEC2ResetAddressAttributeRequest

    See

    AWSEC2ResetAddressAttributeResult

    Declaration

    Objective-C

    - (id)resetAddressAttribute:
        (nonnull AWSEC2ResetAddressAttributeRequest *)request;

    Swift

    func resetAddressAttribute(_ request: AWSEC2ResetAddressAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ResetAddressAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ResetAddressAttributeResult.

  • Resets the attribute of the specified IP address. For requirements, see Using reverse DNS for email applications.

    See

    AWSEC2ResetAddressAttributeRequest

    See

    AWSEC2ResetAddressAttributeResult

    Declaration

    Objective-C

    - (void)resetAddressAttribute:
                (nonnull AWSEC2ResetAddressAttributeRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2ResetAddressAttributeResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func resetAddressAttribute(_ request: AWSEC2ResetAddressAttributeRequest) async throws -> AWSEC2ResetAddressAttributeResult

    Parameters

    request

    A container for the necessary parameters to execute the ResetAddressAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Resets the default KMS key for EBS encryption for your account in this Region to the Amazon Web Services managed KMS key for EBS.

    After resetting the default KMS key to the Amazon Web Services managed KMS key, you can continue to encrypt by a customer managed KMS key by specifying it when you create the volume. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2ResetEbsDefaultKmsKeyIdRequest

    See

    AWSEC2ResetEbsDefaultKmsKeyIdResult

    Declaration

    Objective-C

    - (id)resetEbsDefaultKmsKeyId:
        (nonnull AWSEC2ResetEbsDefaultKmsKeyIdRequest *)request;

    Swift

    func resetEbsDefaultKmsKeyId(_ request: AWSEC2ResetEbsDefaultKmsKeyIdRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ResetEbsDefaultKmsKeyId service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ResetEbsDefaultKmsKeyIdResult.

  • Resets the default KMS key for EBS encryption for your account in this Region to the Amazon Web Services managed KMS key for EBS.

    After resetting the default KMS key to the Amazon Web Services managed KMS key, you can continue to encrypt by a customer managed KMS key by specifying it when you create the volume. For more information, see Amazon EBS encryption in the Amazon EBS User Guide.

    See

    AWSEC2ResetEbsDefaultKmsKeyIdRequest

    See

    AWSEC2ResetEbsDefaultKmsKeyIdResult

    Declaration

    Objective-C

    - (void)
        resetEbsDefaultKmsKeyId:
            (nonnull AWSEC2ResetEbsDefaultKmsKeyIdRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2ResetEbsDefaultKmsKeyIdResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func resetEbsDefaultKmsKeyId(_ request: AWSEC2ResetEbsDefaultKmsKeyIdRequest) async throws -> AWSEC2ResetEbsDefaultKmsKeyIdResult

    Parameters

    request

    A container for the necessary parameters to execute the ResetEbsDefaultKmsKeyId service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute.

    See

    AWSEC2ResetFpgaImageAttributeRequest

    See

    AWSEC2ResetFpgaImageAttributeResult

    Declaration

    Objective-C

    - (id)resetFpgaImageAttribute:
        (nonnull AWSEC2ResetFpgaImageAttributeRequest *)request;

    Swift

    func resetFpgaImageAttribute(_ request: AWSEC2ResetFpgaImageAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ResetFpgaImageAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2ResetFpgaImageAttributeResult.

  • Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute.

    See

    AWSEC2ResetFpgaImageAttributeRequest

    See

    AWSEC2ResetFpgaImageAttributeResult

    Declaration

    Objective-C

    - (void)
        resetFpgaImageAttribute:
            (nonnull AWSEC2ResetFpgaImageAttributeRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2ResetFpgaImageAttributeResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func resetFpgaImageAttribute(_ request: AWSEC2ResetFpgaImageAttributeRequest) async throws -> AWSEC2ResetFpgaImageAttributeResult

    Parameters

    request

    A container for the necessary parameters to execute the ResetFpgaImageAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Resets an attribute of an AMI to its default value.

    See

    AWSEC2ResetImageAttributeRequest

    Declaration

    Objective-C

    - (id)resetImageAttribute:(nonnull AWSEC2ResetImageAttributeRequest *)request;

    Swift

    func resetImageAttribute(_ request: AWSEC2ResetImageAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ResetImageAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Resets an attribute of an AMI to its default value.

    See

    AWSEC2ResetImageAttributeRequest

    Declaration

    Objective-C

    - (void)resetImageAttribute:(nonnull AWSEC2ResetImageAttributeRequest *)request
              completionHandler:
                  (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func resetImageAttribute(_ request: AWSEC2ResetImageAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ResetImageAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, the instance can be either running or stopped.

    The sourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT instances in the Amazon VPC User Guide.

    See

    AWSEC2ResetInstanceAttributeRequest

    Declaration

    Objective-C

    - (id)resetInstanceAttribute:
        (nonnull AWSEC2ResetInstanceAttributeRequest *)request;

    Swift

    func resetInstanceAttribute(_ request: AWSEC2ResetInstanceAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ResetInstanceAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Resets an attribute of an instance to its default value. To reset the kernel or ramdisk, the instance must be in a stopped state. To reset the sourceDestCheck, the instance can be either running or stopped.

    The sourceDestCheck attribute controls whether source/destination checking is enabled. The default value is true, which means checking is enabled. This value must be false for a NAT instance to perform NAT. For more information, see NAT instances in the Amazon VPC User Guide.

    See

    AWSEC2ResetInstanceAttributeRequest

    Declaration

    Objective-C

    - (void)resetInstanceAttribute:
                (nonnull AWSEC2ResetInstanceAttributeRequest *)request
                 completionHandler:
                     (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func resetInstanceAttribute(_ request: AWSEC2ResetInstanceAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ResetInstanceAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Resets a network interface attribute. You can specify only one attribute at a time.

    See

    AWSEC2ResetNetworkInterfaceAttributeRequest

    Declaration

    Objective-C

    - (id)resetNetworkInterfaceAttribute:
        (nonnull AWSEC2ResetNetworkInterfaceAttributeRequest *)request;

    Swift

    func resetNetworkInterfaceAttribute(_ request: AWSEC2ResetNetworkInterfaceAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ResetNetworkInterfaceAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Resets a network interface attribute. You can specify only one attribute at a time.

    See

    AWSEC2ResetNetworkInterfaceAttributeRequest

    Declaration

    Objective-C

    - (void)resetNetworkInterfaceAttribute:
                (nonnull AWSEC2ResetNetworkInterfaceAttributeRequest *)request
                         completionHandler:(void (^_Nullable)(NSError *_Nullable))
                                               completionHandler;

    Swift

    func resetNetworkInterfaceAttribute(_ request: AWSEC2ResetNetworkInterfaceAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ResetNetworkInterfaceAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Resets permission settings for the specified snapshot.

    For more information about modifying snapshot permissions, see Share a snapshot in the Amazon EBS User Guide.

    See

    AWSEC2ResetSnapshotAttributeRequest

    Declaration

    Objective-C

    - (id)resetSnapshotAttribute:
        (nonnull AWSEC2ResetSnapshotAttributeRequest *)request;

    Swift

    func resetSnapshotAttribute(_ request: AWSEC2ResetSnapshotAttributeRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the ResetSnapshotAttribute service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Resets permission settings for the specified snapshot.

    For more information about modifying snapshot permissions, see Share a snapshot in the Amazon EBS User Guide.

    See

    AWSEC2ResetSnapshotAttributeRequest

    Declaration

    Objective-C

    - (void)resetSnapshotAttribute:
                (nonnull AWSEC2ResetSnapshotAttributeRequest *)request
                 completionHandler:
                     (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func resetSnapshotAttribute(_ request: AWSEC2ResetSnapshotAttributeRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the ResetSnapshotAttribute service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • This action is deprecated.

    Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface.

    See

    AWSEC2RestoreAddressToClassicRequest

    See

    AWSEC2RestoreAddressToClassicResult

    Declaration

    Objective-C

    - (id)restoreAddressToClassic:
        (nonnull AWSEC2RestoreAddressToClassicRequest *)request;

    Swift

    func restoreAddress(toClassic request: AWSEC2RestoreAddressToClassicRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RestoreAddressToClassic service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RestoreAddressToClassicResult.

  • This action is deprecated.

    Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface.

    See

    AWSEC2RestoreAddressToClassicRequest

    See

    AWSEC2RestoreAddressToClassicResult

    Declaration

    Objective-C

    - (void)
        restoreAddressToClassic:
            (nonnull AWSEC2RestoreAddressToClassicRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2RestoreAddressToClassicResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func restoreAddress(toClassic request: AWSEC2RestoreAddressToClassicRequest) async throws -> AWSEC2RestoreAddressToClassicResult

    Parameters

    request

    A container for the necessary parameters to execute the RestoreAddressToClassic service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Restores an AMI from the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide.

    See

    AWSEC2RestoreImageFromRecycleBinRequest

    See

    AWSEC2RestoreImageFromRecycleBinResult

    Declaration

    Objective-C

    - (id)restoreImageFromRecycleBin:
        (nonnull AWSEC2RestoreImageFromRecycleBinRequest *)request;

    Swift

    func restoreImage(fromRecycleBin request: AWSEC2RestoreImageFromRecycleBinRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RestoreImageFromRecycleBin service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RestoreImageFromRecycleBinResult.

  • Restores an AMI from the Recycle Bin. For more information, see Recycle Bin in the Amazon EC2 User Guide.

    See

    AWSEC2RestoreImageFromRecycleBinRequest

    See

    AWSEC2RestoreImageFromRecycleBinResult

    Declaration

    Objective-C

    - (void)restoreImageFromRecycleBin:
                (nonnull AWSEC2RestoreImageFromRecycleBinRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2RestoreImageFromRecycleBinResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func restoreImage(fromRecycleBin request: AWSEC2RestoreImageFromRecycleBinRequest) async throws -> AWSEC2RestoreImageFromRecycleBinResult

    Parameters

    request

    A container for the necessary parameters to execute the RestoreImageFromRecycleBin service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.

    See

    AWSEC2RestoreManagedPrefixListVersionRequest

    See

    AWSEC2RestoreManagedPrefixListVersionResult

    Declaration

    Objective-C

    - (id)restoreManagedPrefixListVersion:
        (nonnull AWSEC2RestoreManagedPrefixListVersionRequest *)request;

    Swift

    func restoreManagedPrefixListVersion(_ request: AWSEC2RestoreManagedPrefixListVersionRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RestoreManagedPrefixListVersion service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RestoreManagedPrefixListVersionResult.

  • Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.

    See

    AWSEC2RestoreManagedPrefixListVersionRequest

    See

    AWSEC2RestoreManagedPrefixListVersionResult

    Declaration

    Objective-C

    - (void)restoreManagedPrefixListVersion:
                (nonnull AWSEC2RestoreManagedPrefixListVersionRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2RestoreManagedPrefixListVersionResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func restoreManagedPrefixListVersion(_ request: AWSEC2RestoreManagedPrefixListVersionRequest) async throws -> AWSEC2RestoreManagedPrefixListVersionResult

    Parameters

    request

    A container for the necessary parameters to execute the RestoreManagedPrefixListVersion service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Restores a snapshot from the Recycle Bin. For more information, see Restore snapshots from the Recycle Bin in the Amazon EBS User Guide.

    See

    AWSEC2RestoreSnapshotFromRecycleBinRequest

    See

    AWSEC2RestoreSnapshotFromRecycleBinResult

    Declaration

    Objective-C

    - (id)restoreSnapshotFromRecycleBin:
        (nonnull AWSEC2RestoreSnapshotFromRecycleBinRequest *)request;

    Swift

    func restoreSnapshot(fromRecycleBin request: AWSEC2RestoreSnapshotFromRecycleBinRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RestoreSnapshotFromRecycleBin service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RestoreSnapshotFromRecycleBinResult.

  • Restores a snapshot from the Recycle Bin. For more information, see Restore snapshots from the Recycle Bin in the Amazon EBS User Guide.

    See

    AWSEC2RestoreSnapshotFromRecycleBinRequest

    See

    AWSEC2RestoreSnapshotFromRecycleBinResult

    Declaration

    Objective-C

    - (void)
        restoreSnapshotFromRecycleBin:
            (nonnull AWSEC2RestoreSnapshotFromRecycleBinRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2RestoreSnapshotFromRecycleBinResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func restoreSnapshot(fromRecycleBin request: AWSEC2RestoreSnapshotFromRecycleBinRequest) async throws -> AWSEC2RestoreSnapshotFromRecycleBinResult

    Parameters

    request

    A container for the necessary parameters to execute the RestoreSnapshotFromRecycleBin service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or restore type for a snapshot that was previously temporarily restored.

    For more information see Restore an archived snapshot and modify the restore period or restore type for a temporarily restored snapshot in the Amazon EBS User Guide.

    See

    AWSEC2RestoreSnapshotTierRequest

    See

    AWSEC2RestoreSnapshotTierResult

    Declaration

    Objective-C

    - (id)restoreSnapshotTier:(nonnull AWSEC2RestoreSnapshotTierRequest *)request;

    Swift

    func restoreSnapshotTier(_ request: AWSEC2RestoreSnapshotTierRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RestoreSnapshotTier service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RestoreSnapshotTierResult.

  • Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or restore type for a snapshot that was previously temporarily restored.

    For more information see Restore an archived snapshot and modify the restore period or restore type for a temporarily restored snapshot in the Amazon EBS User Guide.

    See

    AWSEC2RestoreSnapshotTierRequest

    See

    AWSEC2RestoreSnapshotTierResult

    Declaration

    Objective-C

    - (void)restoreSnapshotTier:(nonnull AWSEC2RestoreSnapshotTierRequest *)request
              completionHandler:
                  (void (^_Nullable)(AWSEC2RestoreSnapshotTierResult *_Nullable,
                                     NSError *_Nullable))completionHandler;

    Swift

    func restoreSnapshotTier(_ request: AWSEC2RestoreSnapshotTierRequest) async throws -> AWSEC2RestoreSnapshotTierResult

    Parameters

    request

    A container for the necessary parameters to execute the RestoreSnapshotTier service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Removes an ingress authorization rule from a Client VPN endpoint.

    See

    AWSEC2RevokeClientVpnIngressRequest

    See

    AWSEC2RevokeClientVpnIngressResult

    Declaration

    Objective-C

    - (id)revokeClientVpnIngress:
        (nonnull AWSEC2RevokeClientVpnIngressRequest *)request;

    Swift

    func revokeClientVpnIngress(_ request: AWSEC2RevokeClientVpnIngressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RevokeClientVpnIngress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RevokeClientVpnIngressResult.

  • Removes an ingress authorization rule from a Client VPN endpoint.

    See

    AWSEC2RevokeClientVpnIngressRequest

    See

    AWSEC2RevokeClientVpnIngressResult

    Declaration

    Objective-C

    - (void)
        revokeClientVpnIngress:
            (nonnull AWSEC2RevokeClientVpnIngressRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2RevokeClientVpnIngressResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func revokeClientVpnIngress(_ request: AWSEC2RevokeClientVpnIngressRequest) async throws -> AWSEC2RevokeClientVpnIngressResult

    Parameters

    request

    A container for the necessary parameters to execute the RevokeClientVpnIngress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Removes the specified outbound (egress) rules from the specified security group.

    You can specify rules using either rule IDs or security group rule properties. If you use rule properties, the values that you specify (for example, ports) must match the existing rule’s values exactly. Each rule has a protocol, from and to ports, and destination (CIDR range, security group, or prefix list). For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not need to specify the description to revoke the rule.

    For a default VPC, if the values you specify do not match the existing rule’s values, no error is returned, and the output describes the security group rules that were not revoked.

    Amazon Web Services recommends that you describe the security group to verify that the rules were removed.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    See

    AWSEC2RevokeSecurityGroupEgressRequest

    See

    AWSEC2RevokeSecurityGroupEgressResult

    Declaration

    Objective-C

    - (id)revokeSecurityGroupEgress:
        (nonnull AWSEC2RevokeSecurityGroupEgressRequest *)request;

    Swift

    func revokeSecurityGroupEgress(_ request: AWSEC2RevokeSecurityGroupEgressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RevokeSecurityGroupEgress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RevokeSecurityGroupEgressResult.

  • Removes the specified outbound (egress) rules from the specified security group.

    You can specify rules using either rule IDs or security group rule properties. If you use rule properties, the values that you specify (for example, ports) must match the existing rule’s values exactly. Each rule has a protocol, from and to ports, and destination (CIDR range, security group, or prefix list). For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not need to specify the description to revoke the rule.

    For a default VPC, if the values you specify do not match the existing rule’s values, no error is returned, and the output describes the security group rules that were not revoked.

    Amazon Web Services recommends that you describe the security group to verify that the rules were removed.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    See

    AWSEC2RevokeSecurityGroupEgressRequest

    See

    AWSEC2RevokeSecurityGroupEgressResult

    Declaration

    Objective-C

    - (void)revokeSecurityGroupEgress:
                (nonnull AWSEC2RevokeSecurityGroupEgressRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2RevokeSecurityGroupEgressResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func revokeSecurityGroupEgress(_ request: AWSEC2RevokeSecurityGroupEgressRequest) async throws -> AWSEC2RevokeSecurityGroupEgressResult

    Parameters

    request

    A container for the necessary parameters to execute the RevokeSecurityGroupEgress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Removes the specified inbound (ingress) rules from a security group.

    You can specify rules using either rule IDs or security group rule properties. If you use rule properties, the values that you specify (for example, ports) must match the existing rule’s values exactly. Each rule has a protocol, from and to ports, and source (CIDR range, security group, or prefix list). For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not need to specify the description to revoke the rule.

    For a default VPC, if the values you specify do not match the existing rule’s values, no error is returned, and the output describes the security group rules that were not revoked.

    For a non-default VPC, if the values you specify do not match the existing rule’s values, an InvalidPermission.NotFound client error is returned, and no rules are revoked.

    Amazon Web Services recommends that you describe the security group to verify that the rules were removed.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    See

    AWSEC2RevokeSecurityGroupIngressRequest

    See

    AWSEC2RevokeSecurityGroupIngressResult

    Declaration

    Objective-C

    - (id)revokeSecurityGroupIngress:
        (nonnull AWSEC2RevokeSecurityGroupIngressRequest *)request;

    Swift

    func revokeSecurityGroupIngress(_ request: AWSEC2RevokeSecurityGroupIngressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RevokeSecurityGroupIngress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RevokeSecurityGroupIngressResult.

  • Removes the specified inbound (ingress) rules from a security group.

    You can specify rules using either rule IDs or security group rule properties. If you use rule properties, the values that you specify (for example, ports) must match the existing rule’s values exactly. Each rule has a protocol, from and to ports, and source (CIDR range, security group, or prefix list). For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not need to specify the description to revoke the rule.

    For a default VPC, if the values you specify do not match the existing rule’s values, no error is returned, and the output describes the security group rules that were not revoked.

    For a non-default VPC, if the values you specify do not match the existing rule’s values, an InvalidPermission.NotFound client error is returned, and no rules are revoked.

    Amazon Web Services recommends that you describe the security group to verify that the rules were removed.

    Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.

    See

    AWSEC2RevokeSecurityGroupIngressRequest

    See

    AWSEC2RevokeSecurityGroupIngressResult

    Declaration

    Objective-C

    - (void)revokeSecurityGroupIngress:
                (nonnull AWSEC2RevokeSecurityGroupIngressRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2RevokeSecurityGroupIngressResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func revokeSecurityGroupIngress(_ request: AWSEC2RevokeSecurityGroupIngressRequest) async throws -> AWSEC2RevokeSecurityGroupIngressResult

    Parameters

    request

    A container for the necessary parameters to execute the RevokeSecurityGroupIngress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Launches the specified number of instances using an AMI for which you have permissions.

    You can specify a number of options, or leave the default options. The following rules apply:

    • If you don’t specify a subnet ID, we choose a default subnet from your default VPC for you. If you don’t have a default VPC, you must specify a subnet ID in the request.

    • All instances have a network interface with a primary private IPv4 address. If you don’t specify this address, we choose one from the IPv4 range of your subnet.

    • Not all instance types support IPv6 addresses. For more information, see Instance types.

    • If you don’t specify a security group ID, we use the default security group for the VPC. For more information, see Security groups.

    • If any of the AMIs have a product code attached for which the user has not subscribed, the request fails.

    You can create a launch template, which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters.

    To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.

    RunInstances is subject to both request rate limiting and resource rate limiting. For more information, see Request throttling.

    An instance is ready for you to use when it’s in the running state. You can check the state of your instance using DescribeInstances. You can tag instances and EBS volumes during launch, after launch, or both. For more information, see CreateTags and Tagging your Amazon EC2 resources.

    Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key pairs.

    For troubleshooting, see What to do if an instance immediately terminates, and Troubleshooting connecting to your instance.

    See

    AWSEC2RunInstancesRequest

    See

    AWSEC2Reservation

    Declaration

    Objective-C

    - (id)runInstances:(nonnull AWSEC2RunInstancesRequest *)request;

    Swift

    func runInstances(_ request: AWSEC2RunInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RunInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2Reservation.

  • Launches the specified number of instances using an AMI for which you have permissions.

    You can specify a number of options, or leave the default options. The following rules apply:

    • If you don’t specify a subnet ID, we choose a default subnet from your default VPC for you. If you don’t have a default VPC, you must specify a subnet ID in the request.

    • All instances have a network interface with a primary private IPv4 address. If you don’t specify this address, we choose one from the IPv4 range of your subnet.

    • Not all instance types support IPv6 addresses. For more information, see Instance types.

    • If you don’t specify a security group ID, we use the default security group for the VPC. For more information, see Security groups.

    • If any of the AMIs have a product code attached for which the user has not subscribed, the request fails.

    You can create a launch template, which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters.

    To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.

    RunInstances is subject to both request rate limiting and resource rate limiting. For more information, see Request throttling.

    An instance is ready for you to use when it’s in the running state. You can check the state of your instance using DescribeInstances. You can tag instances and EBS volumes during launch, after launch, or both. For more information, see CreateTags and Tagging your Amazon EC2 resources.

    Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key pairs.

    For troubleshooting, see What to do if an instance immediately terminates, and Troubleshooting connecting to your instance.

    See

    AWSEC2RunInstancesRequest

    See

    AWSEC2Reservation

    Declaration

    Objective-C

    - (void)runInstances:(nonnull AWSEC2RunInstancesRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2Reservation *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func runInstances(_ request: AWSEC2RunInstancesRequest) async throws -> AWSEC2Reservation

    Parameters

    request

    A container for the necessary parameters to execute the RunInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Launches the specified Scheduled Instances.

    Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

    You must launch a Scheduled Instance during its scheduled time period. You can’t stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes.

    See

    AWSEC2RunScheduledInstancesRequest

    See

    AWSEC2RunScheduledInstancesResult

    Declaration

    Objective-C

    - (id)runScheduledInstances:
        (nonnull AWSEC2RunScheduledInstancesRequest *)request;

    Swift

    func runScheduledInstances(_ request: AWSEC2RunScheduledInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the RunScheduledInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2RunScheduledInstancesResult.

  • Launches the specified Scheduled Instances.

    Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.

    You must launch a Scheduled Instance during its scheduled time period. You can’t stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes.

    See

    AWSEC2RunScheduledInstancesRequest

    See

    AWSEC2RunScheduledInstancesResult

    Declaration

    Objective-C

    - (void)runScheduledInstances:
                (nonnull AWSEC2RunScheduledInstancesRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2RunScheduledInstancesResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func runScheduledInstances(_ request: AWSEC2RunScheduledInstancesRequest) async throws -> AWSEC2RunScheduledInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the RunScheduledInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Searches for routes in the specified local gateway route table.

    See

    AWSEC2SearchLocalGatewayRoutesRequest

    See

    AWSEC2SearchLocalGatewayRoutesResult

    Declaration

    Objective-C

    - (id)searchLocalGatewayRoutes:
        (nonnull AWSEC2SearchLocalGatewayRoutesRequest *)request;

    Swift

    func searchLocalGatewayRoutes(_ request: AWSEC2SearchLocalGatewayRoutesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SearchLocalGatewayRoutes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2SearchLocalGatewayRoutesResult.

  • Searches for routes in the specified local gateway route table.

    See

    AWSEC2SearchLocalGatewayRoutesRequest

    See

    AWSEC2SearchLocalGatewayRoutesResult

    Declaration

    Objective-C

    - (void)searchLocalGatewayRoutes:
                (nonnull AWSEC2SearchLocalGatewayRoutesRequest *)request
                   completionHandler:
                       (void (^_Nullable)(
                           AWSEC2SearchLocalGatewayRoutesResult *_Nullable,
                           NSError *_Nullable))completionHandler;

    Swift

    func searchLocalGatewayRoutes(_ request: AWSEC2SearchLocalGatewayRoutesRequest) async throws -> AWSEC2SearchLocalGatewayRoutesResult

    Parameters

    request

    A container for the necessary parameters to execute the SearchLocalGatewayRoutes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Searches one or more transit gateway multicast groups and returns the group membership information.

    See

    AWSEC2SearchTransitGatewayMulticastGroupsRequest

    See

    AWSEC2SearchTransitGatewayMulticastGroupsResult

    Declaration

    Objective-C

    - (id)searchTransitGatewayMulticastGroups:
        (nonnull AWSEC2SearchTransitGatewayMulticastGroupsRequest *)request;

    Swift

    func searchTransitGatewayMulticastGroups(_ request: AWSEC2SearchTransitGatewayMulticastGroupsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SearchTransitGatewayMulticastGroups service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2SearchTransitGatewayMulticastGroupsResult.

  • Searches one or more transit gateway multicast groups and returns the group membership information.

    See

    AWSEC2SearchTransitGatewayMulticastGroupsRequest

    See

    AWSEC2SearchTransitGatewayMulticastGroupsResult

    Declaration

    Objective-C

    - (void)
        searchTransitGatewayMulticastGroups:
            (nonnull AWSEC2SearchTransitGatewayMulticastGroupsRequest *)request
                          completionHandler:
                              (void (^_Nullable)(
                                  AWSEC2SearchTransitGatewayMulticastGroupsResult
                                      *_Nullable,
                                  NSError *_Nullable))completionHandler;

    Swift

    func searchTransitGatewayMulticastGroups(_ request: AWSEC2SearchTransitGatewayMulticastGroupsRequest) async throws -> AWSEC2SearchTransitGatewayMulticastGroupsResult

    Parameters

    request

    A container for the necessary parameters to execute the SearchTransitGatewayMulticastGroups service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Searches for routes in the specified transit gateway route table.

    See

    AWSEC2SearchTransitGatewayRoutesRequest

    See

    AWSEC2SearchTransitGatewayRoutesResult

    Declaration

    Objective-C

    - (id)searchTransitGatewayRoutes:
        (nonnull AWSEC2SearchTransitGatewayRoutesRequest *)request;

    Swift

    func searchTransitGatewayRoutes(_ request: AWSEC2SearchTransitGatewayRoutesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SearchTransitGatewayRoutes service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2SearchTransitGatewayRoutesResult.

  • Searches for routes in the specified transit gateway route table.

    See

    AWSEC2SearchTransitGatewayRoutesRequest

    See

    AWSEC2SearchTransitGatewayRoutesResult

    Declaration

    Objective-C

    - (void)searchTransitGatewayRoutes:
                (nonnull AWSEC2SearchTransitGatewayRoutesRequest *)request
                     completionHandler:
                         (void (^_Nullable)(
                             AWSEC2SearchTransitGatewayRoutesResult *_Nullable,
                             NSError *_Nullable))completionHandler;

    Swift

    func searchTransitGatewayRoutes(_ request: AWSEC2SearchTransitGatewayRoutesRequest) async throws -> AWSEC2SearchTransitGatewayRoutesResult

    Parameters

    request

    A container for the necessary parameters to execute the SearchTransitGatewayRoutes service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances). For instances based on Intel and AMD processors, the interrupt is received as a non-maskable interrupt (NMI).

    In general, the operating system crashes and reboots when a kernel panic or stop error is triggered. The operating system can also be configured to perform diagnostic tasks, such as generating a memory dump file, loading a secondary kernel, or obtaining a call trace.

    Before sending a diagnostic interrupt to your instance, ensure that its operating system is configured to perform the required diagnostic tasks.

    For more information about configuring your operating system to generate a crash dump when a kernel panic or stop error occurs, see Send a diagnostic interrupt (for advanced users) in the Amazon EC2 User Guide.

    See

    AWSEC2SendDiagnosticInterruptRequest

    Declaration

    Objective-C

    - (id)sendDiagnosticInterrupt:
        (nonnull AWSEC2SendDiagnosticInterruptRequest *)request;

    Swift

    func sendDiagnosticInterrupt(_ request: AWSEC2SendDiagnosticInterruptRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the SendDiagnosticInterrupt service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances). For instances based on Intel and AMD processors, the interrupt is received as a non-maskable interrupt (NMI).

    In general, the operating system crashes and reboots when a kernel panic or stop error is triggered. The operating system can also be configured to perform diagnostic tasks, such as generating a memory dump file, loading a secondary kernel, or obtaining a call trace.

    Before sending a diagnostic interrupt to your instance, ensure that its operating system is configured to perform the required diagnostic tasks.

    For more information about configuring your operating system to generate a crash dump when a kernel panic or stop error occurs, see Send a diagnostic interrupt (for advanced users) in the Amazon EC2 User Guide.

    See

    AWSEC2SendDiagnosticInterruptRequest

    Declaration

    Objective-C

    - (void)sendDiagnosticInterrupt:
                (nonnull AWSEC2SendDiagnosticInterruptRequest *)request
                  completionHandler:
                      (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func sendDiagnosticInterrupt(_ request: AWSEC2SendDiagnosticInterruptRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the SendDiagnosticInterrupt service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Starts an Amazon EBS-backed instance that you’ve previously stopped.

    Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

    Performing this operation on an instance that uses an instance store as its root device returns an error.

    If you attempt to start a T3 instance with host tenancy and the unlimited CPU credit option, the request fails. The unlimited CPU credit option is not supported on Dedicated Hosts. Before you start the instance, either change its CPU credit option to standard, or change its tenancy to default or dedicated.

    For more information, see Stop and start Amazon EC2 instances in the Amazon EC2 User Guide.

    See

    AWSEC2StartInstancesRequest

    See

    AWSEC2StartInstancesResult

    Declaration

    Objective-C

    - (id)startInstances:(nonnull AWSEC2StartInstancesRequest *)request;

    Swift

    func startInstances(_ request: AWSEC2StartInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the StartInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2StartInstancesResult.

  • Starts an Amazon EBS-backed instance that you’ve previously stopped.

    Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.

    Performing this operation on an instance that uses an instance store as its root device returns an error.

    If you attempt to start a T3 instance with host tenancy and the unlimited CPU credit option, the request fails. The unlimited CPU credit option is not supported on Dedicated Hosts. Before you start the instance, either change its CPU credit option to standard, or change its tenancy to default or dedicated.

    For more information, see Stop and start Amazon EC2 instances in the Amazon EC2 User Guide.

    See

    AWSEC2StartInstancesRequest

    See

    AWSEC2StartInstancesResult

    Declaration

    Objective-C

    - (void)startInstances:(nonnull AWSEC2StartInstancesRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2StartInstancesResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func startInstances(_ request: AWSEC2StartInstancesRequest) async throws -> AWSEC2StartInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the StartInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Starts analyzing the specified Network Access Scope.

    See

    AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest

    See

    AWSEC2StartNetworkInsightsAccessScopeAnalysisResult

    Declaration

    Objective-C

    - (id)startNetworkInsightsAccessScopeAnalysis:
        (nonnull AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest *)request;

    Swift

    func startNetworkInsightsAccessScopeAnalysis(_ request: AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the StartNetworkInsightsAccessScopeAnalysis service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2StartNetworkInsightsAccessScopeAnalysisResult.

  • Starts analyzing the specified Network Access Scope.

    See

    AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest

    See

    AWSEC2StartNetworkInsightsAccessScopeAnalysisResult

    Declaration

    Objective-C

    - (void)
        startNetworkInsightsAccessScopeAnalysis:
            (nonnull AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest *)request
                              completionHandler:
                                  (void (^_Nullable)(
                                      AWSEC2StartNetworkInsightsAccessScopeAnalysisResult
                                          *_Nullable,
                                      NSError *_Nullable))completionHandler;

    Swift

    func startNetworkInsightsAccessScopeAnalysis(_ request: AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest) async throws -> AWSEC2StartNetworkInsightsAccessScopeAnalysisResult

    Parameters

    request

    A container for the necessary parameters to execute the StartNetworkInsightsAccessScopeAnalysis service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Starts analyzing the specified path. If the path is reachable, the operation returns the shortest feasible path.

    See

    AWSEC2StartNetworkInsightsAnalysisRequest

    See

    AWSEC2StartNetworkInsightsAnalysisResult

    Declaration

    Objective-C

    - (id)startNetworkInsightsAnalysis:
        (nonnull AWSEC2StartNetworkInsightsAnalysisRequest *)request;

    Swift

    func startNetworkInsightsAnalysis(_ request: AWSEC2StartNetworkInsightsAnalysisRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the StartNetworkInsightsAnalysis service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2StartNetworkInsightsAnalysisResult.

  • Starts analyzing the specified path. If the path is reachable, the operation returns the shortest feasible path.

    See

    AWSEC2StartNetworkInsightsAnalysisRequest

    See

    AWSEC2StartNetworkInsightsAnalysisResult

    Declaration

    Objective-C

    - (void)startNetworkInsightsAnalysis:
                (nonnull AWSEC2StartNetworkInsightsAnalysisRequest *)request
                       completionHandler:
                           (void (^_Nullable)(
                               AWSEC2StartNetworkInsightsAnalysisResult *_Nullable,
                               NSError *_Nullable))completionHandler;

    Swift

    func startNetworkInsightsAnalysis(_ request: AWSEC2StartNetworkInsightsAnalysisRequest) async throws -> AWSEC2StartNetworkInsightsAnalysisResult

    Parameters

    request

    A container for the necessary parameters to execute the StartNetworkInsightsAnalysis service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.

    The service provider must successfully perform the verification before the consumer can use the name to access the service.

    Before the service provider runs this command, they must add a record to the DNS server.

    See

    AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest

    See

    AWSEC2StartVpcEndpointServicePrivateDnsVerificationResult

    Declaration

    Objective-C

    - (id)startVpcEndpointServicePrivateDnsVerification:
        (nonnull AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest *)
            request;

    Swift

    func startVpcEndpointServicePrivateDnsVerification(_ request: AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the StartVpcEndpointServicePrivateDnsVerification service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2StartVpcEndpointServicePrivateDnsVerificationResult.

  • Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.

    The service provider must successfully perform the verification before the consumer can use the name to access the service.

    Before the service provider runs this command, they must add a record to the DNS server.

    See

    AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest

    See

    AWSEC2StartVpcEndpointServicePrivateDnsVerificationResult

    Declaration

    Objective-C

    - (void)
        startVpcEndpointServicePrivateDnsVerification:
            (nonnull AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest *)
                request
                                    completionHandler:
                                        (void (^_Nullable)(
                                            AWSEC2StartVpcEndpointServicePrivateDnsVerificationResult
                                                *_Nullable,
                                            NSError *_Nullable))completionHandler;

    Swift

    func startVpcEndpointServicePrivateDnsVerification(_ request: AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest) async throws -> AWSEC2StartVpcEndpointServicePrivateDnsVerificationResult

    Parameters

    request

    A container for the necessary parameters to execute the StartVpcEndpointServicePrivateDnsVerification service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Stops an Amazon EBS-backed instance. For more information, see Stop and start Amazon EC2 instances in the Amazon EC2 User Guide.

    You can use the Stop action to hibernate an instance if the instance is enabled for hibernation and it meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.

    We don’t charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    You can’t stop or hibernate instance store-backed instances. You can’t use the Stop action to hibernate Spot Instances, but you can specify that Amazon EC2 should hibernate Spot Instances when they are interrupted. For more information, see Hibernating interrupted Spot Instances in the Amazon EC2 User Guide.

    When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.

    Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, hibernating, and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.

    When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshoot stopping your instance in the Amazon EC2 User Guide.

    See

    AWSEC2StopInstancesRequest

    See

    AWSEC2StopInstancesResult

    Declaration

    Objective-C

    - (id)stopInstances:(nonnull AWSEC2StopInstancesRequest *)request;

    Swift

    func stopInstances(_ request: AWSEC2StopInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the StopInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2StopInstancesResult.

  • Stops an Amazon EBS-backed instance. For more information, see Stop and start Amazon EC2 instances in the Amazon EC2 User Guide.

    You can use the Stop action to hibernate an instance if the instance is enabled for hibernation and it meets the hibernation prerequisites. For more information, see Hibernate your Amazon EC2 instance in the Amazon EC2 User Guide.

    We don’t charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.

    You can’t stop or hibernate instance store-backed instances. You can’t use the Stop action to hibernate Spot Instances, but you can specify that Amazon EC2 should hibernate Spot Instances when they are interrupted. For more information, see Hibernating interrupted Spot Instances in the Amazon EC2 User Guide.

    When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.

    Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, hibernating, and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.

    When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshoot stopping your instance in the Amazon EC2 User Guide.

    See

    AWSEC2StopInstancesRequest

    See

    AWSEC2StopInstancesResult

    Declaration

    Objective-C

    - (void)stopInstances:(nonnull AWSEC2StopInstancesRequest *)request
        completionHandler:(void (^_Nullable)(AWSEC2StopInstancesResult *_Nullable,
                                             NSError *_Nullable))completionHandler;

    Swift

    func stopInstances(_ request: AWSEC2StopInstancesRequest) async throws -> AWSEC2StopInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the StopInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user.

    See

    AWSEC2TerminateClientVpnConnectionsRequest

    See

    AWSEC2TerminateClientVpnConnectionsResult

    Declaration

    Objective-C

    - (id)terminateClientVpnConnections:
        (nonnull AWSEC2TerminateClientVpnConnectionsRequest *)request;

    Swift

    func terminateClientVpnConnections(_ request: AWSEC2TerminateClientVpnConnectionsRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the TerminateClientVpnConnections service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2TerminateClientVpnConnectionsResult.

  • Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user.

    See

    AWSEC2TerminateClientVpnConnectionsRequest

    See

    AWSEC2TerminateClientVpnConnectionsResult

    Declaration

    Objective-C

    - (void)
        terminateClientVpnConnections:
            (nonnull AWSEC2TerminateClientVpnConnectionsRequest *)request
                    completionHandler:
                        (void (^_Nullable)(
                            AWSEC2TerminateClientVpnConnectionsResult *_Nullable,
                            NSError *_Nullable))completionHandler;

    Swift

    func terminateClientVpnConnections(_ request: AWSEC2TerminateClientVpnConnectionsRequest) async throws -> AWSEC2TerminateClientVpnConnectionsResult

    Parameters

    request

    A container for the necessary parameters to execute the TerminateClientVpnConnections service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

    If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.

    If you terminate multiple instances across multiple Availability Zones, and one or more of the specified instances are enabled for termination protection, the request fails with the following results:

    • The specified instances that are in the same Availability Zone as the protected instance are not terminated.

    • The specified instances that are in different Availability Zones, where no other specified instances are protected, are successfully terminated.

    For example, say you have the following instances:

    • Instance A: us-east-1a; Not protected

    • Instance B: us-east-1a; Not protected

    • Instance C: us-east-1b; Protected

    • Instance D: us-east-1b; not protected

    If you attempt to terminate all of these instances in the same request, the request reports failure with the following results:

    • Instance A and Instance B are successfully terminated because none of the specified instances in us-east-1a are enabled for termination protection.

    • Instance C and Instance D fail to terminate because at least one of the specified instances in us-east-1b (Instance C) is enabled for termination protection.

    Terminated instances remain visible after termination (for approximately one hour).

    By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

    You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.

    For more information about troubleshooting, see Troubleshooting terminating your instance in the Amazon EC2 User Guide.

    See

    AWSEC2TerminateInstancesRequest

    See

    AWSEC2TerminateInstancesResult

    Declaration

    Objective-C

    - (id)terminateInstances:(nonnull AWSEC2TerminateInstancesRequest *)request;

    Swift

    func terminateInstances(_ request: AWSEC2TerminateInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the TerminateInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2TerminateInstancesResult.

  • Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.

    If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.

    If you terminate multiple instances across multiple Availability Zones, and one or more of the specified instances are enabled for termination protection, the request fails with the following results:

    • The specified instances that are in the same Availability Zone as the protected instance are not terminated.

    • The specified instances that are in different Availability Zones, where no other specified instances are protected, are successfully terminated.

    For example, say you have the following instances:

    • Instance A: us-east-1a; Not protected

    • Instance B: us-east-1a; Not protected

    • Instance C: us-east-1b; Protected

    • Instance D: us-east-1b; not protected

    If you attempt to terminate all of these instances in the same request, the request reports failure with the following results:

    • Instance A and Instance B are successfully terminated because none of the specified instances in us-east-1a are enabled for termination protection.

    • Instance C and Instance D fail to terminate because at least one of the specified instances in us-east-1b (Instance C) is enabled for termination protection.

    Terminated instances remain visible after termination (for approximately one hour).

    By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.

    You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the DeleteOnTermination block device mapping parameter set to true are automatically deleted. For more information about the differences between stopping and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.

    For more information about troubleshooting, see Troubleshooting terminating your instance in the Amazon EC2 User Guide.

    See

    AWSEC2TerminateInstancesRequest

    See

    AWSEC2TerminateInstancesResult

    Declaration

    Objective-C

    - (void)terminateInstances:(nonnull AWSEC2TerminateInstancesRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2TerminateInstancesResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func terminateInstances(_ request: AWSEC2TerminateInstancesRequest) async throws -> AWSEC2TerminateInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the TerminateInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.

    See

    AWSEC2UnassignIpv6AddressesRequest

    See

    AWSEC2UnassignIpv6AddressesResult

    Declaration

    Objective-C

    - (id)unassignIpv6Addresses:
        (nonnull AWSEC2UnassignIpv6AddressesRequest *)request;

    Swift

    func unassignIpv6Addresses(_ request: AWSEC2UnassignIpv6AddressesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the UnassignIpv6Addresses service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2UnassignIpv6AddressesResult.

  • Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.

    See

    AWSEC2UnassignIpv6AddressesRequest

    See

    AWSEC2UnassignIpv6AddressesResult

    Declaration

    Objective-C

    - (void)unassignIpv6Addresses:
                (nonnull AWSEC2UnassignIpv6AddressesRequest *)request
                completionHandler:
                    (void (^_Nullable)(AWSEC2UnassignIpv6AddressesResult *_Nullable,
                                       NSError *_Nullable))completionHandler;

    Swift

    func unassignIpv6Addresses(_ request: AWSEC2UnassignIpv6AddressesRequest) async throws -> AWSEC2UnassignIpv6AddressesResult

    Parameters

    request

    A container for the necessary parameters to execute the UnassignIpv6Addresses service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.

    See

    AWSEC2UnassignPrivateIpAddressesRequest

    Declaration

    Objective-C

    - (id)unassignPrivateIpAddresses:
        (nonnull AWSEC2UnassignPrivateIpAddressesRequest *)request;

    Swift

    func unassignPrivateIpAddresses(_ request: AWSEC2UnassignPrivateIpAddressesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the UnassignPrivateIpAddresses service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will be nil.

  • Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.

    See

    AWSEC2UnassignPrivateIpAddressesRequest

    Declaration

    Objective-C

    - (void)unassignPrivateIpAddresses:
                (nonnull AWSEC2UnassignPrivateIpAddressesRequest *)request
                     completionHandler:
                         (void (^_Nullable)(NSError *_Nullable))completionHandler;

    Swift

    func unassignPrivateIpAddresses(_ request: AWSEC2UnassignPrivateIpAddressesRequest) async throws

    Parameters

    request

    A container for the necessary parameters to execute the UnassignPrivateIpAddresses service method.

    completionHandler

    The completion handler to call when the load request is complete. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Unassigns secondary private IPv4 addresses from a private NAT gateway. You cannot unassign your primary private IP. For more information, see Edit secondary IP address associations in the Amazon VPC User Guide.

    While unassigning is in progress, you cannot assign/unassign additional IP addresses while the connections are being drained. You are, however, allowed to delete the NAT gateway.

    A private IP address will only be released at the end of MaxDrainDurationSeconds. The private IP addresses stay associated and support the existing connections, but do not support any new connections (new connections are distributed across the remaining assigned private IP address). After the existing connections drain out, the private IP addresses are released.

    See

    AWSEC2UnassignPrivateNatGatewayAddressRequest

    See

    AWSEC2UnassignPrivateNatGatewayAddressResult

    Declaration

    Objective-C

    - (id)unassignPrivateNatGatewayAddress:
        (nonnull AWSEC2UnassignPrivateNatGatewayAddressRequest *)request;

    Swift

    func unassignPrivateNatGatewayAddress(_ request: AWSEC2UnassignPrivateNatGatewayAddressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the UnassignPrivateNatGatewayAddress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2UnassignPrivateNatGatewayAddressResult.

  • Unassigns secondary private IPv4 addresses from a private NAT gateway. You cannot unassign your primary private IP. For more information, see Edit secondary IP address associations in the Amazon VPC User Guide.

    While unassigning is in progress, you cannot assign/unassign additional IP addresses while the connections are being drained. You are, however, allowed to delete the NAT gateway.

    A private IP address will only be released at the end of MaxDrainDurationSeconds. The private IP addresses stay associated and support the existing connections, but do not support any new connections (new connections are distributed across the remaining assigned private IP address). After the existing connections drain out, the private IP addresses are released.

    See

    AWSEC2UnassignPrivateNatGatewayAddressRequest

    See

    AWSEC2UnassignPrivateNatGatewayAddressResult

    Declaration

    Objective-C

    - (void)unassignPrivateNatGatewayAddress:
                (nonnull AWSEC2UnassignPrivateNatGatewayAddressRequest *)request
                           completionHandler:
                               (void (^_Nullable)(
                                   AWSEC2UnassignPrivateNatGatewayAddressResult
                                       *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func unassignPrivateNatGatewayAddress(_ request: AWSEC2UnassignPrivateNatGatewayAddressRequest) async throws -> AWSEC2UnassignPrivateNatGatewayAddressResult

    Parameters

    request

    A container for the necessary parameters to execute the UnassignPrivateNatGatewayAddress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode but still in the cooling-off period. You can’t unlock a snapshot that is locked in compliance mode after the cooling-off period has expired.

    See

    AWSEC2UnlockSnapshotRequest

    See

    AWSEC2UnlockSnapshotResult

    Declaration

    Objective-C

    - (id)unlockSnapshot:(nonnull AWSEC2UnlockSnapshotRequest *)request;

    Swift

    func unlockSnapshot(_ request: AWSEC2UnlockSnapshotRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the UnlockSnapshot service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2UnlockSnapshotResult.

  • Unlocks a snapshot that is locked in governance mode or that is locked in compliance mode but still in the cooling-off period. You can’t unlock a snapshot that is locked in compliance mode after the cooling-off period has expired.

    See

    AWSEC2UnlockSnapshotRequest

    See

    AWSEC2UnlockSnapshotResult

    Declaration

    Objective-C

    - (void)unlockSnapshot:(nonnull AWSEC2UnlockSnapshotRequest *)request
         completionHandler:(void (^_Nullable)(AWSEC2UnlockSnapshotResult *_Nullable,
                                              NSError *_Nullable))completionHandler;

    Swift

    func unlockSnapshot(_ request: AWSEC2UnlockSnapshotRequest) async throws -> AWSEC2UnlockSnapshotResult

    Parameters

    request

    A container for the necessary parameters to execute the UnlockSnapshot service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Disables detailed monitoring for a running instance. For more information, see Monitoring your instances and volumes in the Amazon EC2 User Guide.

    See

    AWSEC2UnmonitorInstancesRequest

    See

    AWSEC2UnmonitorInstancesResult

    Declaration

    Objective-C

    - (id)unmonitorInstances:(nonnull AWSEC2UnmonitorInstancesRequest *)request;

    Swift

    func unmonitorInstances(_ request: AWSEC2UnmonitorInstancesRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the UnmonitorInstances service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2UnmonitorInstancesResult.

  • Disables detailed monitoring for a running instance. For more information, see Monitoring your instances and volumes in the Amazon EC2 User Guide.

    See

    AWSEC2UnmonitorInstancesRequest

    See

    AWSEC2UnmonitorInstancesResult

    Declaration

    Objective-C

    - (void)unmonitorInstances:(nonnull AWSEC2UnmonitorInstancesRequest *)request
             completionHandler:
                 (void (^_Nullable)(AWSEC2UnmonitorInstancesResult *_Nullable,
                                    NSError *_Nullable))completionHandler;

    Swift

    func unmonitorInstances(_ request: AWSEC2UnmonitorInstancesRequest) async throws -> AWSEC2UnmonitorInstancesResult

    Parameters

    request

    A container for the necessary parameters to execute the UnmonitorInstances service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.

    See

    AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest

    See

    AWSEC2UpdateSecurityGroupRuleDescriptionsEgressResult

    Declaration

    Objective-C

    - (id)updateSecurityGroupRuleDescriptionsEgress:
        (nonnull AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest *)request;

    Swift

    func updateSecurityGroupRuleDescriptionsEgress(_ request: AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the UpdateSecurityGroupRuleDescriptionsEgress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2UpdateSecurityGroupRuleDescriptionsEgressResult.

  • Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.

    See

    AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest

    See

    AWSEC2UpdateSecurityGroupRuleDescriptionsEgressResult

    Declaration

    Objective-C

    - (void)
        updateSecurityGroupRuleDescriptionsEgress:
            (nonnull AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest *)
                request
                                completionHandler:
                                    (void (^_Nullable)(
                                        AWSEC2UpdateSecurityGroupRuleDescriptionsEgressResult
                                            *_Nullable,
                                        NSError *_Nullable))completionHandler;

    Swift

    func updateSecurityGroupRuleDescriptionsEgress(_ request: AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest) async throws -> AWSEC2UpdateSecurityGroupRuleDescriptionsEgressResult

    Parameters

    request

    A container for the necessary parameters to execute the UpdateSecurityGroupRuleDescriptionsEgress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.

    See

    AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest

    See

    AWSEC2UpdateSecurityGroupRuleDescriptionsIngressResult

    Declaration

    Objective-C

    - (id)updateSecurityGroupRuleDescriptionsIngress:
        (nonnull AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest *)request;

    Swift

    func updateSecurityGroupRuleDescriptionsIngress(_ request: AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the UpdateSecurityGroupRuleDescriptionsIngress service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2UpdateSecurityGroupRuleDescriptionsIngressResult.

  • Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.

    See

    AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest

    See

    AWSEC2UpdateSecurityGroupRuleDescriptionsIngressResult

    Declaration

    Objective-C

    - (void)
        updateSecurityGroupRuleDescriptionsIngress:
            (nonnull AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest *)
                request
                                 completionHandler:
                                     (void (^_Nullable)(
                                         AWSEC2UpdateSecurityGroupRuleDescriptionsIngressResult
                                             *_Nullable,
                                         NSError *_Nullable))completionHandler;

    Swift

    func updateSecurityGroupRuleDescriptionsIngress(_ request: AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest) async throws -> AWSEC2UpdateSecurityGroupRuleDescriptionsIngressResult

    Parameters

    request

    A container for the necessary parameters to execute the UpdateSecurityGroupRuleDescriptionsIngress service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.

  • Stops advertising an address range that is provisioned as an address pool.

    You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

    It can take a few minutes before traffic to the specified addresses stops routing to Amazon Web Services because of BGP propagation delays.

    See

    AWSEC2WithdrawByoipCidrRequest

    See

    AWSEC2WithdrawByoipCidrResult

    Declaration

    Objective-C

    - (id)withdrawByoipCidr:(nonnull AWSEC2WithdrawByoipCidrRequest *)request;

    Swift

    func withdrawByoipCidr(_ request: AWSEC2WithdrawByoipCidrRequest) -> Any!

    Parameters

    request

    A container for the necessary parameters to execute the WithdrawByoipCidr service method.

    Return Value

    An instance of AWSTask. On successful execution, task.result will contain an instance of AWSEC2WithdrawByoipCidrResult.

  • Stops advertising an address range that is provisioned as an address pool.

    You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.

    It can take a few minutes before traffic to the specified addresses stops routing to Amazon Web Services because of BGP propagation delays.

    See

    AWSEC2WithdrawByoipCidrRequest

    See

    AWSEC2WithdrawByoipCidrResult

    Declaration

    Objective-C

    - (void)withdrawByoipCidr:(nonnull AWSEC2WithdrawByoipCidrRequest *)request
            completionHandler:
                (void (^_Nullable)(AWSEC2WithdrawByoipCidrResult *_Nullable,
                                   NSError *_Nullable))completionHandler;

    Swift

    func withdrawByoipCidr(_ request: AWSEC2WithdrawByoipCidrRequest) async throws -> AWSEC2WithdrawByoipCidrResult

    Parameters

    request

    A container for the necessary parameters to execute the WithdrawByoipCidr service method.

    completionHandler

    The completion handler to call when the load request is complete. response - A response object, or nil if the request failed. error - An error object that indicates why the request failed, or nil if the request was successful.