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

A builder for CreateProfileJobInput.

Implementations§

The name of the dataset that this job is to act upon.

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

The name of the dataset that this job is to act upon.

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

The Amazon Resource Name (ARN) of an encryption key that is used to protect the job.

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

The Amazon Resource Name (ARN) of an encryption key that is used to protect the job.

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

The encryption mode for the job, which can be one of the following:

  • SSE-KMS - SSE-KMS - Server-side encryption with KMS-managed keys.

  • SSE-S3 - Server-side encryption with keys managed by Amazon S3.

Examples found in repository?
src/client.rs (line 1106)
1105
1106
1107
1108
        pub fn encryption_mode(mut self, input: crate::model::EncryptionMode) -> Self {
            self.inner = self.inner.encryption_mode(input);
            self
        }

The encryption mode for the job, which can be one of the following:

  • SSE-KMS - SSE-KMS - Server-side encryption with KMS-managed keys.

  • SSE-S3 - Server-side encryption with keys managed by Amazon S3.

Examples found in repository?
src/client.rs (line 1118)
1114
1115
1116
1117
1118
1119
1120
        pub fn set_encryption_mode(
            mut self,
            input: std::option::Option<crate::model::EncryptionMode>,
        ) -> Self {
            self.inner = self.inner.set_encryption_mode(input);
            self
        }

The name of the job to be created. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

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

The name of the job to be created. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.

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

Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log stream for each job run.

Examples found in repository?
src/client.rs (line 1133)
1132
1133
1134
1135
        pub fn log_subscription(mut self, input: crate::model::LogSubscription) -> Self {
            self.inner = self.inner.log_subscription(input);
            self
        }

Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log stream for each job run.

Examples found in repository?
src/client.rs (line 1141)
1137
1138
1139
1140
1141
1142
1143
        pub fn set_log_subscription(
            mut self,
            input: std::option::Option<crate::model::LogSubscription>,
        ) -> Self {
            self.inner = self.inner.set_log_subscription(input);
            self
        }

The maximum number of nodes that DataBrew can use when the job processes data.

Examples found in repository?
src/client.rs (line 1146)
1145
1146
1147
1148
        pub fn max_capacity(mut self, input: i32) -> Self {
            self.inner = self.inner.max_capacity(input);
            self
        }

The maximum number of nodes that DataBrew can use when the job processes data.

Examples found in repository?
src/client.rs (line 1151)
1150
1151
1152
1153
        pub fn set_max_capacity(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_max_capacity(input);
            self
        }

The maximum number of times to retry the job after a job run fails.

Examples found in repository?
src/client.rs (line 1156)
1155
1156
1157
1158
        pub fn max_retries(mut self, input: i32) -> Self {
            self.inner = self.inner.max_retries(input);
            self
        }

The maximum number of times to retry the job after a job run fails.

Examples found in repository?
src/client.rs (line 1161)
1160
1161
1162
1163
        pub fn set_max_retries(mut self, input: std::option::Option<i32>) -> Self {
            self.inner = self.inner.set_max_retries(input);
            self
        }

Represents an Amazon S3 location (bucket name, bucket owner, and object key) where DataBrew can read input data, or write output from a job.

Examples found in repository?
src/client.rs (line 1166)
1165
1166
1167
1168
        pub fn output_location(mut self, input: crate::model::S3Location) -> Self {
            self.inner = self.inner.output_location(input);
            self
        }

Represents an Amazon S3 location (bucket name, bucket owner, and object key) where DataBrew can read input data, or write output from a job.

Examples found in repository?
src/client.rs (line 1174)
1170
1171
1172
1173
1174
1175
1176
        pub fn set_output_location(
            mut self,
            input: std::option::Option<crate::model::S3Location>,
        ) -> Self {
            self.inner = self.inner.set_output_location(input);
            self
        }

Configuration for profile jobs. Used to select columns, do evaluations, and override default parameters of evaluations. When configuration is null, the profile job will run with default settings.

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

Configuration for profile jobs. Used to select columns, do evaluations, and override default parameters of evaluations. When configuration is null, the profile job will run with default settings.

Examples found in repository?
src/client.rs (line 1187)
1183
1184
1185
1186
1187
1188
1189
        pub fn set_configuration(
            mut self,
            input: std::option::Option<crate::model::ProfileConfiguration>,
        ) -> Self {
            self.inner = self.inner.set_configuration(input);
            self
        }

Appends an item to validation_configurations.

To override the contents of this collection use set_validation_configurations.

List of validation configurations that are applied to the profile job.

Examples found in repository?
src/client.rs (line 1199)
1195
1196
1197
1198
1199
1200
1201
        pub fn validation_configurations(
            mut self,
            input: crate::model::ValidationConfiguration,
        ) -> Self {
            self.inner = self.inner.validation_configurations(input);
            self
        }

List of validation configurations that are applied to the profile job.

Examples found in repository?
src/client.rs (line 1207)
1203
1204
1205
1206
1207
1208
1209
        pub fn set_validation_configurations(
            mut self,
            input: std::option::Option<std::vec::Vec<crate::model::ValidationConfiguration>>,
        ) -> Self {
            self.inner = self.inner.set_validation_configurations(input);
            self
        }

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.

Examples found in repository?
src/client.rs (line 1212)
1211
1212
1213
1214
        pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
            self.inner = self.inner.role_arn(input.into());
            self
        }

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.

Examples found in repository?
src/client.rs (line 1217)
1216
1217
1218
1219
        pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
            self.inner = self.inner.set_role_arn(input);
            self
        }

Adds a key-value pair to tags.

To override the contents of this collection use set_tags.

Metadata tags to apply to this job.

Examples found in repository?
src/client.rs (line 1230)
1225
1226
1227
1228
1229
1230
1231
1232
        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
        }

Metadata tags to apply to this job.

Examples found in repository?
src/client.rs (line 1240)
1234
1235
1236
1237
1238
1239
1240
1241
1242
        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
        }

The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of TIMEOUT.

Examples found in repository?
src/client.rs (line 1245)
1244
1245
1246
1247
        pub fn timeout(mut self, input: i32) -> Self {
            self.inner = self.inner.timeout(input);
            self
        }

The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of TIMEOUT.

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

Sample configuration for profile jobs only. Determines the number of rows on which the profile job will be executed. If a JobSample value is not provided, the default value will be used. The default value is CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.

Examples found in repository?
src/client.rs (line 1255)
1254
1255
1256
1257
        pub fn job_sample(mut self, input: crate::model::JobSample) -> Self {
            self.inner = self.inner.job_sample(input);
            self
        }

Sample configuration for profile jobs only. Determines the number of rows on which the profile job will be executed. If a JobSample value is not provided, the default value will be used. The default value is CUSTOM_ROWS for the mode parameter and 20000 for the size parameter.

Examples found in repository?
src/client.rs (line 1263)
1259
1260
1261
1262
1263
1264
1265
        pub fn set_job_sample(
            mut self,
            input: std::option::Option<crate::model::JobSample>,
        ) -> Self {
            self.inner = self.inner.set_job_sample(input);
            self
        }

Consumes the builder and constructs a CreateProfileJobInput.

Examples found in repository?
src/client.rs (line 1046)
1034
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
        pub async fn customize(
            self,
        ) -> std::result::Result<
            crate::operation::customize::CustomizableOperation<
                crate::operation::CreateProfileJob,
                aws_http::retry::AwsResponseRetryClassifier,
            >,
            aws_smithy_http::result::SdkError<crate::error::CreateProfileJobError>,
        > {
            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::CreateProfileJobOutput,
            aws_smithy_http::result::SdkError<crate::error::CreateProfileJobError>,
        > {
            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