aws_sdk_iam/client/update_assume_role_policy.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 [`UpdateAssumeRolePolicy`](crate::operation::update_assume_role_policy::builders::UpdateAssumeRolePolicyFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`role_name(impl Into<String>)`](crate::operation::update_assume_role_policy::builders::UpdateAssumeRolePolicyFluentBuilder::role_name) / [`set_role_name(Option<String>)`](crate::operation::update_assume_role_policy::builders::UpdateAssumeRolePolicyFluentBuilder::set_role_name):<br>required: **true**<br><p>The name of the role to update with the new policy.</p> <p>This parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-</p><br>
7 /// - [`policy_document(impl Into<String>)`](crate::operation::update_assume_role_policy::builders::UpdateAssumeRolePolicyFluentBuilder::policy_document) / [`set_policy_document(Option<String>)`](crate::operation::update_assume_role_policy::builders::UpdateAssumeRolePolicyFluentBuilder::set_policy_document):<br>required: **true**<br><p>The policy that grants an entity permission to assume the role.</p> <p>You must provide policies in JSON format in IAM. However, for CloudFormation templates formatted in YAML, you can provide the policy in JSON or YAML format. CloudFormation always converts a YAML policy to JSON format before submitting it to IAM.</p> <p>The <a href="http://wikipedia.org/wiki/regex">regex pattern</a> used to validate this parameter is a string of characters consisting of the following:</p> <ul> <li> <p>Any printable ASCII character ranging from the space character (<code>\u0020</code>) through the end of the ASCII character range</p></li> <li> <p>The printable characters in the Basic Latin and Latin-1 Supplement character set (through <code>\u00FF</code>)</p></li> <li> <p>The special characters tab (<code>\u0009</code>), line feed (<code>\u000A</code>), and carriage return (<code>\u000D</code>)</p></li> </ul><br>
8 /// - On success, responds with [`UpdateAssumeRolePolicyOutput`](crate::operation::update_assume_role_policy::UpdateAssumeRolePolicyOutput)
9 /// - On failure, responds with [`SdkError<UpdateAssumeRolePolicyError>`](crate::operation::update_assume_role_policy::UpdateAssumeRolePolicyError)
10 pub fn update_assume_role_policy(&self) -> crate::operation::update_assume_role_policy::builders::UpdateAssumeRolePolicyFluentBuilder {
11 crate::operation::update_assume_role_policy::builders::UpdateAssumeRolePolicyFluentBuilder::new(self.handle.clone())
12 }
13}