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

Description

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.

Synopsis

Creating a Request

data UpdateSecurityGroupRuleDescriptionsIngress Source #

Constructors

UpdateSecurityGroupRuleDescriptionsIngress' 

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.

  • groupId :: Maybe Text

    The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

  • groupName :: Maybe Text
    EC2-Classic, default VPC
    The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.
  • ipPermissions :: Maybe [IpPermission]

    The IP permissions for the security group rule. You must specify either IP permissions or a description.

  • securityGroupRuleDescriptions :: Maybe [SecurityGroupRuleDescription]
    VPC only
    The description for the ingress security group rules. You must specify either a description or IP permissions.

Instances

Instances details
ToHeaders UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

ToPath UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

ToQuery UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

AWSRequest UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

Generic UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

Read UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

Show UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

NFData UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

Eq UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

Hashable UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

type AWSResponse UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

type Rep UpdateSecurityGroupRuleDescriptionsIngress Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

type Rep UpdateSecurityGroupRuleDescriptionsIngress = D1 ('MetaData "UpdateSecurityGroupRuleDescriptionsIngress" "Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "UpdateSecurityGroupRuleDescriptionsIngress'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "groupId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "groupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "ipPermissions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [IpPermission])) :*: S1 ('MetaSel ('Just "securityGroupRuleDescriptions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SecurityGroupRuleDescription]))))))

newUpdateSecurityGroupRuleDescriptionsIngress :: UpdateSecurityGroupRuleDescriptionsIngress Source #

Create a value of UpdateSecurityGroupRuleDescriptionsIngress 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:UpdateSecurityGroupRuleDescriptionsIngress', updateSecurityGroupRuleDescriptionsIngress_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.

UpdateSecurityGroupRuleDescriptionsIngress, updateSecurityGroupRuleDescriptionsIngress_groupId - The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

UpdateSecurityGroupRuleDescriptionsIngress, updateSecurityGroupRuleDescriptionsIngress_groupName - [EC2-Classic, default VPC] The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

UpdateSecurityGroupRuleDescriptionsIngress, updateSecurityGroupRuleDescriptionsIngress_ipPermissions - The IP permissions for the security group rule. You must specify either IP permissions or a description.

$sel:securityGroupRuleDescriptions:UpdateSecurityGroupRuleDescriptionsIngress', updateSecurityGroupRuleDescriptionsIngress_securityGroupRuleDescriptions - [VPC only] The description for the ingress security group rules. You must specify either a description or IP permissions.

Request Lenses

updateSecurityGroupRuleDescriptionsIngress_dryRun :: Lens' UpdateSecurityGroupRuleDescriptionsIngress (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.

updateSecurityGroupRuleDescriptionsIngress_groupId :: Lens' UpdateSecurityGroupRuleDescriptionsIngress (Maybe Text) Source #

The ID of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

updateSecurityGroupRuleDescriptionsIngress_groupName :: Lens' UpdateSecurityGroupRuleDescriptionsIngress (Maybe Text) Source #

EC2-Classic, default VPC
The name of the security group. You must specify either the security group ID or the security group name in the request. For security groups in a nondefault VPC, you must specify the security group ID.

updateSecurityGroupRuleDescriptionsIngress_ipPermissions :: Lens' UpdateSecurityGroupRuleDescriptionsIngress (Maybe [IpPermission]) Source #

The IP permissions for the security group rule. You must specify either IP permissions or a description.

updateSecurityGroupRuleDescriptionsIngress_securityGroupRuleDescriptions :: Lens' UpdateSecurityGroupRuleDescriptionsIngress (Maybe [SecurityGroupRuleDescription]) Source #

VPC only
The description for the ingress security group rules. You must specify either a description or IP permissions.

Destructuring the Response

data UpdateSecurityGroupRuleDescriptionsIngressResponse Source #

Constructors

UpdateSecurityGroupRuleDescriptionsIngressResponse' 

Fields

Instances

Instances details
Generic UpdateSecurityGroupRuleDescriptionsIngressResponse Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

Read UpdateSecurityGroupRuleDescriptionsIngressResponse Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

Show UpdateSecurityGroupRuleDescriptionsIngressResponse Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

NFData UpdateSecurityGroupRuleDescriptionsIngressResponse Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

Eq UpdateSecurityGroupRuleDescriptionsIngressResponse Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

type Rep UpdateSecurityGroupRuleDescriptionsIngressResponse Source # 
Instance details

Defined in Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress

type Rep UpdateSecurityGroupRuleDescriptionsIngressResponse = D1 ('MetaData "UpdateSecurityGroupRuleDescriptionsIngressResponse" "Amazonka.EC2.UpdateSecurityGroupRuleDescriptionsIngress" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "UpdateSecurityGroupRuleDescriptionsIngressResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "return'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

Response Lenses