@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InputDataConfig extends Object implements Serializable, Cloneable, StructuredPojo
Contains the Amazon S3 location of the training data you want to use to create a new custom language model, and permissions to access this location.
When using InputDataConfig
, you must include these sub-parameters: S3Uri
and
DataAccessRoleArn
. You can optionally include TuningDataS3Uri
.
Constructor and Description |
---|
InputDataConfig() |
Modifier and Type | Method and Description |
---|---|
InputDataConfig |
clone() |
boolean |
equals(Object obj) |
String |
getDataAccessRoleArn()
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains
your input files.
|
String |
getS3Uri()
The Amazon S3 location (URI) of the text files you want to use to train your custom language model.
|
String |
getTuningDataS3Uri()
The Amazon S3 location (URI) of the text files you want to use to tune your custom language model.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDataAccessRoleArn(String dataAccessRoleArn)
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains
your input files.
|
void |
setS3Uri(String s3Uri)
The Amazon S3 location (URI) of the text files you want to use to train your custom language model.
|
void |
setTuningDataS3Uri(String tuningDataS3Uri)
The Amazon S3 location (URI) of the text files you want to use to tune your custom language model.
|
String |
toString()
Returns a string representation of this object.
|
InputDataConfig |
withDataAccessRoleArn(String dataAccessRoleArn)
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains
your input files.
|
InputDataConfig |
withS3Uri(String s3Uri)
The Amazon S3 location (URI) of the text files you want to use to train your custom language model.
|
InputDataConfig |
withTuningDataS3Uri(String tuningDataS3Uri)
The Amazon S3 location (URI) of the text files you want to use to tune your custom language model.
|
public void setS3Uri(String s3Uri)
The Amazon S3 location (URI) of the text files you want to use to train your custom language model.
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-training-data/
s3Uri
- The Amazon S3 location (URI) of the text files you want to use to train your custom language model.
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-training-data/
public String getS3Uri()
The Amazon S3 location (URI) of the text files you want to use to train your custom language model.
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-training-data/
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-training-data/
public InputDataConfig withS3Uri(String s3Uri)
The Amazon S3 location (URI) of the text files you want to use to train your custom language model.
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-training-data/
s3Uri
- The Amazon S3 location (URI) of the text files you want to use to train your custom language model.
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-training-data/
public void setTuningDataS3Uri(String tuningDataS3Uri)
The Amazon S3 location (URI) of the text files you want to use to tune your custom language model.
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-tuning-data/
tuningDataS3Uri
- The Amazon S3 location (URI) of the text files you want to use to tune your custom language model.
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-tuning-data/
public String getTuningDataS3Uri()
The Amazon S3 location (URI) of the text files you want to use to tune your custom language model.
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-tuning-data/
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-tuning-data/
public InputDataConfig withTuningDataS3Uri(String tuningDataS3Uri)
The Amazon S3 location (URI) of the text files you want to use to tune your custom language model.
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-tuning-data/
tuningDataS3Uri
- The Amazon S3 location (URI) of the text files you want to use to tune your custom language model.
Here's an example URI path: s3://DOC-EXAMPLE-BUCKET/my-model-tuning-data/
public void setDataAccessRoleArn(String dataAccessRoleArn)
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input files. If the role that you specify doesn’t have the appropriate permissions to access the specified Amazon S3 location, your request fails.
IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path
. For example:
arn:aws:iam::111122223333:role/Admin
.
For more information, see IAM ARNs.
dataAccessRoleArn
- The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that
contains your input files. If the role that you specify doesn’t have the appropriate permissions to access
the specified Amazon S3 location, your request fails.
IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path
. For
example: arn:aws:iam::111122223333:role/Admin
.
For more information, see IAM ARNs.
public String getDataAccessRoleArn()
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input files. If the role that you specify doesn’t have the appropriate permissions to access the specified Amazon S3 location, your request fails.
IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path
. For example:
arn:aws:iam::111122223333:role/Admin
.
For more information, see IAM ARNs.
IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path
. For
example: arn:aws:iam::111122223333:role/Admin
.
For more information, see IAM ARNs.
public InputDataConfig withDataAccessRoleArn(String dataAccessRoleArn)
The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that contains your input files. If the role that you specify doesn’t have the appropriate permissions to access the specified Amazon S3 location, your request fails.
IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path
. For example:
arn:aws:iam::111122223333:role/Admin
.
For more information, see IAM ARNs.
dataAccessRoleArn
- The Amazon Resource Name (ARN) of an IAM role that has permissions to access the Amazon S3 bucket that
contains your input files. If the role that you specify doesn’t have the appropriate permissions to access
the specified Amazon S3 location, your request fails.
IAM role ARNs have the format arn:partition:iam::account:role/role-name-with-path
. For
example: arn:aws:iam::111122223333:role/Admin
.
For more information, see IAM ARNs.
public String toString()
toString
in class Object
Object.toString()
public InputDataConfig clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.