Class CfnInferenceScheduler

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.lookoutequipment.CfnInferenceScheduler
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-12-06T14:43:21.681Z") @Stability(Stable) public class CfnInferenceScheduler extends CfnResource implements IInspectable, ITaggable
Creates a scheduled inference.

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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String 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

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      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:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrInferenceSchedulerArn

      @Stability(Stable) @NotNull public String getAttrInferenceSchedulerArn()
      The Amazon Resource Name (ARN) of the inference scheduler being created.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getDataInputConfiguration

      @Stability(Stable) @NotNull public Object getDataInputConfiguration()
      Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.
    • setDataInputConfiguration

      @Stability(Stable) public void setDataInputConfiguration(@NotNull Object value)
      Specifies configuration information for the input data for the inference scheduler, including delimiter, format, and dataset location.
    • getDataOutputConfiguration

      @Stability(Stable) @NotNull public Object getDataOutputConfiguration()
      Specifies configuration information for the output results for the inference scheduler, including the Amazon S3 location for the output.
    • setDataOutputConfiguration

      @Stability(Stable) public void setDataOutputConfiguration(@NotNull Object value)
      Specifies configuration information for the output results for the inference scheduler, including the Amazon S3 location for the output.
    • getDataUploadFrequency

      @Stability(Stable) @NotNull public String getDataUploadFrequency()
      How often data is uploaded to the source S3 bucket for the input data.
    • setDataUploadFrequency

      @Stability(Stable) public void setDataUploadFrequency(@NotNull String value)
      How often data is uploaded to the source S3 bucket for the input data.
    • getModelName

      @Stability(Stable) @NotNull public String getModelName()
      The name of the machine learning model used for the inference scheduler.
    • setModelName

      @Stability(Stable) public void setModelName(@NotNull String value)
      The name of the machine learning model used for the inference scheduler.
    • getRoleArn

      @Stability(Stable) @NotNull public String getRoleArn()
      The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference.
    • setRoleArn

      @Stability(Stable) public void setRoleArn(@NotNull String value)
      The Amazon Resource Name (ARN) of a role with permission to access the data source being used for the inference.
    • getDataDelayOffsetInMinutes

      @Stability(Stable) @Nullable public Number getDataDelayOffsetInMinutes()
      A period of time (in minutes) by which inference on the data is delayed after the data starts.
    • setDataDelayOffsetInMinutes

      @Stability(Stable) public void setDataDelayOffsetInMinutes(@Nullable Number value)
      A period of time (in minutes) by which inference on the data is delayed after the data starts.
    • getInferenceSchedulerName

      @Stability(Stable) @Nullable public String getInferenceSchedulerName()
      The name of the inference scheduler.
    • setInferenceSchedulerName

      @Stability(Stable) public void setInferenceSchedulerName(@Nullable String value)
      The name of the inference scheduler.
    • getServerSideKmsKeyId

      @Stability(Stable) @Nullable public String getServerSideKmsKeyId()
      Provides the identifier of the AWS KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment .
    • setServerSideKmsKeyId

      @Stability(Stable) public void setServerSideKmsKeyId(@Nullable String value)
      Provides the identifier of the AWS KMS key used to encrypt inference scheduler data by Amazon Lookout for Equipment .
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      Any tags associated with the inference scheduler.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      Any tags associated with the inference scheduler.