Interface EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Jsii$Proxy
- Enclosing class:
EC2InstanceStateChangeNotification
@Stability(Experimental)
public static interface EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Props type for aws.ec2@EC2InstanceStateChangeNotification event.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.services.ec2.events.*;
EC2InstanceStateChangeNotificationProps eC2InstanceStateChangeNotificationProps = EC2InstanceStateChangeNotificationProps.builder()
.eventMetadata(AWSEventMetadataProps.builder()
.region(List.of("region"))
.resources(List.of("resources"))
.version(List.of("version"))
.build())
.instanceId(List.of("instanceId"))
.state(List.of("state"))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classstatic final classAn implementation forEC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default AWSEventMetadataProps(experimental) EventBridge event metadata.(experimental) instance-id property.getState()(experimental) state property.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEventMetadata
(experimental) EventBridge event metadata.Default: - -
-
getInstanceId
(experimental) instance-id property.Specify an array of string values to match this event if the actual value of instance-id is one of the values in the array. Use one of the constructors on the
aws_events.Matchfor more advanced matching options.Default: - Filter with the Instance reference
-
getState
(experimental) state property.Specify an array of string values to match this event if the actual value of state is one of the values in the array. Use one of the constructors on the
aws_events.Matchfor more advanced matching options.Default: - Do not filter on this field
-
builder
@Stability(Experimental) static EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Builder builder()
-