aws_sdk_networksecuritymanager/client/create_scope.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 [`CreateScope`](crate::operation::create_scope::builders::CreateScopeFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`client_token(impl Into<String>)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::set_client_token):<br>required: **false**<br><p>A unique, case-sensitive token that you provide to ensure that the operation completes no more than one time. If you retry a request with the same client token and the same parameters, the service returns the result of the original successful request.</p><br>
7 /// - [`scope_name(impl Into<String>)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::scope_name) / [`set_scope_name(Option<String>)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::set_scope_name):<br>required: **true**<br><p>The name of the scope.</p><br>
8 /// - [`scope_description(impl Into<String>)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::scope_description) / [`set_scope_description(Option<String>)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::set_scope_description):<br>required: **false**<br><p>A description of the scope.</p><br>
9 /// - [`scope_configuration(ScopeConfiguration)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::scope_configuration) / [`set_scope_configuration(Option<ScopeConfiguration>)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::set_scope_configuration):<br>required: **true**<br><p>The configuration that defines which accounts and resources are in scope.</p><br>
10 /// - [`is_published(bool)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::is_published) / [`set_is_published(Option<bool>)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::set_is_published):<br>required: **false**<br><p>Specifies whether to publish the resource. When <code>true</code>, the resource is saved in published (<code>ACTIVE</code>) state. When <code>false</code>, it is saved as a draft (<code>DRAFT</code>). Default: <code>true</code>.</p><br>
11 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_scope::builders::CreateScopeFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to add to the resource when it is created.</p><br>
12 /// - On success, responds with [`CreateScopeOutput`](crate::operation::create_scope::CreateScopeOutput) with field(s):
13 /// - [`scope_id(String)`](crate::operation::create_scope::CreateScopeOutput::scope_id): <p>The service-generated id of the scope.</p>
14 /// - [`scope_arn(String)`](crate::operation::create_scope::CreateScopeOutput::scope_arn): <p>The Amazon Resource Name (ARN) of the scope.</p>
15 /// - [`scope_name(String)`](crate::operation::create_scope::CreateScopeOutput::scope_name): <p>The name of the scope.</p>
16 /// - [`scope_description(Option<String>)`](crate::operation::create_scope::CreateScopeOutput::scope_description): <p>A description of the scope.</p>
17 /// - [`scope_configuration(Option<ScopeConfiguration>)`](crate::operation::create_scope::CreateScopeOutput::scope_configuration): <p>The configuration that defines which accounts and resources are in scope.</p>
18 /// - [`status(EntityStatus)`](crate::operation::create_scope::CreateScopeOutput::status): <p>The current status of the resource: <code>DRAFT</code> (unpublished, editable) or <code>ACTIVE</code> (published, in use).</p>
19 /// - [`version(String)`](crate::operation::create_scope::CreateScopeOutput::version): <p>The version of the resource.</p>
20 /// - [`update_token(Option<String>)`](crate::operation::create_scope::CreateScopeOutput::update_token): <p>A token used for optimistic concurrency control. Each read and write returns an <code>updateToken</code>. Provide the most recent value on your next update to detect and prevent conflicting concurrent modifications.</p>
21 /// - [`is_snapshot(Option<bool>)`](crate::operation::create_scope::CreateScopeOutput::is_snapshot): <p>Specifies whether the resource is a snapshot of a published version.</p>
22 /// - [`has_published_version(Option<bool>)`](crate::operation::create_scope::CreateScopeOutput::has_published_version): <p>Specifies whether a published version of the resource exists.</p>
23 /// - [`updated_at(Option<DateTime>)`](crate::operation::create_scope::CreateScopeOutput::updated_at): <p>The time when the resource was last updated.</p>
24 /// - On failure, responds with [`SdkError<CreateScopeError>`](crate::operation::create_scope::CreateScopeError)
25 pub fn create_scope(&self) -> crate::operation::create_scope::builders::CreateScopeFluentBuilder {
26 crate::operation::create_scope::builders::CreateScopeFluentBuilder::new(self.handle.clone())
27 }
28}