libZSservicesZSamazonka-redshiftZSamazonka-redshift
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

Description

Adds an inbound (ingress) rule to an Amazon Redshift security group. Depending on whether the application accessing your cluster is running on the Internet or an Amazon EC2 instance, you can authorize inbound access to either a Classless Interdomain Routing (CIDR)/Internet Protocol (IP) range or to an Amazon EC2 security group. You can add as many as 20 ingress rules to an Amazon Redshift security group.

If you authorize access to an Amazon EC2 security group, specify EC2SecurityGroupName and EC2SecurityGroupOwnerId. The Amazon EC2 security group and Amazon Redshift cluster must be in the same Amazon Web Services Region.

If you authorize access to a CIDR/IP address range, specify CIDRIP. For an overview of CIDR blocks, see the Wikipedia article on Classless Inter-Domain Routing.

You must also associate the security group with a cluster so that clients running on these IP addresses or the EC2 instance are authorized to connect to the cluster. For information about managing security groups, go to Working with Security Groups in the Amazon Redshift Cluster Management Guide.

Synopsis

Creating a Request

data AuthorizeClusterSecurityGroupIngress Source #

Constructors

AuthorizeClusterSecurityGroupIngress' 

Fields

  • eC2SecurityGroupOwnerId :: Maybe Text

    The Amazon Web Services account number of the owner of the security group specified by the EC2SecurityGroupName parameter. The Amazon Web Services Access Key ID is not an acceptable value.

    Example: 111122223333

  • eC2SecurityGroupName :: Maybe Text

    The EC2 security group to be added the Amazon Redshift security group.

  • cidrip :: Maybe Text

    The IP range to be added the Amazon Redshift security group.

  • clusterSecurityGroupName :: Text

    The name of the security group to which the ingress rule is added.

Instances

Instances details
Eq AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

Read AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

Show AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

Generic AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

NFData AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

Hashable AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

AWSRequest AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

ToHeaders AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

ToPath AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

ToQuery AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

type Rep AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

type Rep AuthorizeClusterSecurityGroupIngress = D1 ('MetaData "AuthorizeClusterSecurityGroupIngress" "Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "AuthorizeClusterSecurityGroupIngress'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "eC2SecurityGroupOwnerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eC2SecurityGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "cidrip") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "clusterSecurityGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse AuthorizeClusterSecurityGroupIngress Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

newAuthorizeClusterSecurityGroupIngress Source #

Create a value of AuthorizeClusterSecurityGroupIngress 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:eC2SecurityGroupOwnerId:AuthorizeClusterSecurityGroupIngress', authorizeClusterSecurityGroupIngress_eC2SecurityGroupOwnerId - The Amazon Web Services account number of the owner of the security group specified by the EC2SecurityGroupName parameter. The Amazon Web Services Access Key ID is not an acceptable value.

Example: 111122223333

$sel:eC2SecurityGroupName:AuthorizeClusterSecurityGroupIngress', authorizeClusterSecurityGroupIngress_eC2SecurityGroupName - The EC2 security group to be added the Amazon Redshift security group.

$sel:cidrip:AuthorizeClusterSecurityGroupIngress', authorizeClusterSecurityGroupIngress_cidrip - The IP range to be added the Amazon Redshift security group.

$sel:clusterSecurityGroupName:AuthorizeClusterSecurityGroupIngress', authorizeClusterSecurityGroupIngress_clusterSecurityGroupName - The name of the security group to which the ingress rule is added.

Request Lenses

authorizeClusterSecurityGroupIngress_eC2SecurityGroupOwnerId :: Lens' AuthorizeClusterSecurityGroupIngress (Maybe Text) Source #

The Amazon Web Services account number of the owner of the security group specified by the EC2SecurityGroupName parameter. The Amazon Web Services Access Key ID is not an acceptable value.

Example: 111122223333

authorizeClusterSecurityGroupIngress_eC2SecurityGroupName :: Lens' AuthorizeClusterSecurityGroupIngress (Maybe Text) Source #

The EC2 security group to be added the Amazon Redshift security group.

authorizeClusterSecurityGroupIngress_cidrip :: Lens' AuthorizeClusterSecurityGroupIngress (Maybe Text) Source #

The IP range to be added the Amazon Redshift security group.

Destructuring the Response

data AuthorizeClusterSecurityGroupIngressResponse Source #

Instances

Instances details
Eq AuthorizeClusterSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

Read AuthorizeClusterSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

Show AuthorizeClusterSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

Generic AuthorizeClusterSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

NFData AuthorizeClusterSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

type Rep AuthorizeClusterSecurityGroupIngressResponse Source # 
Instance details

Defined in Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress

type Rep AuthorizeClusterSecurityGroupIngressResponse = D1 ('MetaData "AuthorizeClusterSecurityGroupIngressResponse" "Amazonka.Redshift.AuthorizeClusterSecurityGroupIngress" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "AuthorizeClusterSecurityGroupIngressResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clusterSecurityGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ClusterSecurityGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

Response Lenses