Class CfnInferenceScheduler
- All Implemented Interfaces:
IInspectable,ITaggable,IInferenceSchedulerRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
Scheduling an inference is setting up a continuous real-time inference plan to analyze new measurement data. When setting up the schedule, you provide an Amazon S3 bucket location for the input data, assign it a delimiter between separate entries in the data, set an offset delay if desired, and set the frequency of inferencing. You must also provide an Amazon S3 bucket location for the output data.
Updating some properties below (for example, InferenceSchedulerName and ServerSideKmsKeyId) triggers a resource replacement, which requires a new model. To replace such a property using AWS CloudFormation , but without creating a completely new stack, you must replace ModelName. If you need to replace the property, but want to use the same model, delete the current stack and create a new one with the updated properties.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lookoutequipment.*;
Object dataInputConfiguration;
Object dataOutputConfiguration;
CfnInferenceScheduler cfnInferenceScheduler = CfnInferenceScheduler.Builder.create(this, "MyCfnInferenceScheduler")
.dataInputConfiguration(dataInputConfiguration)
.dataOutputConfiguration(dataOutputConfiguration)
.dataUploadFrequency("dataUploadFrequency")
.modelName("modelName")
.roleArn("roleArn")
// the properties below are optional
.dataDelayOffsetInMinutes(123)
.inferenceSchedulerName("inferenceSchedulerName")
.serverSideKmsKeyId("serverSideKmsKeyId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnInferenceScheduler.static interfaceSpecifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.static interfaceSpecifies configuration information for the output results for the inference scheduler, including the S3 location for the output.static interfaceSpecifies configuration information for the input data for the inference, including timestamp format and delimiter.static interfaceSpecifies configuration information for the input data for the inference, including input data S3 location.static interfaceSpecifies configuration information for the output results from the inference, including output S3 location.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.lookoutequipment.IInferenceSchedulerRef
IInferenceSchedulerRef.Jsii$Default, IInferenceSchedulerRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnInferenceScheduler(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnInferenceScheduler(software.amazon.jsii.JsiiObjectRef objRef) CfnInferenceScheduler(software.constructs.Construct scope, String id, CfnInferenceSchedulerProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the inference scheduler being created.A period of time (in minutes) by which inference on the data is delayed after the data starts.Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.Specifies configuration information for the output results for the inference scheduler, including the Amazon S3 location for the output.How often data is uploaded to the source S3 bucket for the input data.The name of the inference scheduler.A reference to a InferenceScheduler resource.The name of the machine learning model used for the inference scheduler.The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference.Provides the identifier of the AWS KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment .getTags()Tag Manager which manages the tags for this resource.Any tags associated with the inference scheduler.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidA period of time (in minutes) by which inference on the data is delayed after the data starts.voidsetDataInputConfiguration(Object value) Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.voidsetDataOutputConfiguration(Object value) Specifies configuration information for the output results for the inference scheduler, including the Amazon S3 location for the output.voidsetDataUploadFrequency(String value) How often data is uploaded to the source S3 bucket for the input data.voidsetInferenceSchedulerName(String value) The name of the inference scheduler.voidsetModelName(String value) The name of the machine learning model used for the inference scheduler.voidsetRoleArn(String value) The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference.voidsetServerSideKmsKeyId(String value) Provides the identifier of the AWS KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment .voidsetTagsRaw(List<CfnTag> value) Any tags associated with the inference scheduler.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnInferenceScheduler
protected CfnInferenceScheduler(software.amazon.jsii.JsiiObjectRef objRef) -
CfnInferenceScheduler
protected CfnInferenceScheduler(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnInferenceScheduler
@Stability(Stable) public CfnInferenceScheduler(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnInferenceSchedulerProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrInferenceSchedulerArn
The Amazon Resource Name (ARN) of the inference scheduler being created. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getInferenceSchedulerRef
A reference to a InferenceScheduler resource.- Specified by:
getInferenceSchedulerRefin interfaceIInferenceSchedulerRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDataInputConfiguration
Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location. -
setDataInputConfiguration
Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location. -
getDataOutputConfiguration
Specifies configuration information for the output results for the inference scheduler, including the Amazon S3 location for the output. -
setDataOutputConfiguration
Specifies configuration information for the output results for the inference scheduler, including the Amazon S3 location for the output. -
getDataUploadFrequency
How often data is uploaded to the source S3 bucket for the input data. -
setDataUploadFrequency
How often data is uploaded to the source S3 bucket for the input data. -
getModelName
The name of the machine learning model used for the inference scheduler. -
setModelName
The name of the machine learning model used for the inference scheduler. -
getRoleArn
The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference. -
setRoleArn
The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference. -
getDataDelayOffsetInMinutes
A period of time (in minutes) by which inference on the data is delayed after the data starts. -
setDataDelayOffsetInMinutes
A period of time (in minutes) by which inference on the data is delayed after the data starts. -
getInferenceSchedulerName
The name of the inference scheduler. -
setInferenceSchedulerName
The name of the inference scheduler. -
getServerSideKmsKeyId
Provides the identifier of the AWS KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment . -
setServerSideKmsKeyId
Provides the identifier of the AWS KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment . -
getTagsRaw
Any tags associated with the inference scheduler. -
setTagsRaw
Any tags associated with the inference scheduler.
-