aws-sdk-assurance 1.0.0

AWS SDK for AWS Assurance
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateEnvironment`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`environment_arn(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::environment_arn) / [`set_environment_arn(Option<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_environment_arn):<br>required: **true**<br><p>The ARN of this governance environment.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_description):<br>required: **false**<br><p>A description of the environment.</p><br>
    ///   - [`identity_store(IdentityStoreUpdate)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::identity_store) / [`set_identity_store(Option<IdentityStoreUpdate>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_identity_store):<br>required: **false**<br><p>The update to the identity store configuration. You can provide a new configuration or disable the identity store.</p><br>
    ///   - [`operator_role(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::operator_role) / [`set_operator_role(Option<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_operator_role):<br>required: **false**<br><p>The IAM role that AWS Assurance assumes to issue temporary credentials to operators who use your application. The role's trust policy must allow the AWS Assurance service principal to call <code>sts:AssumeRole</code>.</p><br>
    ///   - [`kms_key_arn(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::kms_key_arn) / [`set_kms_key_arn(Option<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_kms_key_arn):<br>required: **false**<br><p>The ARN of the AWS KMS key that encrypts evidence. To change the key, specify a new ARN. To remove the key, specify an empty string.</p><br>
    ///   - [`regions(impl Into<String>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::regions) / [`set_regions(Option<Vec::<String>>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_regions):<br>required: **false**<br><p>The AWS Regions to evaluate across. Replaces existing list. Send empty list to revert to all generally available Regions in the partition.</p><br>
    ///   - [`environment_scope(EnvironmentScope)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::environment_scope) / [`set_environment_scope(Option<EnvironmentScope>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_environment_scope):<br>required: **false**<br><p>The set of AWS accounts this environment evaluates.</p> <p>ORGANIZATION: convert the environment into an organization environment. Only valid when the environment is owned by the organization's management account and AWS Organizations trusted access for AWS Assurance is enabled; you must be in that organization. Idempotent when the scope is already ORGANIZATION.</p> <p>SINGLE_ACCOUNT: revert the environment to evaluating only its own account. This operation is idempotent when the scope is already SINGLE_ACCOUNT. After this change, the environment no longer evaluates organization member accounts.</p> <p>null or omitted: leaves the environment's scope unchanged.</p><br>
    ///   - [`organizational_unit_ids(OrganizationalUnitIdsUpdate)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::organizational_unit_ids) / [`set_organizational_unit_ids(Option<OrganizationalUnitIdsUpdate>)`](crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::set_organizational_unit_ids):<br>required: **false**<br><p>The replacement organizational unit scope for the environment. Provide a replacement list of organizational units, or set cleared to evaluate the entire organization. Only valid on an organization environment, or together with a scope change to ORGANIZATION. Null or omitted leaves organizational unit scoping unchanged.</p><br>
    /// - On success, responds with [`UpdateEnvironmentOutput`](crate::operation::update_environment::UpdateEnvironmentOutput)
    /// - On failure, responds with [`SdkError<UpdateEnvironmentError>`](crate::operation::update_environment::UpdateEnvironmentError)
    pub fn update_environment(&self) -> crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder {
        crate::operation::update_environment::builders::UpdateEnvironmentFluentBuilder::new(self.handle.clone())
    }
}