SageMakergeospatialcapabilities.Client.
start_vector_enrichment_job
(**kwargs)¶Creates a Vector Enrichment job for the supplied job type. Currently, there are two supported job types: reverse geocoding and map matching.
See also: AWS API Documentation
Request Syntax
response = client.start_vector_enrichment_job(
ClientToken='string',
ExecutionRoleArn='string',
InputConfig={
'DataSourceConfig': {
'S3Data': {
'KmsKeyId': 'string',
'S3Uri': 'string'
}
},
'DocumentType': 'CSV'
},
JobConfig={
'MapMatchingConfig': {
'IdAttributeName': 'string',
'TimestampAttributeName': 'string',
'XAttributeName': 'string',
'YAttributeName': 'string'
},
'ReverseGeocodingConfig': {
'XAttributeName': 'string',
'YAttributeName': 'string'
}
},
KmsKeyId='string',
Name='string',
Tags={
'string': 'string'
}
)
A unique token that guarantees that the call to this API is idempotent.
This field is autopopulated if not provided.
[REQUIRED]
The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
[REQUIRED]
Input configuration information for the Vector Enrichment job.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: S3Data
.
The Amazon Key Management Service (KMS) key ID for server-side encryption.
The URL to the Amazon S3 data for the Vector Enrichment job.
[REQUIRED]
An object containing information about the job configuration.
Note
This is a Tagged Union structure. Only one of the following top level keys can be set: MapMatchingConfig
, ReverseGeocodingConfig
.
The name of the timestamp attribute.
The name of the X-attribute
The name of the Y-attribute
[REQUIRED]
The name of the Vector Enrichment job.
Each tag consists of a key and a value.
dict
Response Syntax
{
'Arn': 'string',
'CreationTime': datetime(2015, 1, 1),
'DurationInSeconds': 123,
'ExecutionRoleArn': 'string',
'InputConfig': {
'DataSourceConfig': {
'S3Data': {
'KmsKeyId': 'string',
'S3Uri': 'string'
}
},
'DocumentType': 'CSV'
},
'JobConfig': {
'MapMatchingConfig': {
'IdAttributeName': 'string',
'TimestampAttributeName': 'string',
'XAttributeName': 'string',
'YAttributeName': 'string'
},
'ReverseGeocodingConfig': {
'XAttributeName': 'string',
'YAttributeName': 'string'
}
},
'KmsKeyId': 'string',
'Name': 'string',
'Status': 'INITIALIZING'|'IN_PROGRESS'|'STOPPING'|'STOPPED'|'COMPLETED'|'FAILED'|'DELETING'|'DELETED',
'Tags': {
'string': 'string'
},
'Type': 'REVERSE_GEOCODING'|'MAP_MATCHING'
}
Response Structure
(dict) --
Arn (string) --
The Amazon Resource Name (ARN) of the Vector Enrichment job.
CreationTime (datetime) --
The creation time.
DurationInSeconds (integer) --
The duration of the Vector Enrichment job, in seconds.
ExecutionRoleArn (string) --
The Amazon Resource Name (ARN) of the IAM role that you specified for the job.
InputConfig (dict) --
Input configuration information for starting the Vector Enrichment job.
DataSourceConfig (dict) --
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: S3Data
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
S3Data (dict) --
KmsKeyId (string) --
The Amazon Key Management Service (KMS) key ID for server-side encryption.
S3Uri (string) --
The URL to the Amazon S3 data for the Vector Enrichment job.
DocumentType (string) --
JobConfig (dict) --
An object containing information about the job configuration.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set: MapMatchingConfig
, ReverseGeocodingConfig
. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER
as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER
is as follows:
'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
MapMatchingConfig (dict) --
IdAttributeName (string) --
TimestampAttributeName (string) --
The name of the timestamp attribute.
XAttributeName (string) --
The name of the X-attribute
YAttributeName (string) --
The name of the Y-attribute
ReverseGeocodingConfig (dict) --
KmsKeyId (string) --
The Amazon Key Management Service (KMS) key ID for server-side encryption.
Name (string) --
The name of the Vector Enrichment job.
Status (string) --
The status of the Vector Enrichment job being started.
Tags (dict) --
Each tag consists of a key and a value.
Type (string) --
The type of the Vector Enrichment job.
Exceptions
SageMakergeospatialcapabilities.Client.exceptions.ServiceQuotaExceededException
SageMakergeospatialcapabilities.Client.exceptions.AccessDeniedException
SageMakergeospatialcapabilities.Client.exceptions.ValidationException
SageMakergeospatialcapabilities.Client.exceptions.ThrottlingException
SageMakergeospatialcapabilities.Client.exceptions.InternalServerException
SageMakergeospatialcapabilities.Client.exceptions.ResourceNotFoundException
SageMakergeospatialcapabilities.Client.exceptions.ConflictException