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

Description

Creates a new Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) when creating Amazon Redshift subnet group.

For information about subnet groups, go to Amazon Redshift Cluster Subnet Groups in the Amazon Redshift Cluster Management Guide.

Synopsis

Creating a Request

data CreateClusterSubnetGroup Source #

See: newCreateClusterSubnetGroup smart constructor.

Constructors

CreateClusterSubnetGroup' 

Fields

  • tags :: Maybe [Tag]

    A list of tag instances.

  • clusterSubnetGroupName :: Text

    The name for the subnet group. Amazon Redshift stores the value as a lowercase string.

    Constraints:

    • Must contain no more than 255 alphanumeric characters or hyphens.
    • Must not be "Default".
    • Must be unique for all subnet groups that are created by your Amazon Web Services account.

    Example: examplesubnetgroup

  • description :: Text

    A description for the subnet group.

  • subnetIds :: [Text]

    An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.

Instances

Instances details
Eq CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

Read CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

Show CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

Generic CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

Associated Types

type Rep CreateClusterSubnetGroup :: Type -> Type #

NFData CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

Hashable CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

AWSRequest CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

ToHeaders CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

ToPath CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

ToQuery CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

type Rep CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

type Rep CreateClusterSubnetGroup = D1 ('MetaData "CreateClusterSubnetGroup" "Amazonka.Redshift.CreateClusterSubnetGroup" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "CreateClusterSubnetGroup'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag])) :*: S1 ('MetaSel ('Just "clusterSubnetGroupName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "subnetIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Text]))))
type AWSResponse CreateClusterSubnetGroup Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

newCreateClusterSubnetGroup Source #

Create a value of CreateClusterSubnetGroup 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:tags:CreateClusterSubnetGroup', createClusterSubnetGroup_tags - A list of tag instances.

$sel:clusterSubnetGroupName:CreateClusterSubnetGroup', createClusterSubnetGroup_clusterSubnetGroupName - The name for the subnet group. Amazon Redshift stores the value as a lowercase string.

Constraints:

  • Must contain no more than 255 alphanumeric characters or hyphens.
  • Must not be "Default".
  • Must be unique for all subnet groups that are created by your Amazon Web Services account.

Example: examplesubnetgroup

$sel:description:CreateClusterSubnetGroup', createClusterSubnetGroup_description - A description for the subnet group.

$sel:subnetIds:CreateClusterSubnetGroup', createClusterSubnetGroup_subnetIds - An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.

Request Lenses

createClusterSubnetGroup_clusterSubnetGroupName :: Lens' CreateClusterSubnetGroup Text Source #

The name for the subnet group. Amazon Redshift stores the value as a lowercase string.

Constraints:

  • Must contain no more than 255 alphanumeric characters or hyphens.
  • Must not be "Default".
  • Must be unique for all subnet groups that are created by your Amazon Web Services account.

Example: examplesubnetgroup

createClusterSubnetGroup_subnetIds :: Lens' CreateClusterSubnetGroup [Text] Source #

An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.

Destructuring the Response

data CreateClusterSubnetGroupResponse Source #

See: newCreateClusterSubnetGroupResponse smart constructor.

Constructors

CreateClusterSubnetGroupResponse' 

Fields

Instances

Instances details
Eq CreateClusterSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

Read CreateClusterSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

Show CreateClusterSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

Generic CreateClusterSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

Associated Types

type Rep CreateClusterSubnetGroupResponse :: Type -> Type #

NFData CreateClusterSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

type Rep CreateClusterSubnetGroupResponse Source # 
Instance details

Defined in Amazonka.Redshift.CreateClusterSubnetGroup

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

newCreateClusterSubnetGroupResponse Source #

Create a value of CreateClusterSubnetGroupResponse 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:clusterSubnetGroup:CreateClusterSubnetGroupResponse', createClusterSubnetGroupResponse_clusterSubnetGroup - Undocumented member.

$sel:httpStatus:CreateClusterSubnetGroupResponse', createClusterSubnetGroupResponse_httpStatus - The response's http status code.

Response Lenses