aws_sdk_networksecuritymanager/client/create_deployment.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 [`CreateDeployment`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`client_token(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::client_token) / [`set_client_token(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::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 /// - [`deployment_name(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::deployment_name) / [`set_deployment_name(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_deployment_name):<br>required: **true**<br><p>The name of the deployment.</p><br>
8 /// - [`deployment_description(impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::deployment_description) / [`set_deployment_description(Option<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_deployment_description):<br>required: **false**<br><p>A description of the deployment.</p><br>
9 /// - [`deployment_configuration(DeploymentConfiguration)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::deployment_configuration) / [`set_deployment_configuration(Option<DeploymentConfiguration>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_deployment_configuration):<br>required: **true**<br><p>The configuration settings for the deployment.</p><br>
10 /// - [`associated_policy_list(PolicyReference)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::associated_policy_list) / [`set_associated_policy_list(Option<Vec::<PolicyReference>>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_associated_policy_list):<br>required: **true**<br><p>The policies associated with the deployment.</p><br>
11 /// - [`associated_scope_list(ScopeReference)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::associated_scope_list) / [`set_associated_scope_list(Option<Vec::<ScopeReference>>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_associated_scope_list):<br>required: **true**<br><p>The scope associated with the deployment. A deployment has exactly one scope.</p><br>
12 /// - [`is_published(bool)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::is_published) / [`set_is_published(Option<bool>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::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>
13 /// - [`tags(impl Into<String>, impl Into<String>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::tags) / [`set_tags(Option<HashMap::<String, String>>)`](crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::set_tags):<br>required: **false**<br><p>The tags to add to the resource when it is created.</p><br>
14 /// - On success, responds with [`CreateDeploymentOutput`](crate::operation::create_deployment::CreateDeploymentOutput) with field(s):
15 /// - [`deployment_id(String)`](crate::operation::create_deployment::CreateDeploymentOutput::deployment_id): <p>The service-generated id of the deployment.</p>
16 /// - [`deployment_arn(String)`](crate::operation::create_deployment::CreateDeploymentOutput::deployment_arn): <p>The Amazon Resource Name (ARN) of the deployment.</p>
17 /// - [`deployment_name(String)`](crate::operation::create_deployment::CreateDeploymentOutput::deployment_name): <p>The name of the deployment.</p>
18 /// - [`deployment_description(Option<String>)`](crate::operation::create_deployment::CreateDeploymentOutput::deployment_description): <p>A description of the deployment.</p>
19 /// - [`status(EntityStatus)`](crate::operation::create_deployment::CreateDeploymentOutput::status): <p>The current status of the resource: <code>DRAFT</code> (unpublished, editable) or <code>ACTIVE</code> (published, in use).</p>
20 /// - [`deployment_configuration(Option<DeploymentConfiguration>)`](crate::operation::create_deployment::CreateDeploymentOutput::deployment_configuration): <p>The configuration settings for the deployment.</p>
21 /// - [`associated_policy_list(Vec::<AssociatedPolicy>)`](crate::operation::create_deployment::CreateDeploymentOutput::associated_policy_list): <p>The policies associated with the deployment.</p>
22 /// - [`associated_scope_list(Vec::<AssociatedScope>)`](crate::operation::create_deployment::CreateDeploymentOutput::associated_scope_list): <p>The scope associated with the deployment. A deployment has exactly one scope.</p>
23 /// - [`version(String)`](crate::operation::create_deployment::CreateDeploymentOutput::version): <p>The version of the resource.</p>
24 /// - [`update_token(Option<String>)`](crate::operation::create_deployment::CreateDeploymentOutput::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>
25 /// - [`is_snapshot(Option<bool>)`](crate::operation::create_deployment::CreateDeploymentOutput::is_snapshot): <p>Specifies whether the resource is a snapshot of a published version.</p>
26 /// - [`has_published_version(Option<bool>)`](crate::operation::create_deployment::CreateDeploymentOutput::has_published_version): <p>Specifies whether a published version of the resource exists.</p>
27 /// - [`deployment_coverage(Option<Vec::<DeploymentCoverageEntry>>)`](crate::operation::create_deployment::CreateDeploymentOutput::deployment_coverage): <p>The coverage information for the deployment. For each firewall type, it shows which policies have that firewall type and which in-scope resource types the firewall type protects.</p>
28 /// - [`warnings(Option<Vec::<DeploymentWarningEntry>>)`](crate::operation::create_deployment::CreateDeploymentOutput::warnings): <p>Warnings about potential issues, such as a policy that has no applicable resources in the deployment's scope.</p>
29 /// - [`updated_at(Option<DateTime>)`](crate::operation::create_deployment::CreateDeploymentOutput::updated_at): <p>The time when the resource was last updated.</p>
30 /// - On failure, responds with [`SdkError<CreateDeploymentError>`](crate::operation::create_deployment::CreateDeploymentError)
31 pub fn create_deployment(&self) -> crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder {
32 crate::operation::create_deployment::builders::CreateDeploymentFluentBuilder::new(self.handle.clone())
33 }
34}