1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DisassociateResourceShare`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`resource_share_arn(impl Into<String>)`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::resource_share_arn) / [`set_resource_share_arn(Option<String>)`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::set_resource_share_arn):<br>required: **true**<br><p>Specifies <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of the resource share that you want to remove resources or principals from.</p><br>
    ///   - [`resource_arns(impl Into<String>)`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::resource_arns) / [`set_resource_arns(Option<Vec::<String>>)`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::set_resource_arns):<br>required: **false**<br><p>Specifies a list of <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> for one or more resources that you want to remove from the resource share. After the operation runs, these resources are no longer shared with principals associated with the resource share.</p><br>
    ///   - [`principals(impl Into<String>)`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::principals) / [`set_principals(Option<Vec::<String>>)`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::set_principals):<br>required: **false**<br><p>Specifies a list of one or more principals that no longer are to have access to the resources in this resource share.</p> <p>You can include the following values:</p> <ul>  <li>   <p>An Amazon Web Services account ID, for example: <code>123456789012</code></p></li>  <li>   <p>An <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Name (ARN)</a> of an organization in Organizations, for example: <code>organizations::123456789012:organization/o-exampleorgid</code></p></li>  <li>   <p>An ARN of an organizational unit (OU) in Organizations, for example: <code>organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123</code></p></li>  <li>   <p>An ARN of an IAM role, for example: <code>iam::123456789012:role/rolename</code></p></li>  <li>   <p>An ARN of an IAM user, for example: <code>iam::123456789012user/username</code></p></li> </ul><note>  <p>Not all resource types can be shared with IAM roles and users. For more information, see <a href="https://docs.aws.amazon.com/ram/latest/userguide/permissions.html#permissions-rbp-supported-resource-types">Sharing with IAM roles and users</a> in the <i>Resource Access Manager User Guide</i>.</p> </note><br>
    ///   - [`client_token(impl Into<String>)`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::set_client_token):<br>required: **false**<br><p>Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a <a href="https://wikipedia.org/wiki/Universally_unique_identifier">UUID type of value.</a>.</p> <p>If you don't provide this value, then Amazon Web Services generates a random one for you.</p> <p>If you retry the operation with the same <code>ClientToken</code>, but with different parameters, the retry fails with an <code>IdempotentParameterMismatch</code> error.</p><br>
    ///   - [`sources(impl Into<String>)`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::sources) / [`set_sources(Option<Vec::<String>>)`](crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::set_sources):<br>required: **false**<br><p>Specifies from which source accounts the service principal no longer has access to the resources in this resource share.</p><br>
    /// - On success, responds with [`DisassociateResourceShareOutput`](crate::operation::disassociate_resource_share::DisassociateResourceShareOutput) with field(s):
    ///   - [`resource_share_associations(Option<Vec::<ResourceShareAssociation>>)`](crate::operation::disassociate_resource_share::DisassociateResourceShareOutput::resource_share_associations): <p>An array of objects with information about the updated associations for this resource share.</p>
    ///   - [`client_token(Option<String>)`](crate::operation::disassociate_resource_share::DisassociateResourceShareOutput::client_token): <p>The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the <code>clientToken</code> request parameter of that later call. All other parameters must also have the same values that you used in the first call.</p>
    /// - On failure, responds with [`SdkError<DisassociateResourceShareError>`](crate::operation::disassociate_resource_share::DisassociateResourceShareError)
    pub fn disassociate_resource_share(&self) -> crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder {
        crate::operation::disassociate_resource_share::builders::DisassociateResourceShareFluentBuilder::new(self.handle.clone())
    }
}