Struct aws_sdk_rds::client::fluent_builders::CreateDBSecurityGroup
source · [−]pub struct CreateDBSecurityGroup { /* private fields */ }Expand description
Fluent builder constructing a request to CreateDBSecurityGroup.
Creates a new DB security group. DB security groups control access to a DB instance.
A DB security group controls access to EC2-Classic DB instances that are not in a VPC.
EC2-Classic was retired on August 15, 2022. If you haven't migrated from EC2-Classic to a VPC, we recommend that you migrate as soon as possible. For more information, see Migrate from EC2-Classic to a VPC in the Amazon EC2 User Guide, the blog EC2-Classic Networking is Retiring – Here’s How to Prepare, and Moving a DB instance not in a VPC into a VPC in the Amazon RDS User Guide.
Implementations
sourceimpl CreateDBSecurityGroup
impl CreateDBSecurityGroup
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateDBSecurityGroup, AwsResponseRetryClassifier>, SdkError<CreateDBSecurityGroupError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateDBSecurityGroup, AwsResponseRetryClassifier>, SdkError<CreateDBSecurityGroupError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateDbSecurityGroupOutput, SdkError<CreateDBSecurityGroupError>>
pub async fn send(
self
) -> Result<CreateDbSecurityGroupOutput, SdkError<CreateDBSecurityGroupError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn db_security_group_name(self, input: impl Into<String>) -> Self
pub fn db_security_group_name(self, input: impl Into<String>) -> Self
The name for the DB security group. This value is stored as a lowercase string.
Constraints:
-
Must be 1 to 255 letters, numbers, or hyphens.
-
First character must be a letter
-
Can't end with a hyphen or contain two consecutive hyphens
-
Must not be "Default"
Example: mysecuritygroup
sourcepub fn set_db_security_group_name(self, input: Option<String>) -> Self
pub fn set_db_security_group_name(self, input: Option<String>) -> Self
The name for the DB security group. This value is stored as a lowercase string.
Constraints:
-
Must be 1 to 255 letters, numbers, or hyphens.
-
First character must be a letter
-
Can't end with a hyphen or contain two consecutive hyphens
-
Must not be "Default"
Example: mysecuritygroup
sourcepub fn db_security_group_description(self, input: impl Into<String>) -> Self
pub fn db_security_group_description(self, input: impl Into<String>) -> Self
The description for the DB security group.
sourcepub fn set_db_security_group_description(self, input: Option<String>) -> Self
pub fn set_db_security_group_description(self, input: Option<String>) -> Self
The description for the DB security group.
Appends an item to Tags.
To override the contents of this collection use set_tags.
Tags to assign to the DB security group.
Tags to assign to the DB security group.
Trait Implementations
sourceimpl Clone for CreateDBSecurityGroup
impl Clone for CreateDBSecurityGroup
sourcefn clone(&self) -> CreateDBSecurityGroup
fn clone(&self) -> CreateDBSecurityGroup
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more