Interface InstanceEvents.EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
InstanceEvents.EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Jsii$Proxy
- Enclosing class:
InstanceEvents.EC2InstanceStateChangeNotification
@Stability(Experimental)
public static interface InstanceEvents.EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps
extends software.amazon.jsii.JsiiSerializable
(experimental) Props type for Instance 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 class -
Method Summary
Modifier and TypeMethodDescriptionstatic InstanceEvents.EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Builderbuilder()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 InstanceEvents.EC2InstanceStateChangeNotification.EC2InstanceStateChangeNotificationProps.Builder builder()
-