pub struct Builder { /* private fields */ }
Expand description

A builder for CreateStackInput.

Implementations§

The name of the stack.

Examples found in repository?
src/client.rs (line 3039)
3038
3039
3040
3041
        pub fn name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.name(input.into());
            self
        }

The name of the stack.

Examples found in repository?
src/client.rs (line 3044)
3043
3044
3045
3046
        pub fn set_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_name(input);
            self
        }

The description to display.

Examples found in repository?
src/client.rs (line 3049)
3048
3049
3050
3051
        pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.description(input.into());
            self
        }

The description to display.

Examples found in repository?
src/client.rs (line 3054)
3053
3054
3055
3056
        pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_description(input);
            self
        }

The stack name to display.

Examples found in repository?
src/client.rs (line 3059)
3058
3059
3060
3061
        pub fn display_name(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.display_name(input.into());
            self
        }

The stack name to display.

Examples found in repository?
src/client.rs (line 3064)
3063
3064
3065
3066
        pub fn set_display_name(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_display_name(input);
            self
        }

Appends an item to storage_connectors.

To override the contents of this collection use set_storage_connectors.

The storage connectors to enable.

Examples found in repository?
src/client.rs (line 3073)
3072
3073
3074
3075
        pub fn storage_connectors(mut self, input: crate::model::StorageConnector) -> Self {
            self.inner = self.inner.storage_connectors(input);
            self
        }

The storage connectors to enable.

Examples found in repository?
src/client.rs (line 3081)
3077
3078
3079
3080
3081
3082
3083
        pub fn set_storage_connectors(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::StorageConnector>>,
        ) -> Self {
            self.inner = self.inner.set_storage_connectors(input);
            self
        }

The URL that users are redirected to after their streaming session ends.

Examples found in repository?
src/client.rs (line 3086)
3085
3086
3087
3088
        pub fn redirect_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.redirect_url(input.into());
            self
        }

The URL that users are redirected to after their streaming session ends.

Examples found in repository?
src/client.rs (line 3091)
3090
3091
3092
3093
        pub fn set_redirect_url(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_redirect_url(input);
            self
        }

The URL that users are redirected to after they click the Send Feedback link. If no URL is specified, no Send Feedback link is displayed.

Examples found in repository?
src/client.rs (line 3096)
3095
3096
3097
3098
        pub fn feedback_url(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.feedback_url(input.into());
            self
        }

The URL that users are redirected to after they click the Send Feedback link. If no URL is specified, no Send Feedback link is displayed.

Examples found in repository?
src/client.rs (line 3101)
3100
3101
3102
3103
        pub fn set_feedback_url(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_feedback_url(input);
            self
        }

Appends an item to user_settings.

To override the contents of this collection use set_user_settings.

The actions that are enabled or disabled for users during their streaming sessions. By default, these actions are enabled.

Examples found in repository?
src/client.rs (line 3110)
3109
3110
3111
3112
        pub fn user_settings(mut self, input: crate::model::UserSetting) -> Self {
            self.inner = self.inner.user_settings(input);
            self
        }

The actions that are enabled or disabled for users during their streaming sessions. By default, these actions are enabled.

Examples found in repository?
src/client.rs (line 3118)
3114
3115
3116
3117
3118
3119
3120
        pub fn set_user_settings(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::UserSetting>>,
        ) -> Self {
            self.inner = self.inner.set_user_settings(input);
            self
        }

The persistent application settings for users of a stack. When these settings are enabled, changes that users make to applications and Windows settings are automatically saved after each session and applied to the next session.

Examples found in repository?
src/client.rs (line 3123)
3122
3123
3124
3125
        pub fn application_settings(mut self, input: crate::model::ApplicationSettings) -> Self {
            self.inner = self.inner.application_settings(input);
            self
        }

The persistent application settings for users of a stack. When these settings are enabled, changes that users make to applications and Windows settings are automatically saved after each session and applied to the next session.

Examples found in repository?
src/client.rs (line 3131)
3127
3128
3129
3130
3131
3132
3133
        pub fn set_application_settings(
            mut self,
            input: std::option::Option<crate::model::ApplicationSettings>,
        ) -> Self {
            self.inner = self.inner.set_application_settings(input);
            self
        }

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

The tags to associate with the stack. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.

If you do not specify a value, the value is set to an empty string.

Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:

_ . : / = + \ - @

For more information about tags, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide.

Examples found in repository?
src/client.rs (line 3148)
3143
3144
3145
3146
3147
3148
3149
3150
        pub fn tags(
            mut self,
            k: impl Into<std::string::String>,
            v: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.tags(k.into(), v.into());
            self
        }

The tags to associate with the stack. A tag is a key-value pair, and the value is optional. For example, Environment=Test. If you do not specify a value, Environment=.

If you do not specify a value, the value is set to an empty string.

Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following special characters:

_ . : / = + \ - @

For more information about tags, see Tagging Your Resources in the Amazon AppStream 2.0 Administration Guide.

Examples found in repository?
src/client.rs (line 3162)
3156
3157
3158
3159
3160
3161
3162
3163
3164
        pub fn set_tags(
            mut self,
            input: std::option::Option<
                std::collections::HashMap<std::string::String, std::string::String>,
            >,
        ) -> Self {
            self.inner = self.inner.set_tags(input);
            self
        }

Appends an item to access_endpoints.

To override the contents of this collection use set_access_endpoints.

The list of interface VPC endpoint (interface endpoint) objects. Users of the stack can connect to AppStream 2.0 only through the specified endpoints.

Examples found in repository?
src/client.rs (line 3171)
3170
3171
3172
3173
        pub fn access_endpoints(mut self, input: crate::model::AccessEndpoint) -> Self {
            self.inner = self.inner.access_endpoints(input);
            self
        }

The list of interface VPC endpoint (interface endpoint) objects. Users of the stack can connect to AppStream 2.0 only through the specified endpoints.

Examples found in repository?
src/client.rs (line 3179)
3175
3176
3177
3178
3179
3180
3181
        pub fn set_access_endpoints(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::AccessEndpoint>>,
        ) -> Self {
            self.inner = self.inner.set_access_endpoints(input);
            self
        }

Appends an item to embed_host_domains.

To override the contents of this collection use set_embed_host_domains.

The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions.

Examples found in repository?
src/client.rs (line 3188)
3187
3188
3189
3190
        pub fn embed_host_domains(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.embed_host_domains(input.into());
            self
        }

The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions.

Examples found in repository?
src/client.rs (line 3196)
3192
3193
3194
3195
3196
3197
3198
        pub fn set_embed_host_domains(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_embed_host_domains(input);
            self
        }

The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.

Examples found in repository?
src/client.rs (line 3204)
3200
3201
3202
3203
3204
3205
3206
        pub fn streaming_experience_settings(
            mut self,
            input: crate::model::StreamingExperienceSettings,
        ) -> Self {
            self.inner = self.inner.streaming_experience_settings(input);
            self
        }

The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.

Examples found in repository?
src/client.rs (line 3212)
3208
3209
3210
3211
3212
3213
3214
        pub fn set_streaming_experience_settings(
            mut self,
            input: std::option::Option<crate::model::StreamingExperienceSettings>,
        ) -> Self {
            self.inner = self.inner.set_streaming_experience_settings(input);
            self
        }

Consumes the builder and constructs a CreateStackInput.

Examples found in repository?
src/client.rs (line 3006)
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateStack,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateStackError>,
        > {
            let handle = self.handle.clone();
            let operation = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            Ok(crate::operation::customize::CustomizableOperation { handle, operation })
        }

        /// Sends the request and returns the response.
        ///
        /// If an error occurs, an `SdkError` will be returned with additional details that
        /// can be matched against.
        ///
        /// By default, any retryable failures will be retried twice. Retry behavior
        /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
        /// set when configuring the client.
        pub async fn send(
            self,
        ) -> std::result::Result<
            crate::output::CreateStackOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateStackError>,
        > {
            let op = self
                .inner
                .build()
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?
                .make_operation(&self.handle.conf)
                .await
                .map_err(aws_smithy_http::result::SdkError::construction_failure)?;
            self.handle.client.call(op).await
        }

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more