| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.DMS.CreateReplicationSubnetGroup
Description
Creates a replication subnet group given a list of the subnet IDs in a VPC.
The VPC needs to have at least one subnet in at least two availability
zones in the Amazon Web Services Region, otherwise the service will
throw a ReplicationSubnetGroupDoesNotCoverEnoughAZs exception.
Synopsis
- data CreateReplicationSubnetGroup = CreateReplicationSubnetGroup' {}
- newCreateReplicationSubnetGroup :: Text -> Text -> CreateReplicationSubnetGroup
- createReplicationSubnetGroup_tags :: Lens' CreateReplicationSubnetGroup (Maybe [Tag])
- createReplicationSubnetGroup_replicationSubnetGroupIdentifier :: Lens' CreateReplicationSubnetGroup Text
- createReplicationSubnetGroup_replicationSubnetGroupDescription :: Lens' CreateReplicationSubnetGroup Text
- createReplicationSubnetGroup_subnetIds :: Lens' CreateReplicationSubnetGroup [Text]
- data CreateReplicationSubnetGroupResponse = CreateReplicationSubnetGroupResponse' {}
- newCreateReplicationSubnetGroupResponse :: Int -> CreateReplicationSubnetGroupResponse
- createReplicationSubnetGroupResponse_replicationSubnetGroup :: Lens' CreateReplicationSubnetGroupResponse (Maybe ReplicationSubnetGroup)
- createReplicationSubnetGroupResponse_httpStatus :: Lens' CreateReplicationSubnetGroupResponse Int
Creating a Request
data CreateReplicationSubnetGroup Source #
See: newCreateReplicationSubnetGroup smart constructor.
Constructors
| CreateReplicationSubnetGroup' | |
Fields
| |
Instances
newCreateReplicationSubnetGroup Source #
Arguments
| :: Text | |
| -> Text | |
| -> CreateReplicationSubnetGroup |
Create a value of CreateReplicationSubnetGroup 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:CreateReplicationSubnetGroup', createReplicationSubnetGroup_tags - One or more tags to be assigned to the subnet group.
CreateReplicationSubnetGroup, createReplicationSubnetGroup_replicationSubnetGroupIdentifier - The name for the replication subnet group. This value is stored as a
lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens. Must not be "default".
Example: mySubnetgroup
CreateReplicationSubnetGroup, createReplicationSubnetGroup_replicationSubnetGroupDescription - The description for the subnet group.
$sel:subnetIds:CreateReplicationSubnetGroup', createReplicationSubnetGroup_subnetIds - One or more subnet IDs to be assigned to the subnet group.
Request Lenses
createReplicationSubnetGroup_tags :: Lens' CreateReplicationSubnetGroup (Maybe [Tag]) Source #
One or more tags to be assigned to the subnet group.
createReplicationSubnetGroup_replicationSubnetGroupIdentifier :: Lens' CreateReplicationSubnetGroup Text Source #
The name for the replication subnet group. This value is stored as a lowercase string.
Constraints: Must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens. Must not be "default".
Example: mySubnetgroup
createReplicationSubnetGroup_replicationSubnetGroupDescription :: Lens' CreateReplicationSubnetGroup Text Source #
The description for the subnet group.
createReplicationSubnetGroup_subnetIds :: Lens' CreateReplicationSubnetGroup [Text] Source #
One or more subnet IDs to be assigned to the subnet group.
Destructuring the Response
data CreateReplicationSubnetGroupResponse Source #
See: newCreateReplicationSubnetGroupResponse smart constructor.
Constructors
| CreateReplicationSubnetGroupResponse' | |
Fields
| |
Instances
newCreateReplicationSubnetGroupResponse Source #
Arguments
| :: Int | |
| -> CreateReplicationSubnetGroupResponse |
Create a value of CreateReplicationSubnetGroupResponse 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:
CreateReplicationSubnetGroupResponse, createReplicationSubnetGroupResponse_replicationSubnetGroup - The replication subnet group that was created.
$sel:httpStatus:CreateReplicationSubnetGroupResponse', createReplicationSubnetGroupResponse_httpStatus - The response's http status code.
Response Lenses
createReplicationSubnetGroupResponse_replicationSubnetGroup :: Lens' CreateReplicationSubnetGroupResponse (Maybe ReplicationSubnetGroup) Source #
The replication subnet group that was created.
createReplicationSubnetGroupResponse_httpStatus :: Lens' CreateReplicationSubnetGroupResponse Int Source #
The response's http status code.