aws_sdk_rds/client/revoke_db_security_group_ingress.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`RevokeDBSecurityGroupIngress`](crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - [`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>
10 /// - [`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>
11 /// - On success, responds with [`RevokeDbSecurityGroupIngressOutput`](crate::operation::revoke_db_security_group_ingress::RevokeDbSecurityGroupIngressOutput) with field(s):
12 /// - [`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>
13 /// - On failure, responds with [`SdkError<RevokeDBSecurityGroupIngressError>`](crate::operation::revoke_db_security_group_ingress::RevokeDBSecurityGroupIngressError)
14 pub fn revoke_db_security_group_ingress(
15 &self,
16 ) -> crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder {
17 crate::operation::revoke_db_security_group_ingress::builders::RevokeDBSecurityGroupIngressFluentBuilder::new(self.handle.clone())
18 }
19}