// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`CreateResourceShare`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder) operation.
///
/// - The fluent builder is configurable:
/// - [`name(impl Into<String>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::set_name):<br>required: **true**<br><p>Specifies the name of the resource share.</p><br>
/// - [`resource_arns(impl Into<String>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::resource_arns) / [`set_resource_arns(Option<Vec::<String>>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::set_resource_arns):<br>required: **false**<br><p>Specifies a list of one or more ARNs of the resources to associate with the resource share.</p><br>
/// - [`principals(impl Into<String>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::principals) / [`set_principals(Option<Vec::<String>>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::set_principals):<br>required: **false**<br><p>Specifies a list of one or more principals to associate with the 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>
/// - [`tags(Tag)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::set_tags):<br>required: **false**<br><p>Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the resources associated with the resource share.</p><br>
/// - [`allow_external_principals(bool)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::allow_external_principals) / [`set_allow_external_principals(Option<bool>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::set_allow_external_principals):<br>required: **false**<br><p>Specifies whether principals outside your organization in Organizations can be associated with a resource share. A value of <code>true</code> lets you share with individual Amazon Web Services accounts that are <i>not</i> in your organization. A value of <code>false</code> only has meaning if your account is a member of an Amazon Web Services Organization. The default value is <code>true</code>.</p><br>
/// - [`client_token(impl Into<String>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::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>
/// - [`permission_arns(impl Into<String>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::permission_arns) / [`set_permission_arns(Option<Vec::<String>>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::set_permission_arns):<br>required: **false**<br><p>Specifies the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share.</p><br>
/// - [`sources(impl Into<String>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::sources) / [`set_sources(Option<Vec::<String>>)`](crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::set_sources):<br>required: **false**<br><p>Specifies from which source accounts the service principal has access to the resources in this resource share.</p><br>
/// - On success, responds with [`CreateResourceShareOutput`](crate::operation::create_resource_share::CreateResourceShareOutput) with field(s):
/// - [`resource_share(Option<ResourceShare>)`](crate::operation::create_resource_share::CreateResourceShareOutput::resource_share): <p>An object with information about the new resource share.</p>
/// - [`client_token(Option<String>)`](crate::operation::create_resource_share::CreateResourceShareOutput::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<CreateResourceShareError>`](crate::operation::create_resource_share::CreateResourceShareError)
pub fn create_resource_share(&self) -> crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder {
crate::operation::create_resource_share::builders::CreateResourceShareFluentBuilder::new(self.handle.clone())
}
}