Class AutoMLS3DataSource
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.AutoMLS3DataSource
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<AutoMLS3DataSource.Builder,AutoMLS3DataSource>
@Generated("software.amazon.awssdk:codegen") public final class AutoMLS3DataSource extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutoMLS3DataSource.Builder,AutoMLS3DataSource>
Describes the Amazon S3 data source.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AutoMLS3DataSource.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutoMLS3DataSource.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
AutoMLS3DataType
s3DataType()
The data type.String
s3DataTypeAsString()
The data type.String
s3Uri()
The URL to the Amazon S3 data source.Map<String,SdkField<?>>
sdkFieldNameToField()
List<SdkField<?>>
sdkFields()
static Class<? extends AutoMLS3DataSource.Builder>
serializableBuilderClass()
AutoMLS3DataSource.Builder
toBuilder()
String
toString()
Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
s3DataType
public final AutoMLS3DataType s3DataType()
The data type.
-
If you choose
S3Prefix
,S3Uri
identifies a key name prefix. SageMaker AI uses all objects that match the specified key name prefix for model training.The
S3Prefix
should have the following format:s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE
-
If you choose
ManifestFile
,S3Uri
identifies an object that is a manifest file containing a list of object keys that you want SageMaker AI to use for model training.A
ManifestFile
should have the format shown below:[ {"prefix": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/"},
"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1",
"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2",
... "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N" ]
-
If you choose
AugmentedManifestFile
,S3Uri
identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training.AugmentedManifestFile
is available for V2 API jobs only (for example, for jobs created by callingCreateAutoMLJobV2
).Here is a minimal, single-record example of an
AugmentedManifestFile
:{"source-ref": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/cats/cat.jpg",
"label-metadata": {"class-name": "cat"
For more information on
AugmentedManifestFile
, see Provide Dataset Metadata to Training Jobs with an Augmented Manifest File.
If the service returns an enum value that is not available in the current SDK version,
s3DataType
will returnAutoMLS3DataType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available froms3DataTypeAsString()
.- Returns:
- The data type.
-
If you choose
S3Prefix
,S3Uri
identifies a key name prefix. SageMaker AI uses all objects that match the specified key name prefix for model training.The
S3Prefix
should have the following format:s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE
-
If you choose
ManifestFile
,S3Uri
identifies an object that is a manifest file containing a list of object keys that you want SageMaker AI to use for model training.A
ManifestFile
should have the format shown below:[ {"prefix": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/"},
"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1",
"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2",
... "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N" ]
-
If you choose
AugmentedManifestFile
,S3Uri
identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training.AugmentedManifestFile
is available for V2 API jobs only (for example, for jobs created by callingCreateAutoMLJobV2
).Here is a minimal, single-record example of an
AugmentedManifestFile
:{"source-ref": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/cats/cat.jpg",
"label-metadata": {"class-name": "cat"
For more information on
AugmentedManifestFile
, see Provide Dataset Metadata to Training Jobs with an Augmented Manifest File.
-
- See Also:
AutoMLS3DataType
-
-
s3DataTypeAsString
public final String s3DataTypeAsString()
The data type.
-
If you choose
S3Prefix
,S3Uri
identifies a key name prefix. SageMaker AI uses all objects that match the specified key name prefix for model training.The
S3Prefix
should have the following format:s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE
-
If you choose
ManifestFile
,S3Uri
identifies an object that is a manifest file containing a list of object keys that you want SageMaker AI to use for model training.A
ManifestFile
should have the format shown below:[ {"prefix": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/"},
"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1",
"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2",
... "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N" ]
-
If you choose
AugmentedManifestFile
,S3Uri
identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training.AugmentedManifestFile
is available for V2 API jobs only (for example, for jobs created by callingCreateAutoMLJobV2
).Here is a minimal, single-record example of an
AugmentedManifestFile
:{"source-ref": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/cats/cat.jpg",
"label-metadata": {"class-name": "cat"
For more information on
AugmentedManifestFile
, see Provide Dataset Metadata to Training Jobs with an Augmented Manifest File.
If the service returns an enum value that is not available in the current SDK version,
s3DataType
will returnAutoMLS3DataType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available froms3DataTypeAsString()
.- Returns:
- The data type.
-
If you choose
S3Prefix
,S3Uri
identifies a key name prefix. SageMaker AI uses all objects that match the specified key name prefix for model training.The
S3Prefix
should have the following format:s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER-OR-FILE
-
If you choose
ManifestFile
,S3Uri
identifies an object that is a manifest file containing a list of object keys that you want SageMaker AI to use for model training.A
ManifestFile
should have the format shown below:[ {"prefix": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/DOC-EXAMPLE-PREFIX/"},
"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-1",
"DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-2",
... "DOC-EXAMPLE-RELATIVE-PATH/DOC-EXAMPLE-FOLDER/DATA-N" ]
-
If you choose
AugmentedManifestFile
,S3Uri
identifies an object that is an augmented manifest file in JSON lines format. This file contains the data you want to use for model training.AugmentedManifestFile
is available for V2 API jobs only (for example, for jobs created by callingCreateAutoMLJobV2
).Here is a minimal, single-record example of an
AugmentedManifestFile
:{"source-ref": "s3://DOC-EXAMPLE-BUCKET/DOC-EXAMPLE-FOLDER/cats/cat.jpg",
"label-metadata": {"class-name": "cat"
For more information on
AugmentedManifestFile
, see Provide Dataset Metadata to Training Jobs with an Augmented Manifest File.
-
- See Also:
AutoMLS3DataType
-
-
s3Uri
public final String s3Uri()
The URL to the Amazon S3 data source. The Uri refers to the Amazon S3 prefix or ManifestFile depending on the data type.
- Returns:
- The URL to the Amazon S3 data source. The Uri refers to the Amazon S3 prefix or ManifestFile depending on the data type.
-
toBuilder
public AutoMLS3DataSource.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<AutoMLS3DataSource.Builder,AutoMLS3DataSource>
-
builder
public static AutoMLS3DataSource.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutoMLS3DataSource.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToField
in interfaceSdkPojo
-
-