amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.TerminateClientVpnConnections

Description

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.

Synopsis

Creating a Request

data TerminateClientVpnConnections Source #

See: newTerminateClientVpnConnections smart constructor.

Constructors

TerminateClientVpnConnections' 

Fields

  • connectionId :: Maybe Text

    The ID of the client connection to be terminated.

  • dryRun :: Maybe Bool

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

  • username :: Maybe Text

    The name of the user who initiated the connection. Use this option to terminate all active connections for the specified user. This option can only be used if the user has established up to five connections.

  • clientVpnEndpointId :: Text

    The ID of the Client VPN endpoint to which the client is connected.

Instances

Instances details
ToHeaders TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

ToPath TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

ToQuery TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

AWSRequest TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

Generic TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

Associated Types

type Rep TerminateClientVpnConnections :: Type -> Type #

Read TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

Show TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

NFData TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

Eq TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

Hashable TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

type AWSResponse TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

type Rep TerminateClientVpnConnections Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

type Rep TerminateClientVpnConnections = D1 ('MetaData "TerminateClientVpnConnections" "Amazonka.EC2.TerminateClientVpnConnections" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "TerminateClientVpnConnections'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "connectionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clientVpnEndpointId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newTerminateClientVpnConnections Source #

Create a value of TerminateClientVpnConnections with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

TerminateClientVpnConnections, terminateClientVpnConnections_connectionId - The ID of the client connection to be terminated.

$sel:dryRun:TerminateClientVpnConnections', terminateClientVpnConnections_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

TerminateClientVpnConnections, terminateClientVpnConnections_username - The name of the user who initiated the connection. Use this option to terminate all active connections for the specified user. This option can only be used if the user has established up to five connections.

TerminateClientVpnConnections, terminateClientVpnConnections_clientVpnEndpointId - The ID of the Client VPN endpoint to which the client is connected.

Request Lenses

terminateClientVpnConnections_dryRun :: Lens' TerminateClientVpnConnections (Maybe Bool) Source #

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

terminateClientVpnConnections_username :: Lens' TerminateClientVpnConnections (Maybe Text) Source #

The name of the user who initiated the connection. Use this option to terminate all active connections for the specified user. This option can only be used if the user has established up to five connections.

terminateClientVpnConnections_clientVpnEndpointId :: Lens' TerminateClientVpnConnections Text Source #

The ID of the Client VPN endpoint to which the client is connected.

Destructuring the Response

data TerminateClientVpnConnectionsResponse Source #

Constructors

TerminateClientVpnConnectionsResponse' 

Fields

Instances

Instances details
Generic TerminateClientVpnConnectionsResponse Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

Read TerminateClientVpnConnectionsResponse Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

Show TerminateClientVpnConnectionsResponse Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

NFData TerminateClientVpnConnectionsResponse Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

Eq TerminateClientVpnConnectionsResponse Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

type Rep TerminateClientVpnConnectionsResponse Source # 
Instance details

Defined in Amazonka.EC2.TerminateClientVpnConnections

type Rep TerminateClientVpnConnectionsResponse = D1 ('MetaData "TerminateClientVpnConnectionsResponse" "Amazonka.EC2.TerminateClientVpnConnections" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "TerminateClientVpnConnectionsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientVpnEndpointId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "connectionStatuses") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TerminateConnectionStatus]))) :*: (S1 ('MetaSel ('Just "username") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newTerminateClientVpnConnectionsResponse Source #

Create a value of TerminateClientVpnConnectionsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

TerminateClientVpnConnections, terminateClientVpnConnectionsResponse_clientVpnEndpointId - The ID of the Client VPN endpoint.

$sel:connectionStatuses:TerminateClientVpnConnectionsResponse', terminateClientVpnConnectionsResponse_connectionStatuses - The current state of the client connections.

TerminateClientVpnConnections, terminateClientVpnConnectionsResponse_username - The user who established the terminated client connections.

$sel:httpStatus:TerminateClientVpnConnectionsResponse', terminateClientVpnConnectionsResponse_httpStatus - The response's http status code.

Response Lenses

terminateClientVpnConnectionsResponse_username :: Lens' TerminateClientVpnConnectionsResponse (Maybe Text) Source #

The user who established the terminated client connections.