pub struct Builder { /* private fields */ }
Expand description
A builder for AwsRdsDbClusterDetails
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn allocated_storage(self, input: i32) -> Self
pub fn allocated_storage(self, input: i32) -> Self
For all database engines except Aurora, specifies the allocated storage size in gibibytes (GiB).
sourcepub fn set_allocated_storage(self, input: Option<i32>) -> Self
pub fn set_allocated_storage(self, input: Option<i32>) -> Self
For all database engines except Aurora, specifies the allocated storage size in gibibytes (GiB).
sourcepub fn availability_zones(self, input: impl Into<String>) -> Self
pub fn availability_zones(self, input: impl Into<String>) -> Self
Appends an item to availability_zones
.
To override the contents of this collection use set_availability_zones
.
A list of Availability Zones (AZs) where instances in the DB cluster can be created.
sourcepub fn set_availability_zones(self, input: Option<Vec<String>>) -> Self
pub fn set_availability_zones(self, input: Option<Vec<String>>) -> Self
A list of Availability Zones (AZs) where instances in the DB cluster can be created.
sourcepub fn backup_retention_period(self, input: i32) -> Self
pub fn backup_retention_period(self, input: i32) -> Self
The number of days for which automated backups are retained.
sourcepub fn set_backup_retention_period(self, input: Option<i32>) -> Self
pub fn set_backup_retention_period(self, input: Option<i32>) -> Self
The number of days for which automated backups are retained.
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
The name of the database.
sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
The name of the database.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The current status of this DB cluster.
sourcepub fn endpoint(self, input: impl Into<String>) -> Self
pub fn endpoint(self, input: impl Into<String>) -> Self
The connection endpoint for the primary instance of the DB cluster.
sourcepub fn set_endpoint(self, input: Option<String>) -> Self
pub fn set_endpoint(self, input: Option<String>) -> Self
The connection endpoint for the primary instance of the DB cluster.
sourcepub fn reader_endpoint(self, input: impl Into<String>) -> Self
pub fn reader_endpoint(self, input: impl Into<String>) -> Self
The reader endpoint for the DB cluster.
sourcepub fn set_reader_endpoint(self, input: Option<String>) -> Self
pub fn set_reader_endpoint(self, input: Option<String>) -> Self
The reader endpoint for the DB cluster.
sourcepub fn custom_endpoints(self, input: impl Into<String>) -> Self
pub fn custom_endpoints(self, input: impl Into<String>) -> Self
Appends an item to custom_endpoints
.
To override the contents of this collection use set_custom_endpoints
.
A list of custom endpoints for the DB cluster.
sourcepub fn set_custom_endpoints(self, input: Option<Vec<String>>) -> Self
pub fn set_custom_endpoints(self, input: Option<Vec<String>>) -> Self
A list of custom endpoints for the DB cluster.
sourcepub fn multi_az(self, input: bool) -> Self
pub fn multi_az(self, input: bool) -> Self
Whether the DB cluster has instances in multiple Availability Zones.
sourcepub fn set_multi_az(self, input: Option<bool>) -> Self
pub fn set_multi_az(self, input: Option<bool>) -> Self
Whether the DB cluster has instances in multiple Availability Zones.
sourcepub fn engine(self, input: impl Into<String>) -> Self
pub fn engine(self, input: impl Into<String>) -> Self
The name of the database engine to use for this DB cluster. Valid values are as follows:
-
aurora
-
aurora-mysql
-
aurora-postgresql
sourcepub fn set_engine(self, input: Option<String>) -> Self
pub fn set_engine(self, input: Option<String>) -> Self
The name of the database engine to use for this DB cluster. Valid values are as follows:
-
aurora
-
aurora-mysql
-
aurora-postgresql
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The version number of the database engine to use.
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The version number of the database engine to use.
sourcepub fn port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
The port number on which the DB instances in the DB cluster accept connections.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The port number on which the DB instances in the DB cluster accept connections.
sourcepub fn master_username(self, input: impl Into<String>) -> Self
pub fn master_username(self, input: impl Into<String>) -> Self
The name of the master user for the DB cluster.
sourcepub fn set_master_username(self, input: Option<String>) -> Self
pub fn set_master_username(self, input: Option<String>) -> Self
The name of the master user for the DB cluster.
sourcepub fn preferred_backup_window(self, input: impl Into<String>) -> Self
pub fn preferred_backup_window(self, input: impl Into<String>) -> Self
The range of time each day when automated backups are created, if automated backups are enabled.
Uses the format HH:MM-HH:MM
. For example, 04:52-05:22
.
sourcepub fn set_preferred_backup_window(self, input: Option<String>) -> Self
pub fn set_preferred_backup_window(self, input: Option<String>) -> Self
The range of time each day when automated backups are created, if automated backups are enabled.
Uses the format HH:MM-HH:MM
. For example, 04:52-05:22
.
sourcepub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
pub fn preferred_maintenance_window(self, input: impl Into<String>) -> Self
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Uses the format
.
For the day values, use mon
|tue
|wed
|thu
|fri
|sat
|sun
.
For example, sun:09:32-sun:10:02
.
sourcepub fn set_preferred_maintenance_window(self, input: Option<String>) -> Self
pub fn set_preferred_maintenance_window(self, input: Option<String>) -> Self
The weekly time range during which system maintenance can occur, in Universal Coordinated Time (UTC).
Uses the format
.
For the day values, use mon
|tue
|wed
|thu
|fri
|sat
|sun
.
For example, sun:09:32-sun:10:02
.
sourcepub fn read_replica_identifiers(self, input: impl Into<String>) -> Self
pub fn read_replica_identifiers(self, input: impl Into<String>) -> Self
Appends an item to read_replica_identifiers
.
To override the contents of this collection use set_read_replica_identifiers
.
The identifiers of the read replicas that are associated with this DB cluster.
sourcepub fn set_read_replica_identifiers(self, input: Option<Vec<String>>) -> Self
pub fn set_read_replica_identifiers(self, input: Option<Vec<String>>) -> Self
The identifiers of the read replicas that are associated with this DB cluster.
sourcepub fn vpc_security_groups(self, input: AwsRdsDbInstanceVpcSecurityGroup) -> Self
pub fn vpc_security_groups(self, input: AwsRdsDbInstanceVpcSecurityGroup) -> Self
Appends an item to vpc_security_groups
.
To override the contents of this collection use set_vpc_security_groups
.
A list of VPC security groups that the DB cluster belongs to.
sourcepub fn set_vpc_security_groups(
self,
input: Option<Vec<AwsRdsDbInstanceVpcSecurityGroup>>
) -> Self
pub fn set_vpc_security_groups(
self,
input: Option<Vec<AwsRdsDbInstanceVpcSecurityGroup>>
) -> Self
A list of VPC security groups that the DB cluster belongs to.
sourcepub fn hosted_zone_id(self, input: impl Into<String>) -> Self
pub fn hosted_zone_id(self, input: impl Into<String>) -> Self
Specifies the identifier that Amazon Route 53 assigns when you create a hosted zone.
sourcepub fn set_hosted_zone_id(self, input: Option<String>) -> Self
pub fn set_hosted_zone_id(self, input: Option<String>) -> Self
Specifies the identifier that Amazon Route 53 assigns when you create a hosted zone.
sourcepub fn storage_encrypted(self, input: bool) -> Self
pub fn storage_encrypted(self, input: bool) -> Self
Whether the DB cluster is encrypted.
sourcepub fn set_storage_encrypted(self, input: Option<bool>) -> Self
pub fn set_storage_encrypted(self, input: Option<bool>) -> Self
Whether the DB cluster is encrypted.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ARN of the KMS master key that is used to encrypt the database instances in the DB cluster.
sourcepub fn db_cluster_resource_id(self, input: impl Into<String>) -> Self
pub fn db_cluster_resource_id(self, input: impl Into<String>) -> Self
The identifier of the DB cluster. The identifier must be unique within each Amazon Web Services Region and is immutable.
sourcepub fn set_db_cluster_resource_id(self, input: Option<String>) -> Self
pub fn set_db_cluster_resource_id(self, input: Option<String>) -> Self
The identifier of the DB cluster. The identifier must be unique within each Amazon Web Services Region and is immutable.
sourcepub fn associated_roles(self, input: AwsRdsDbClusterAssociatedRole) -> Self
pub fn associated_roles(self, input: AwsRdsDbClusterAssociatedRole) -> Self
Appends an item to associated_roles
.
To override the contents of this collection use set_associated_roles
.
A list of the IAM roles that are associated with the DB cluster.
sourcepub fn set_associated_roles(
self,
input: Option<Vec<AwsRdsDbClusterAssociatedRole>>
) -> Self
pub fn set_associated_roles(
self,
input: Option<Vec<AwsRdsDbClusterAssociatedRole>>
) -> Self
A list of the IAM roles that are associated with the DB cluster.
sourcepub fn cluster_create_time(self, input: impl Into<String>) -> Self
pub fn cluster_create_time(self, input: impl Into<String>) -> Self
Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_cluster_create_time(self, input: Option<String>) -> Self
pub fn set_cluster_create_time(self, input: Option<String>) -> Self
Indicates when the DB cluster was created, in Universal Coordinated Time (UTC).
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn enabled_cloud_watch_logs_exports(self, input: impl Into<String>) -> Self
pub fn enabled_cloud_watch_logs_exports(self, input: impl Into<String>) -> Self
Appends an item to enabled_cloud_watch_logs_exports
.
To override the contents of this collection use set_enabled_cloud_watch_logs_exports
.
A list of log types that this DB cluster is configured to export to CloudWatch Logs.
sourcepub fn set_enabled_cloud_watch_logs_exports(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_enabled_cloud_watch_logs_exports(
self,
input: Option<Vec<String>>
) -> Self
A list of log types that this DB cluster is configured to export to CloudWatch Logs.
sourcepub fn engine_mode(self, input: impl Into<String>) -> Self
pub fn engine_mode(self, input: impl Into<String>) -> Self
The database engine mode of the DB cluster.Valid values are as follows:
-
global
-
multimaster
-
parallelquery
-
provisioned
-
serverless
sourcepub fn set_engine_mode(self, input: Option<String>) -> Self
pub fn set_engine_mode(self, input: Option<String>) -> Self
The database engine mode of the DB cluster.Valid values are as follows:
-
global
-
multimaster
-
parallelquery
-
provisioned
-
serverless
sourcepub fn deletion_protection(self, input: bool) -> Self
pub fn deletion_protection(self, input: bool) -> Self
Whether the DB cluster has deletion protection enabled.
sourcepub fn set_deletion_protection(self, input: Option<bool>) -> Self
pub fn set_deletion_protection(self, input: Option<bool>) -> Self
Whether the DB cluster has deletion protection enabled.
sourcepub fn http_endpoint_enabled(self, input: bool) -> Self
pub fn http_endpoint_enabled(self, input: bool) -> Self
Whether the HTTP endpoint for an Aurora Serverless DB cluster is enabled.
sourcepub fn set_http_endpoint_enabled(self, input: Option<bool>) -> Self
pub fn set_http_endpoint_enabled(self, input: Option<bool>) -> Self
Whether the HTTP endpoint for an Aurora Serverless DB cluster is enabled.
sourcepub fn activity_stream_status(self, input: impl Into<String>) -> Self
pub fn activity_stream_status(self, input: impl Into<String>) -> Self
The status of the database activity stream. Valid values are as follows:
-
started
-
starting
-
stopped
-
stopping
sourcepub fn set_activity_stream_status(self, input: Option<String>) -> Self
pub fn set_activity_stream_status(self, input: Option<String>) -> Self
The status of the database activity stream. Valid values are as follows:
-
started
-
starting
-
stopped
-
stopping
Whether tags are copied from the DB cluster to snapshots of the DB cluster.
Whether tags are copied from the DB cluster to snapshots of the DB cluster.
sourcepub fn cross_account_clone(self, input: bool) -> Self
pub fn cross_account_clone(self, input: bool) -> Self
Whether the DB cluster is a clone of a DB cluster owned by a different Amazon Web Services account.
sourcepub fn set_cross_account_clone(self, input: Option<bool>) -> Self
pub fn set_cross_account_clone(self, input: Option<bool>) -> Self
Whether the DB cluster is a clone of a DB cluster owned by a different Amazon Web Services account.
sourcepub fn domain_memberships(self, input: AwsRdsDbDomainMembership) -> Self
pub fn domain_memberships(self, input: AwsRdsDbDomainMembership) -> Self
Appends an item to domain_memberships
.
To override the contents of this collection use set_domain_memberships
.
The Active Directory domain membership records that are associated with the DB cluster.
sourcepub fn set_domain_memberships(
self,
input: Option<Vec<AwsRdsDbDomainMembership>>
) -> Self
pub fn set_domain_memberships(
self,
input: Option<Vec<AwsRdsDbDomainMembership>>
) -> Self
The Active Directory domain membership records that are associated with the DB cluster.
sourcepub fn db_cluster_parameter_group(self, input: impl Into<String>) -> Self
pub fn db_cluster_parameter_group(self, input: impl Into<String>) -> Self
The name of the DB cluster parameter group for the DB cluster.
sourcepub fn set_db_cluster_parameter_group(self, input: Option<String>) -> Self
pub fn set_db_cluster_parameter_group(self, input: Option<String>) -> Self
The name of the DB cluster parameter group for the DB cluster.
sourcepub fn db_subnet_group(self, input: impl Into<String>) -> Self
pub fn db_subnet_group(self, input: impl Into<String>) -> Self
The subnet group that is associated with the DB cluster, including the name, description, and subnets in the subnet group.
sourcepub fn set_db_subnet_group(self, input: Option<String>) -> Self
pub fn set_db_subnet_group(self, input: Option<String>) -> Self
The subnet group that is associated with the DB cluster, including the name, description, and subnets in the subnet group.
sourcepub fn db_cluster_option_group_memberships(
self,
input: AwsRdsDbClusterOptionGroupMembership
) -> Self
pub fn db_cluster_option_group_memberships(
self,
input: AwsRdsDbClusterOptionGroupMembership
) -> Self
Appends an item to db_cluster_option_group_memberships
.
To override the contents of this collection use set_db_cluster_option_group_memberships
.
The list of option group memberships for this DB cluster.
sourcepub fn set_db_cluster_option_group_memberships(
self,
input: Option<Vec<AwsRdsDbClusterOptionGroupMembership>>
) -> Self
pub fn set_db_cluster_option_group_memberships(
self,
input: Option<Vec<AwsRdsDbClusterOptionGroupMembership>>
) -> Self
The list of option group memberships for this DB cluster.
sourcepub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
pub fn db_cluster_identifier(self, input: impl Into<String>) -> Self
The DB cluster identifier that the user assigned to the cluster. This identifier is the unique key that identifies a DB cluster.
sourcepub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_db_cluster_identifier(self, input: Option<String>) -> Self
The DB cluster identifier that the user assigned to the cluster. This identifier is the unique key that identifies a DB cluster.
sourcepub fn db_cluster_members(self, input: AwsRdsDbClusterMember) -> Self
pub fn db_cluster_members(self, input: AwsRdsDbClusterMember) -> Self
Appends an item to db_cluster_members
.
To override the contents of this collection use set_db_cluster_members
.
The list of instances that make up the DB cluster.
sourcepub fn set_db_cluster_members(
self,
input: Option<Vec<AwsRdsDbClusterMember>>
) -> Self
pub fn set_db_cluster_members(
self,
input: Option<Vec<AwsRdsDbClusterMember>>
) -> Self
The list of instances that make up the DB cluster.
sourcepub fn iam_database_authentication_enabled(self, input: bool) -> Self
pub fn iam_database_authentication_enabled(self, input: bool) -> Self
Whether the mapping of IAM accounts to database accounts is enabled.
sourcepub fn set_iam_database_authentication_enabled(self, input: Option<bool>) -> Self
pub fn set_iam_database_authentication_enabled(self, input: Option<bool>) -> Self
Whether the mapping of IAM accounts to database accounts is enabled.
sourcepub fn build(self) -> AwsRdsDbClusterDetails
pub fn build(self) -> AwsRdsDbClusterDetails
Consumes the builder and constructs a AwsRdsDbClusterDetails
.