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.ApplySecurityGroupsToClientVpnTargetNetwork

Description

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.

Synopsis

Creating a Request

data ApplySecurityGroupsToClientVpnTargetNetwork Source #

Constructors

ApplySecurityGroupsToClientVpnTargetNetwork' 

Fields

  • 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.

  • clientVpnEndpointId :: Text

    The ID of the Client VPN endpoint.

  • vpcId :: Text

    The ID of the VPC in which the associated target network is located.

  • securityGroupIds :: [Text]

    The IDs of the security groups to apply to the associated target network. Up to 5 security groups can be applied to an associated target network.

Instances

Instances details
ToHeaders ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

ToPath ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

ToQuery ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

AWSRequest ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

Generic ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

Read ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

Show ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

NFData ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

Eq ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

Hashable ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

type AWSResponse ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

type Rep ApplySecurityGroupsToClientVpnTargetNetwork Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

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

newApplySecurityGroupsToClientVpnTargetNetwork Source #

Create a value of ApplySecurityGroupsToClientVpnTargetNetwork 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:

$sel:dryRun:ApplySecurityGroupsToClientVpnTargetNetwork', applySecurityGroupsToClientVpnTargetNetwork_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.

ApplySecurityGroupsToClientVpnTargetNetwork, applySecurityGroupsToClientVpnTargetNetwork_clientVpnEndpointId - The ID of the Client VPN endpoint.

ApplySecurityGroupsToClientVpnTargetNetwork, applySecurityGroupsToClientVpnTargetNetwork_vpcId - The ID of the VPC in which the associated target network is located.

ApplySecurityGroupsToClientVpnTargetNetwork, applySecurityGroupsToClientVpnTargetNetwork_securityGroupIds - The IDs of the security groups to apply to the associated target network. Up to 5 security groups can be applied to an associated target network.

Request Lenses

applySecurityGroupsToClientVpnTargetNetwork_dryRun :: Lens' ApplySecurityGroupsToClientVpnTargetNetwork (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.

applySecurityGroupsToClientVpnTargetNetwork_vpcId :: Lens' ApplySecurityGroupsToClientVpnTargetNetwork Text Source #

The ID of the VPC in which the associated target network is located.

applySecurityGroupsToClientVpnTargetNetwork_securityGroupIds :: Lens' ApplySecurityGroupsToClientVpnTargetNetwork [Text] Source #

The IDs of the security groups to apply to the associated target network. Up to 5 security groups can be applied to an associated target network.

Destructuring the Response

data ApplySecurityGroupsToClientVpnTargetNetworkResponse Source #

Constructors

ApplySecurityGroupsToClientVpnTargetNetworkResponse' 

Fields

Instances

Instances details
Generic ApplySecurityGroupsToClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

Read ApplySecurityGroupsToClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

Show ApplySecurityGroupsToClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

NFData ApplySecurityGroupsToClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

Eq ApplySecurityGroupsToClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

type Rep ApplySecurityGroupsToClientVpnTargetNetworkResponse Source # 
Instance details

Defined in Amazonka.EC2.ApplySecurityGroupsToClientVpnTargetNetwork

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

Response Lenses