Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data CreateClusterSubnetGroup = CreateClusterSubnetGroup' {
- tags :: Maybe [Tag]
- clusterSubnetGroupName :: Text
- description :: Text
- subnetIds :: [Text]
- newCreateClusterSubnetGroup :: Text -> Text -> CreateClusterSubnetGroup
- createClusterSubnetGroup_tags :: Lens' CreateClusterSubnetGroup (Maybe [Tag])
- createClusterSubnetGroup_clusterSubnetGroupName :: Lens' CreateClusterSubnetGroup Text
- createClusterSubnetGroup_description :: Lens' CreateClusterSubnetGroup Text
- createClusterSubnetGroup_subnetIds :: Lens' CreateClusterSubnetGroup [Text]
- data CreateClusterSubnetGroupResponse = CreateClusterSubnetGroupResponse' {}
- newCreateClusterSubnetGroupResponse :: Int -> CreateClusterSubnetGroupResponse
- createClusterSubnetGroupResponse_clusterSubnetGroup :: Lens' CreateClusterSubnetGroupResponse (Maybe ClusterSubnetGroup)
- createClusterSubnetGroupResponse_httpStatus :: Lens' CreateClusterSubnetGroupResponse Int
Creating a Request
data CreateClusterSubnetGroup Source #
See: newCreateClusterSubnetGroup
smart constructor.
CreateClusterSubnetGroup' | |
|
Instances
newCreateClusterSubnetGroup Source #
:: Text | |
-> Text | |
-> CreateClusterSubnetGroup |
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_tags :: Lens' CreateClusterSubnetGroup (Maybe [Tag]) Source #
A list of tag instances.
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_description :: Lens' CreateClusterSubnetGroup Text Source #
A description for the subnet group.
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.
CreateClusterSubnetGroupResponse' | |
|
Instances
Eq CreateClusterSubnetGroupResponse Source # | |
Read CreateClusterSubnetGroupResponse Source # | |
Show CreateClusterSubnetGroupResponse Source # | |
Generic CreateClusterSubnetGroupResponse Source # | |
NFData CreateClusterSubnetGroupResponse Source # | |
Defined in Amazonka.Redshift.CreateClusterSubnetGroup rnf :: CreateClusterSubnetGroupResponse -> () # | |
type Rep CreateClusterSubnetGroupResponse Source # | |
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
createClusterSubnetGroupResponse_clusterSubnetGroup :: Lens' CreateClusterSubnetGroupResponse (Maybe ClusterSubnetGroup) Source #
Undocumented member.
createClusterSubnetGroupResponse_httpStatus :: Lens' CreateClusterSubnetGroupResponse Int Source #
The response's http status code.