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 |
Creates a new instance.
Synopsis
- data CreateDBInstance = CreateDBInstance' {
- autoMinorVersionUpgrade :: Maybe Bool
- availabilityZone :: Maybe Text
- copyTagsToSnapshot :: Maybe Bool
- enablePerformanceInsights :: Maybe Bool
- performanceInsightsKMSKeyId :: Maybe Text
- preferredMaintenanceWindow :: Maybe Text
- promotionTier :: Maybe Int
- tags :: Maybe [Tag]
- dbInstanceIdentifier :: Text
- dbInstanceClass :: Text
- engine :: Text
- dbClusterIdentifier :: Text
- newCreateDBInstance :: Text -> Text -> Text -> Text -> CreateDBInstance
- createDBInstance_autoMinorVersionUpgrade :: Lens' CreateDBInstance (Maybe Bool)
- createDBInstance_availabilityZone :: Lens' CreateDBInstance (Maybe Text)
- createDBInstance_copyTagsToSnapshot :: Lens' CreateDBInstance (Maybe Bool)
- createDBInstance_enablePerformanceInsights :: Lens' CreateDBInstance (Maybe Bool)
- createDBInstance_performanceInsightsKMSKeyId :: Lens' CreateDBInstance (Maybe Text)
- createDBInstance_preferredMaintenanceWindow :: Lens' CreateDBInstance (Maybe Text)
- createDBInstance_promotionTier :: Lens' CreateDBInstance (Maybe Int)
- createDBInstance_tags :: Lens' CreateDBInstance (Maybe [Tag])
- createDBInstance_dbInstanceIdentifier :: Lens' CreateDBInstance Text
- createDBInstance_dbInstanceClass :: Lens' CreateDBInstance Text
- createDBInstance_engine :: Lens' CreateDBInstance Text
- createDBInstance_dbClusterIdentifier :: Lens' CreateDBInstance Text
- data CreateDBInstanceResponse = CreateDBInstanceResponse' {}
- newCreateDBInstanceResponse :: Int -> CreateDBInstanceResponse
- createDBInstanceResponse_dbInstance :: Lens' CreateDBInstanceResponse (Maybe DBInstance)
- createDBInstanceResponse_httpStatus :: Lens' CreateDBInstanceResponse Int
Creating a Request
data CreateDBInstance Source #
Represents the input to CreateDBInstance.
See: newCreateDBInstance
smart constructor.
CreateDBInstance' | |
|
Instances
:: Text | |
-> Text | |
-> Text | |
-> Text | |
-> CreateDBInstance |
Create a value of CreateDBInstance
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:
CreateDBInstance
, createDBInstance_autoMinorVersionUpgrade
- This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB
does not perform minor version upgrades regardless of the value set.
Default: false
CreateDBInstance
, createDBInstance_availabilityZone
- The Amazon EC2 Availability Zone that the instance is created in.
Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.
Example: us-east-1d
CreateDBInstance
, createDBInstance_copyTagsToSnapshot
- A value that indicates whether to copy tags from the DB instance to
snapshots of the DB instance. By default, tags are not copied.
$sel:enablePerformanceInsights:CreateDBInstance'
, createDBInstance_enablePerformanceInsights
- A value that indicates whether to enable Performance Insights for the DB
Instance. For more information, see
Using Amazon Performance Insights.
$sel:performanceInsightsKMSKeyId:CreateDBInstance'
, createDBInstance_performanceInsightsKMSKeyId
- The KMS key identifier for encryption of Performance Insights data.
The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services region.
CreateDBInstance
, createDBInstance_preferredMaintenanceWindow
- The time range each week during which system maintenance can occur, in
Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
CreateDBInstance
, createDBInstance_promotionTier
- A value that specifies the order in which an Amazon DocumentDB replica
is promoted to the primary instance after a failure of the existing
primary instance.
Default: 1
Valid values: 0-15
$sel:tags:CreateDBInstance'
, createDBInstance_tags
- The tags to be assigned to the instance. You can assign up to 10 tags to
an instance.
CreateDBInstance
, createDBInstance_dbInstanceIdentifier
- The instance identifier. This parameter is stored as a lowercase string.
Constraints:
- Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
Example: mydbinstance
CreateDBInstance
, createDBInstance_dbInstanceClass
- The compute and memory capacity of the instance; for example,
db.r5.large
.
CreateDBInstance
, createDBInstance_engine
- The name of the database engine to be used for this instance.
Valid value: docdb
CreateDBInstance
, createDBInstance_dbClusterIdentifier
- The identifier of the cluster that the instance will belong to.
Request Lenses
createDBInstance_autoMinorVersionUpgrade :: Lens' CreateDBInstance (Maybe Bool) Source #
This parameter does not apply to Amazon DocumentDB. Amazon DocumentDB does not perform minor version upgrades regardless of the value set.
Default: false
createDBInstance_availabilityZone :: Lens' CreateDBInstance (Maybe Text) Source #
The Amazon EC2 Availability Zone that the instance is created in.
Default: A random, system-chosen Availability Zone in the endpoint's Amazon Web Services Region.
Example: us-east-1d
createDBInstance_copyTagsToSnapshot :: Lens' CreateDBInstance (Maybe Bool) Source #
A value that indicates whether to copy tags from the DB instance to snapshots of the DB instance. By default, tags are not copied.
createDBInstance_enablePerformanceInsights :: Lens' CreateDBInstance (Maybe Bool) Source #
A value that indicates whether to enable Performance Insights for the DB Instance. For more information, see Using Amazon Performance Insights.
createDBInstance_performanceInsightsKMSKeyId :: Lens' CreateDBInstance (Maybe Text) Source #
The KMS key identifier for encryption of Performance Insights data.
The KMS key identifier is the key ARN, key ID, alias ARN, or alias name for the KMS key.
If you do not specify a value for PerformanceInsightsKMSKeyId, then Amazon DocumentDB uses your default KMS key. There is a default KMS key for your Amazon Web Services account. Your Amazon Web Services account has a different default KMS key for each Amazon Web Services region.
createDBInstance_preferredMaintenanceWindow :: Lens' CreateDBInstance (Maybe Text) Source #
The time range each week during which system maintenance can occur, in Universal Coordinated Time (UTC).
Format: ddd:hh24:mi-ddd:hh24:mi
The default is a 30-minute window selected at random from an 8-hour block of time for each Amazon Web Services Region, occurring on a random day of the week.
Valid days: Mon, Tue, Wed, Thu, Fri, Sat, Sun
Constraints: Minimum 30-minute window.
createDBInstance_promotionTier :: Lens' CreateDBInstance (Maybe Int) Source #
A value that specifies the order in which an Amazon DocumentDB replica is promoted to the primary instance after a failure of the existing primary instance.
Default: 1
Valid values: 0-15
createDBInstance_tags :: Lens' CreateDBInstance (Maybe [Tag]) Source #
The tags to be assigned to the instance. You can assign up to 10 tags to an instance.
createDBInstance_dbInstanceIdentifier :: Lens' CreateDBInstance Text Source #
The instance identifier. This parameter is stored as a lowercase string.
Constraints:
- Must contain from 1 to 63 letters, numbers, or hyphens.
- The first character must be a letter.
- Cannot end with a hyphen or contain two consecutive hyphens.
Example: mydbinstance
createDBInstance_dbInstanceClass :: Lens' CreateDBInstance Text Source #
The compute and memory capacity of the instance; for example,
db.r5.large
.
createDBInstance_engine :: Lens' CreateDBInstance Text Source #
The name of the database engine to be used for this instance.
Valid value: docdb
createDBInstance_dbClusterIdentifier :: Lens' CreateDBInstance Text Source #
The identifier of the cluster that the instance will belong to.
Destructuring the Response
data CreateDBInstanceResponse Source #
See: newCreateDBInstanceResponse
smart constructor.
CreateDBInstanceResponse' | |
|
Instances
newCreateDBInstanceResponse Source #
Create a value of CreateDBInstanceResponse
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:dbInstance:CreateDBInstanceResponse'
, createDBInstanceResponse_dbInstance
- Undocumented member.
$sel:httpStatus:CreateDBInstanceResponse'
, createDBInstanceResponse_httpStatus
- The response's http status code.
Response Lenses
createDBInstanceResponse_dbInstance :: Lens' CreateDBInstanceResponse (Maybe DBInstance) Source #
Undocumented member.
createDBInstanceResponse_httpStatus :: Lens' CreateDBInstanceResponse Int Source #
The response's http status code.