aws_sdk_rds/client/
revoke_db_security_group_ingress.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`RevokeDBSecurityGroupIngress`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`db_security_group_name(impl Into<String>)`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::db_security_group_name) / [`set_db_security_group_name(Option<String>)`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::set_db_security_group_name):<br>required: **true**<br><p>The name of the DB security group to revoke ingress from.</p><br>
    ///   - [`cidrip(impl Into<String>)`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::cidrip) / [`set_cidrip(Option<String>)`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::set_cidrip):<br>required: **false**<br><p>The IP range to revoke access from. Must be a valid CIDR range. If <code>CIDRIP</code> is specified, <code>EC2SecurityGroupName</code>, <code>EC2SecurityGroupId</code> and <code>EC2SecurityGroupOwnerId</code> can't be provided.</p><br>
    ///   - [`ec2_security_group_name(impl Into<String>)`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::ec2_security_group_name) / [`set_ec2_security_group_name(Option<String>)`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::set_ec2_security_group_name):<br>required: **false**<br><p>The name of the EC2 security group to revoke access from. For VPC DB security groups, <code>EC2SecurityGroupId</code> must be provided. Otherwise, EC2SecurityGroupOwnerId and either <code>EC2SecurityGroupName</code> or <code>EC2SecurityGroupId</code> must be provided.</p><br>
    ///   - [`ec2_security_group_id(impl Into<String>)`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::ec2_security_group_id) / [`set_ec2_security_group_id(Option<String>)`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::set_ec2_security_group_id):<br>required: **false**<br><p>The id of the EC2 security group to revoke access from. For VPC DB security groups, <code>EC2SecurityGroupId</code> must be provided. Otherwise, EC2SecurityGroupOwnerId and either <code>EC2SecurityGroupName</code> or <code>EC2SecurityGroupId</code> must be provided.</p><br>
    ///   - [`ec2_security_group_owner_id(impl Into<String>)`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::ec2_security_group_owner_id) / [`set_ec2_security_group_owner_id(Option<String>)`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::set_ec2_security_group_owner_id):<br>required: **false**<br><p>The Amazon Web Services account number of the owner of the EC2 security group specified in the <code>EC2SecurityGroupName</code> parameter. The Amazon Web Services access key ID isn't an acceptable value. For VPC DB security groups, <code>EC2SecurityGroupId</code> must be provided. Otherwise, EC2SecurityGroupOwnerId and either <code>EC2SecurityGroupName</code> or <code>EC2SecurityGroupId</code> must be provided.</p><br>
    /// - On success, responds with [`RevokeDbSecurityGroupIngressOutput`](crate::operation::revoke_db_security_group_ingress::RevokeDbSecurityGroupIngressOutput) with field(s):
    ///   - [`db_security_group(Option<DbSecurityGroup>)`](crate::operation::revoke_db_security_group_ingress::RevokeDbSecurityGroupIngressOutput::db_security_group): <p>Contains the details for an Amazon RDS DB security group.</p> <p>This data type is used as a response element in the <code>DescribeDBSecurityGroups</code> action.</p>
    /// - On failure, responds with [`SdkError<RevokeDBSecurityGroupIngressError>`](crate::operation::revoke_db_security_group_ingress::RevokeDBSecurityGroupIngressError)
    pub fn revoke_db_security_group_ingress(
        &self,
    ) -> crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder {
        crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::new(self.handle.clone())
    }
}