EndpointConfigEvents

class aws_cdk.mixins_preview.aws_sagemaker.events.EndpointConfigEvents(*args: Any, **kwargs)

Bases: object

(experimental) EventBridge event patterns for EndpointConfig.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_sagemaker import events as sagemaker_events
from aws_cdk.interfaces import aws_sagemaker as interfaces_aws_sagemaker

# endpoint_config_ref: interfaces_aws_sagemaker.IEndpointConfigRef

endpoint_config_events = sagemaker_events.EndpointConfigEvents.from_endpoint_config(endpoint_config_ref)

Methods

sage_maker_endpoint_config_state_change_pattern(*, creation_time=None, endpoint_config_arn=None, endpoint_config_name=None, event_metadata=None, production_variants=None, tags=None)

(experimental) EventBridge event pattern for EndpointConfig SageMaker Endpoint Config State Change.

Parameters:
  • creation_time (Optional[Sequence[str]]) – (experimental) CreationTime property. Specify an array of string values to match this event if the actual value of CreationTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • endpoint_config_arn (Optional[Sequence[str]]) – (experimental) EndpointConfigArn property. Specify an array of string values to match this event if the actual value of EndpointConfigArn is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • endpoint_config_name (Optional[Sequence[str]]) – (experimental) EndpointConfigName property. Specify an array of string values to match this event if the actual value of EndpointConfigName is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Filter with the EndpointConfig reference

  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

  • production_variants (Optional[Sequence[Union[SageMakerEndpointConfigStateChangeItem, Dict[str, Any]]]]) – (experimental) ProductionVariants property. Specify an array of string values to match this event if the actual value of ProductionVariants is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • tags (Optional[Sequence[Union[Tags, Dict[str, Any]]]]) – (experimental) Tags property. Specify an array of string values to match this event if the actual value of Tags is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

Return type:

EventPattern

Static Methods

classmethod from_endpoint_config(endpoint_config_ref)

(experimental) Create EndpointConfigEvents from a EndpointConfig reference.

Parameters:

endpoint_config_ref (IEndpointConfigRef)

Stability:

experimental

Return type:

EndpointConfigEvents

SageMakerEndpointConfigStateChange

class EndpointConfigEvents.SageMakerEndpointConfigStateChange

Bases: object

(experimental) aws.sagemaker@SageMakerEndpointConfigStateChange event types for EndpointConfig.

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_sagemaker import events as sagemaker_events

sage_maker_endpoint_config_state_change = sagemaker_events.EndpointConfigEvents.SageMakerEndpointConfigStateChange()
Stability:

experimental

SageMakerEndpointConfigStateChangeItem

class EndpointConfigEvents.SageMakerEndpointConfigStateChange.SageMakerEndpointConfigStateChangeItem(*, initial_instance_count=None, initial_variant_weight=None, instance_type=None, model_name=None, variant_name=None)

Bases: object

(experimental) Type definition for SageMakerEndpointConfigStateChangeItem.

Parameters:
  • initial_instance_count (Optional[Sequence[str]]) – (experimental) InitialInstanceCount property. Specify an array of string values to match this event if the actual value of InitialInstanceCount is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • initial_variant_weight (Optional[Sequence[str]]) – (experimental) InitialVariantWeight property. Specify an array of string values to match this event if the actual value of InitialVariantWeight is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • instance_type (Optional[Sequence[str]]) – (experimental) InstanceType property. Specify an array of string values to match this event if the actual value of InstanceType is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • model_name (Optional[Sequence[str]]) – (experimental) ModelName property. Specify an array of string values to match this event if the actual value of ModelName is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • variant_name (Optional[Sequence[str]]) – (experimental) VariantName property. Specify an array of string values to match this event if the actual value of VariantName is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_sagemaker import events as sagemaker_events

sage_maker_endpoint_config_state_change_item = sagemaker_events.EndpointConfigEvents.SageMakerEndpointConfigStateChange.SageMakerEndpointConfigStateChangeItem(
    initial_instance_count=["initialInstanceCount"],
    initial_variant_weight=["initialVariantWeight"],
    instance_type=["instanceType"],
    model_name=["modelName"],
    variant_name=["variantName"]
)

Attributes

initial_instance_count

(experimental) InitialInstanceCount property.

Specify an array of string values to match this event if the actual value of InitialInstanceCount is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

initial_variant_weight

(experimental) InitialVariantWeight property.

Specify an array of string values to match this event if the actual value of InitialVariantWeight is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

instance_type

(experimental) InstanceType property.

Specify an array of string values to match this event if the actual value of InstanceType is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

model_name

(experimental) ModelName property.

Specify an array of string values to match this event if the actual value of ModelName is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

variant_name

(experimental) VariantName property.

Specify an array of string values to match this event if the actual value of VariantName is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

SageMakerEndpointConfigStateChangeProps

class EndpointConfigEvents.SageMakerEndpointConfigStateChange.SageMakerEndpointConfigStateChangeProps(*, creation_time=None, endpoint_config_arn=None, endpoint_config_name=None, event_metadata=None, production_variants=None, tags=None)

Bases: object

(experimental) Props type for EndpointConfig aws.sagemaker@SageMakerEndpointConfigStateChange event.

Parameters:
  • creation_time (Optional[Sequence[str]]) – (experimental) CreationTime property. Specify an array of string values to match this event if the actual value of CreationTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • endpoint_config_arn (Optional[Sequence[str]]) – (experimental) EndpointConfigArn property. Specify an array of string values to match this event if the actual value of EndpointConfigArn is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • endpoint_config_name (Optional[Sequence[str]]) – (experimental) EndpointConfigName property. Specify an array of string values to match this event if the actual value of EndpointConfigName is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Filter with the EndpointConfig reference

  • event_metadata (Union[AWSEventMetadataProps, Dict[str, Any], None]) – (experimental) EventBridge event metadata. Default: - -

  • production_variants (Optional[Sequence[Union[SageMakerEndpointConfigStateChangeItem, Dict[str, Any]]]]) – (experimental) ProductionVariants property. Specify an array of string values to match this event if the actual value of ProductionVariants is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • tags (Optional[Sequence[Union[Tags, Dict[str, Any]]]]) – (experimental) Tags property. Specify an array of string values to match this event if the actual value of Tags is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_sagemaker import events as sagemaker_events

sage_maker_endpoint_config_state_change_props = sagemaker_events.EndpointConfigEvents.SageMakerEndpointConfigStateChange.SageMakerEndpointConfigStateChangeProps(
    creation_time=["creationTime"],
    endpoint_config_arn=["endpointConfigArn"],
    endpoint_config_name=["endpointConfigName"],
    event_metadata=AWSEventMetadataProps(
        region=["region"],
        resources=["resources"],
        version=["version"]
    ),
    production_variants=[sagemaker_events.EndpointConfigEvents.SageMakerEndpointConfigStateChange.SageMakerEndpointConfigStateChangeItem(
        initial_instance_count=["initialInstanceCount"],
        initial_variant_weight=["initialVariantWeight"],
        instance_type=["instanceType"],
        model_name=["modelName"],
        variant_name=["variantName"]
    )],
    tags=[sagemaker_events.EndpointConfigEvents.SageMakerEndpointConfigStateChange.Tags(
        key=["key"],
        value=["value"]
    )]
)

Attributes

creation_time

(experimental) CreationTime property.

Specify an array of string values to match this event if the actual value of CreationTime is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

endpoint_config_arn

(experimental) EndpointConfigArn property.

Specify an array of string values to match this event if the actual value of EndpointConfigArn is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

endpoint_config_name

(experimental) EndpointConfigName property.

Specify an array of string values to match this event if the actual value of EndpointConfigName is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Filter with the EndpointConfig reference

Stability:

experimental

event_metadata

(experimental) EventBridge event metadata.

Default:

Stability:

experimental

production_variants

(experimental) ProductionVariants property.

Specify an array of string values to match this event if the actual value of ProductionVariants is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

tags

(experimental) Tags property.

Specify an array of string values to match this event if the actual value of Tags is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

Tags

class EndpointConfigEvents.SageMakerEndpointConfigStateChange.Tags(*, key=None, value=None)

Bases: object

(experimental) Type definition for Tags.

Parameters:
  • key (Optional[Sequence[str]]) – (experimental) Key property. Specify an array of string values to match this event if the actual value of Key is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

  • value (Optional[Sequence[str]]) – (experimental) Value property. Specify an array of string values to match this event if the actual value of Value is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options. Default: - Do not filter on this field

Stability:

experimental

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview.aws_sagemaker import events as sagemaker_events

tags = sagemaker_events.EndpointConfigEvents.SageMakerEndpointConfigStateChange.Tags(
    key=["key"],
    value=["value"]
)

Attributes

key

(experimental) Key property.

Specify an array of string values to match this event if the actual value of Key is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental

value

(experimental) Value property.

Specify an array of string values to match this event if the actual value of Value is one of the values in the array. Use one of the constructors on the aws_events.Match for more advanced matching options.

Default:
  • Do not filter on this field

Stability:

experimental