Struct aws_sdk_rekognition::operation::copy_project_version::builders::CopyProjectVersionInputBuilder
source · #[non_exhaustive]pub struct CopyProjectVersionInputBuilder { /* private fields */ }Expand description
A builder for CopyProjectVersionInput.
Implementations§
source§impl CopyProjectVersionInputBuilder
impl CopyProjectVersionInputBuilder
sourcepub fn source_project_arn(self, input: impl Into<String>) -> Self
pub fn source_project_arn(self, input: impl Into<String>) -> Self
The ARN of the source project in the trusting AWS account.
This field is required.sourcepub fn set_source_project_arn(self, input: Option<String>) -> Self
pub fn set_source_project_arn(self, input: Option<String>) -> Self
The ARN of the source project in the trusting AWS account.
sourcepub fn get_source_project_arn(&self) -> &Option<String>
pub fn get_source_project_arn(&self) -> &Option<String>
The ARN of the source project in the trusting AWS account.
sourcepub fn source_project_version_arn(self, input: impl Into<String>) -> Self
pub fn source_project_version_arn(self, input: impl Into<String>) -> Self
The ARN of the model version in the source project that you want to copy to a destination project.
This field is required.sourcepub fn set_source_project_version_arn(self, input: Option<String>) -> Self
pub fn set_source_project_version_arn(self, input: Option<String>) -> Self
The ARN of the model version in the source project that you want to copy to a destination project.
sourcepub fn get_source_project_version_arn(&self) -> &Option<String>
pub fn get_source_project_version_arn(&self) -> &Option<String>
The ARN of the model version in the source project that you want to copy to a destination project.
sourcepub fn destination_project_arn(self, input: impl Into<String>) -> Self
pub fn destination_project_arn(self, input: impl Into<String>) -> Self
The ARN of the project in the trusted AWS account that you want to copy the model version to.
This field is required.sourcepub fn set_destination_project_arn(self, input: Option<String>) -> Self
pub fn set_destination_project_arn(self, input: Option<String>) -> Self
The ARN of the project in the trusted AWS account that you want to copy the model version to.
sourcepub fn get_destination_project_arn(&self) -> &Option<String>
pub fn get_destination_project_arn(&self) -> &Option<String>
The ARN of the project in the trusted AWS account that you want to copy the model version to.
sourcepub fn version_name(self, input: impl Into<String>) -> Self
pub fn version_name(self, input: impl Into<String>) -> Self
A name for the version of the model that's copied to the destination project.
This field is required.sourcepub fn set_version_name(self, input: Option<String>) -> Self
pub fn set_version_name(self, input: Option<String>) -> Self
A name for the version of the model that's copied to the destination project.
sourcepub fn get_version_name(&self) -> &Option<String>
pub fn get_version_name(&self) -> &Option<String>
A name for the version of the model that's copied to the destination project.
sourcepub fn output_config(self, input: OutputConfig) -> Self
pub fn output_config(self, input: OutputConfig) -> Self
The S3 bucket and folder location where the training output for the source model version is placed.
This field is required.sourcepub fn set_output_config(self, input: Option<OutputConfig>) -> Self
pub fn set_output_config(self, input: Option<OutputConfig>) -> Self
The S3 bucket and folder location where the training output for the source model version is placed.
sourcepub fn get_output_config(&self) -> &Option<OutputConfig>
pub fn get_output_config(&self) -> &Option<OutputConfig>
The S3 bucket and folder location where the training output for the source model version is placed.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
The key-value tags to assign to the model version.
The key-value tags to assign to the model version.
The key-value tags to assign to the model version.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The identifier for your AWS Key Management Service key (AWS KMS key). You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN. The key is used to encrypt training results and manifest files written to the output Amazon S3 bucket (OutputConfig).
If you choose to use your own KMS key, you need the following permissions on the KMS key.
-
kms:CreateGrant
-
kms:DescribeKey
-
kms:GenerateDataKey
-
kms:Decrypt
If you don't specify a value for KmsKeyId, images copied into the service are encrypted using a key that AWS owns and manages.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The identifier for your AWS Key Management Service key (AWS KMS key). You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN. The key is used to encrypt training results and manifest files written to the output Amazon S3 bucket (OutputConfig).
If you choose to use your own KMS key, you need the following permissions on the KMS key.
-
kms:CreateGrant
-
kms:DescribeKey
-
kms:GenerateDataKey
-
kms:Decrypt
If you don't specify a value for KmsKeyId, images copied into the service are encrypted using a key that AWS owns and manages.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The identifier for your AWS Key Management Service key (AWS KMS key). You can supply the Amazon Resource Name (ARN) of your KMS key, the ID of your KMS key, an alias for your KMS key, or an alias ARN. The key is used to encrypt training results and manifest files written to the output Amazon S3 bucket (OutputConfig).
If you choose to use your own KMS key, you need the following permissions on the KMS key.
-
kms:CreateGrant
-
kms:DescribeKey
-
kms:GenerateDataKey
-
kms:Decrypt
If you don't specify a value for KmsKeyId, images copied into the service are encrypted using a key that AWS owns and manages.
sourcepub fn build(self) -> Result<CopyProjectVersionInput, BuildError>
pub fn build(self) -> Result<CopyProjectVersionInput, BuildError>
Consumes the builder and constructs a CopyProjectVersionInput.
source§impl CopyProjectVersionInputBuilder
impl CopyProjectVersionInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CopyProjectVersionOutput, SdkError<CopyProjectVersionError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CopyProjectVersionOutput, SdkError<CopyProjectVersionError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CopyProjectVersionInputBuilder
impl Clone for CopyProjectVersionInputBuilder
source§fn clone(&self) -> CopyProjectVersionInputBuilder
fn clone(&self) -> CopyProjectVersionInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CopyProjectVersionInputBuilder
impl Default for CopyProjectVersionInputBuilder
source§fn default() -> CopyProjectVersionInputBuilder
fn default() -> CopyProjectVersionInputBuilder
source§impl PartialEq for CopyProjectVersionInputBuilder
impl PartialEq for CopyProjectVersionInputBuilder
source§fn eq(&self, other: &CopyProjectVersionInputBuilder) -> bool
fn eq(&self, other: &CopyProjectVersionInputBuilder) -> bool
self and other values to be equal, and is used
by ==.