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

A builder for CreateEnvironmentInput.

Implementations§

The unique identifier of the environment.

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

The unique identifier of the environment.

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

The type of instance for the environment.

Examples found in repository?
src/client.rs (line 1090)
1089
1090
1091
1092
        pub fn instance_type(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.instance_type(input.into());
            self
        }

The type of instance for the environment.

Examples found in repository?
src/client.rs (line 1098)
1094
1095
1096
1097
1098
1099
1100
        pub fn set_instance_type(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_instance_type(input);
            self
        }

The description of the environment.

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

The description of the environment.

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

The engine type for the environment.

Examples found in repository?
src/client.rs (line 1113)
1112
1113
1114
1115
        pub fn engine_type(mut self, input: crate::model::EngineType) -> Self {
            self.inner = self.inner.engine_type(input);
            self
        }

The engine type for the environment.

Examples found in repository?
src/client.rs (line 1121)
1117
1118
1119
1120
1121
1122
1123
        pub fn set_engine_type(
            mut self,
            input: std::option::Option<crate::model::EngineType>,
        ) -> Self {
            self.inner = self.inner.set_engine_type(input);
            self
        }

The version of the engine type for the environment.

Examples found in repository?
src/client.rs (line 1126)
1125
1126
1127
1128
        pub fn engine_version(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.engine_version(input.into());
            self
        }

The version of the engine type for the environment.

Examples found in repository?
src/client.rs (line 1134)
1130
1131
1132
1133
1134
1135
1136
        pub fn set_engine_version(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_engine_version(input);
            self
        }

Appends an item to subnet_ids.

To override the contents of this collection use set_subnet_ids.

The list of subnets associated with the VPC for this environment.

Examples found in repository?
src/client.rs (line 1143)
1142
1143
1144
1145
        pub fn subnet_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.subnet_ids(input.into());
            self
        }

The list of subnets associated with the VPC for this environment.

Examples found in repository?
src/client.rs (line 1151)
1147
1148
1149
1150
1151
1152
1153
        pub fn set_subnet_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_subnet_ids(input);
            self
        }

Appends an item to security_group_ids.

To override the contents of this collection use set_security_group_ids.

The list of security groups for the VPC associated with this environment.

Examples found in repository?
src/client.rs (line 1160)
1159
1160
1161
1162
        pub fn security_group_ids(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.security_group_ids(input.into());
            self
        }

The list of security groups for the VPC associated with this environment.

Examples found in repository?
src/client.rs (line 1168)
1164
1165
1166
1167
1168
1169
1170
        pub fn set_security_group_ids(
            mut self,
            input: std::option::Option<std::vec::Vec<std::string::String>>,
        ) -> Self {
            self.inner = self.inner.set_security_group_ids(input);
            self
        }

Appends an item to storage_configurations.

To override the contents of this collection use set_storage_configurations.

Optional. The storage configurations for this environment.

Examples found in repository?
src/client.rs (line 1177)
1176
1177
1178
1179
        pub fn storage_configurations(mut self, input: crate::model::StorageConfiguration) -> Self {
            self.inner = self.inner.storage_configurations(input);
            self
        }

Optional. The storage configurations for this environment.

Examples found in repository?
src/client.rs (line 1185)
1181
1182
1183
1184
1185
1186
1187
        pub fn set_storage_configurations(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::StorageConfiguration>>,
        ) -> Self {
            self.inner = self.inner.set_storage_configurations(input);
            self
        }

Specifies whether the environment is publicly accessible.

Examples found in repository?
src/client.rs (line 1190)
1189
1190
1191
1192
        pub fn publicly_accessible(mut self, input: bool) -> Self {
            self.inner = self.inner.publicly_accessible(input);
            self
        }

Specifies whether the environment is publicly accessible.

Examples found in repository?
src/client.rs (line 1195)
1194
1195
1196
1197
        pub fn set_publicly_accessible(mut self, input: std::option::Option<bool>) -> Self {
            self.inner = self.inner.set_publicly_accessible(input);
            self
        }

The details of a high availability configuration for this runtime environment.

Examples found in repository?
src/client.rs (line 1203)
1199
1200
1201
1202
1203
1204
1205
        pub fn high_availability_config(
            mut self,
            input: crate::model::HighAvailabilityConfig,
        ) -> Self {
            self.inner = self.inner.high_availability_config(input);
            self
        }

The details of a high availability configuration for this runtime environment.

Examples found in repository?
src/client.rs (line 1211)
1207
1208
1209
1210
1211
1212
1213
        pub fn set_high_availability_config(
            mut self,
            input: std::option::Option<crate::model::HighAvailabilityConfig>,
        ) -> Self {
            self.inner = self.inner.set_high_availability_config(input);
            self
        }

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

The tags for the environment.

Examples found in repository?
src/client.rs (line 1224)
1219
1220
1221
1222
1223
1224
1225
1226
        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 for the environment.

Examples found in repository?
src/client.rs (line 1234)
1228
1229
1230
1231
1232
1233
1234
1235
1236
        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
        }

Configures a desired maintenance window for the environment. If you do not provide a value, a random system-generated value will be assigned.

Examples found in repository?
src/client.rs (line 1242)
1238
1239
1240
1241
1242
1243
1244
        pub fn preferred_maintenance_window(
            mut self,
            input: impl Into<std::string::String>,
        ) -> Self {
            self.inner = self.inner.preferred_maintenance_window(input.into());
            self
        }

Configures a desired maintenance window for the environment. If you do not provide a value, a random system-generated value will be assigned.

Examples found in repository?
src/client.rs (line 1250)
1246
1247
1248
1249
1250
1251
1252
        pub fn set_preferred_maintenance_window(
            mut self,
            input: std::option::Option<std::string::String>,
        ) -> Self {
            self.inner = self.inner.set_preferred_maintenance_window(input);
            self
        }

Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create an environment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

Examples found in repository?
src/client.rs (line 1255)
1254
1255
1256
1257
        pub fn client_token(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.client_token(input.into());
            self
        }

Unique, case-sensitive identifier you provide to ensure the idempotency of the request to create an environment. The service generates the clientToken when the API call is triggered. The token expires after one hour, so if you retry the API within this timeframe with the same clientToken, you will get the same response. The service also handles deleting the clientToken after it expires.

Examples found in repository?
src/client.rs (line 1260)
1259
1260
1261
1262
        pub fn set_client_token(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_client_token(input);
            self
        }

Consumes the builder and constructs a CreateEnvironmentInput.

Examples found in repository?
src/client.rs (line 1047)
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateEnvironment,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateEnvironmentError>,
        > {
            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::CreateEnvironmentOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateEnvironmentError>,
        > {
            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