Class: Aws::Comprehend::Types::ImportModelRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::Comprehend::Types::ImportModelRequest
- Defined in:
- gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb
Overview
When making an API call, you may pass ImportModelRequest data as a hash:
{
source_model_arn: "ComprehendModelArn", # required
model_name: "ComprehendArnName",
version_name: "VersionName",
model_kms_key_id: "KmsKeyId",
data_access_role_arn: "IamRoleArn",
tags: [
{
key: "TagKey", # required
value: "TagValue",
},
],
}
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#data_access_role_arn ⇒ String
The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that allows Amazon Comprehend to use Amazon Key Management Service (KMS) to encrypt or decrypt the custom model.
-
#model_kms_key_id ⇒ String
ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt trained custom models.
-
#model_name ⇒ String
The name to assign to the custom model that is created in Amazon Comprehend by this import.
-
#source_model_arn ⇒ String
The Amazon Resource Name (ARN) of the custom model to import.
-
#tags ⇒ Array<Types::Tag>
Tags to be associated with the custom model that is created by this import.
-
#version_name ⇒ String
The version name given to the custom model that is created by this import.
Instance Attribute Details
#data_access_role_arn ⇒ String
The Amazon Resource Name (ARN) of the AWS Identity and Management (IAM) role that allows Amazon Comprehend to use Amazon Key Management Service (KMS) to encrypt or decrypt the custom model.
3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 3898 class ImportModelRequest < Struct.new( :source_model_arn, :model_name, :version_name, :model_kms_key_id, :data_access_role_arn, :tags) SENSITIVE = [] include Aws::Structure end |
#model_kms_key_id ⇒ String
ID for the AWS Key Management Service (KMS) key that Amazon Comprehend uses to encrypt trained custom models. The ModelKmsKeyId can be either of the following formats:
KMS Key ID:
"1234abcd-12ab-34cd-56ef-1234567890ab"
Amazon Resource Name (ARN) of a KMS Key:
"arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab"
3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 3898 class ImportModelRequest < Struct.new( :source_model_arn, :model_name, :version_name, :model_kms_key_id, :data_access_role_arn, :tags) SENSITIVE = [] include Aws::Structure end |
#model_name ⇒ String
The name to assign to the custom model that is created in Amazon Comprehend by this import.
3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 3898 class ImportModelRequest < Struct.new( :source_model_arn, :model_name, :version_name, :model_kms_key_id, :data_access_role_arn, :tags) SENSITIVE = [] include Aws::Structure end |
#source_model_arn ⇒ String
The Amazon Resource Name (ARN) of the custom model to import.
3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 3898 class ImportModelRequest < Struct.new( :source_model_arn, :model_name, :version_name, :model_kms_key_id, :data_access_role_arn, :tags) SENSITIVE = [] include Aws::Structure end |
#tags ⇒ Array<Types::Tag>
Tags to be associated with the custom model that is created by this import. A tag is a key-value pair that adds as a metadata to a resource used by Amazon Comprehend. For example, a tag with "Sales" as the key might be added to a resource to indicate its use by the sales department.
3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 3898 class ImportModelRequest < Struct.new( :source_model_arn, :model_name, :version_name, :model_kms_key_id, :data_access_role_arn, :tags) SENSITIVE = [] include Aws::Structure end |
#version_name ⇒ String
The version name given to the custom model that is created by this import. Version names can have a maximum of 256 characters. Alphanumeric characters, hyphens (-) and underscores (_) are allowed. The version name must be unique among all models with the same classifier name in the account/AWS Region.
3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 |
# File 'gems/aws-sdk-comprehend/lib/aws-sdk-comprehend/types.rb', line 3898 class ImportModelRequest < Struct.new( :source_model_arn, :model_name, :version_name, :model_kms_key_id, :data_access_role_arn, :tags) SENSITIVE = [] include Aws::Structure end |