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 [`CreateEnvironment`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`environment_name(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::environment_name) / [`set_environment_name(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_environment_name):<br>required: **true**<br><p>The name of the environment.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_description):<br>required: **false**<br><p>A description of the environment.</p><br>
    ///   - [`domain_prefix(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::domain_prefix) / [`set_domain_prefix(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_domain_prefix):<br>required: **false**<br><p>The optional custom domain prefix for the environment portal URL. The prefix must be unique within the AWS Region. If you don't specify a prefix, AWS Assurance uses the environment ID. You can't change the prefix after you create the environment.</p><br>
    ///   - [`operator_role(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::operator_role) / [`set_operator_role(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_operator_role):<br>required: **false**<br><p>The AWS Identity and Access Management (IAM) role that AWS Assurance assumes to issue temporary credentials to operators who use your application. You must specify this role to support operator sessions. The role's trust policy must allow the AWS Assurance service principal to call <code>sts:AssumeRole</code>.</p><br>
    ///   - [`identity_store(IdentityStoreConfig)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::identity_store) / [`set_identity_store(Option<IdentityStoreConfig>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_identity_store):<br>required: **false**<br><p>The identity store configuration.</p><br>
    ///   - [`kms_key_arn(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::kms_key_arn) / [`set_kms_key_arn(Option<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_kms_key_arn):<br>required: **false**<br><p>The ARN of an optional AWS KMS key that encrypts evidence. The AWS Assurance service role must have <code>kms:Decrypt</code> and <code>kms:GenerateDataKey</code> permissions on this key.</p><br>
    ///   - [`regions(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::regions) / [`set_regions(Option<Vec::<String>>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_regions):<br>required: **false**<br><p>The AWS Regions to evaluate across. When empty or omitted, the environment evaluates all generally available Regions in the partition. Applies to all accounts in scope.</p><br>
    ///   - [`environment_scope(EnvironmentScope)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::environment_scope) / [`set_environment_scope(Option<EnvironmentScope>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_environment_scope):<br>required: **false**<br><p>The set of AWS accounts that the new environment evaluates. If you omit the scope, AWS Assurance uses <code>SINGLE_ACCOUNT</code>. Valid values:</p> <ul>  <li>   <p><code>ORGANIZATION</code> – Evaluates the member accounts in your organization in AWS Organizations. Call this operation from the management account or a delegated administrator account, with trusted access for AWS Assurance turned on.</p></li>  <li>   <p><code>SINGLE_ACCOUNT</code> – Evaluates only the account where you create the environment.</p></li> </ul><br>
    ///   - [`organizational_unit_ids(impl Into<String>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::organizational_unit_ids) / [`set_organizational_unit_ids(Option<Vec::<String>>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_organizational_unit_ids):<br>required: **false**<br><p>The organizational units to scope the organization environment's evaluation to. Only valid when the environment scope is ORGANIZATION. When omitted, the entire organization is in scope. Must contain at least one OU when provided. Accounts in nested OUs under a listed OU are included.</p><br>
    ///   - [`tags(Tag)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::tags) / [`set_tags(Option<Vec::<Tag>>)`](crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::set_tags):<br>required: **false**<br><p>The tags attached to the resource, as key-value pairs.</p><br>
    /// - On success, responds with [`CreateEnvironmentOutput`](crate::operation::create_environment::CreateEnvironmentOutput) with field(s):
    ///   - [`environment_arn(String)`](crate::operation::create_environment::CreateEnvironmentOutput::environment_arn): <p>The ARN of the newly created governance environment.</p>
    /// - On failure, responds with [`SdkError<CreateEnvironmentError>`](crate::operation::create_environment::CreateEnvironmentError)
    pub fn create_environment(&self) -> crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder {
        crate::operation::create_environment::builders::CreateEnvironmentFluentBuilder::new(self.handle.clone())
    }
}