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 security group. You use security groups to control access to non-VPC clusters.
For information about managing security groups, go to Amazon Redshift Cluster Security Groups in the Amazon Redshift Cluster Management Guide.
Synopsis
- data CreateClusterSecurityGroup = CreateClusterSecurityGroup' {
- tags :: Maybe [Tag]
- clusterSecurityGroupName :: Text
- description :: Text
- newCreateClusterSecurityGroup :: Text -> Text -> CreateClusterSecurityGroup
- createClusterSecurityGroup_tags :: Lens' CreateClusterSecurityGroup (Maybe [Tag])
- createClusterSecurityGroup_clusterSecurityGroupName :: Lens' CreateClusterSecurityGroup Text
- createClusterSecurityGroup_description :: Lens' CreateClusterSecurityGroup Text
- data CreateClusterSecurityGroupResponse = CreateClusterSecurityGroupResponse' {}
- newCreateClusterSecurityGroupResponse :: Int -> CreateClusterSecurityGroupResponse
- createClusterSecurityGroupResponse_clusterSecurityGroup :: Lens' CreateClusterSecurityGroupResponse (Maybe ClusterSecurityGroup)
- createClusterSecurityGroupResponse_httpStatus :: Lens' CreateClusterSecurityGroupResponse Int
Creating a Request
data CreateClusterSecurityGroup Source #
See: newCreateClusterSecurityGroup
smart constructor.
CreateClusterSecurityGroup' | |
|
Instances
newCreateClusterSecurityGroup Source #
:: Text | |
-> Text | |
-> CreateClusterSecurityGroup |
Create a value of CreateClusterSecurityGroup
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:CreateClusterSecurityGroup'
, createClusterSecurityGroup_tags
- A list of tag instances.
$sel:clusterSecurityGroupName:CreateClusterSecurityGroup'
, createClusterSecurityGroup_clusterSecurityGroupName
- The name for the security 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 security groups that are created by your Amazon Web Services account.
Example: examplesecuritygroup
$sel:description:CreateClusterSecurityGroup'
, createClusterSecurityGroup_description
- A description for the security group.
Request Lenses
createClusterSecurityGroup_tags :: Lens' CreateClusterSecurityGroup (Maybe [Tag]) Source #
A list of tag instances.
createClusterSecurityGroup_clusterSecurityGroupName :: Lens' CreateClusterSecurityGroup Text Source #
The name for the security 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 security groups that are created by your Amazon Web Services account.
Example: examplesecuritygroup
createClusterSecurityGroup_description :: Lens' CreateClusterSecurityGroup Text Source #
A description for the security group.
Destructuring the Response
data CreateClusterSecurityGroupResponse Source #
See: newCreateClusterSecurityGroupResponse
smart constructor.
CreateClusterSecurityGroupResponse' | |
|
Instances
Eq CreateClusterSecurityGroupResponse Source # | |
Read CreateClusterSecurityGroupResponse Source # | |
Show CreateClusterSecurityGroupResponse Source # | |
Generic CreateClusterSecurityGroupResponse Source # | |
NFData CreateClusterSecurityGroupResponse Source # | |
Defined in Amazonka.Redshift.CreateClusterSecurityGroup rnf :: CreateClusterSecurityGroupResponse -> () # | |
type Rep CreateClusterSecurityGroupResponse Source # | |
Defined in Amazonka.Redshift.CreateClusterSecurityGroup type Rep CreateClusterSecurityGroupResponse = D1 ('MetaData "CreateClusterSecurityGroupResponse" "Amazonka.Redshift.CreateClusterSecurityGroup" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "CreateClusterSecurityGroupResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clusterSecurityGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ClusterSecurityGroup)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newCreateClusterSecurityGroupResponse Source #
Create a value of CreateClusterSecurityGroupResponse
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:clusterSecurityGroup:CreateClusterSecurityGroupResponse'
, createClusterSecurityGroupResponse_clusterSecurityGroup
- Undocumented member.
$sel:httpStatus:CreateClusterSecurityGroupResponse'
, createClusterSecurityGroupResponse_httpStatus
- The response's http status code.
Response Lenses
createClusterSecurityGroupResponse_clusterSecurityGroup :: Lens' CreateClusterSecurityGroupResponse (Maybe ClusterSecurityGroup) Source #
Undocumented member.
createClusterSecurityGroupResponse_httpStatus :: Lens' CreateClusterSecurityGroupResponse Int Source #
The response's http status code.