Class OnCloudTrailImagePushedOptions.Builder
java.lang.Object
software.amazon.awscdk.services.ecr.OnCloudTrailImagePushedOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<OnCloudTrailImagePushedOptions>
- Enclosing interface:
OnCloudTrailImagePushedOptions
@Stability(Stable)
public static final class OnCloudTrailImagePushedOptions.Builder
extends Object
implements software.amazon.jsii.Builder<OnCloudTrailImagePushedOptions>
A builder for
OnCloudTrailImagePushedOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.crossStackScope
(software.constructs.Construct crossStackScope) Sets the value ofEventCommonOptions.getCrossStackScope()
description
(String description) Sets the value ofEventCommonOptions.getDescription()
eventPattern
(EventPattern eventPattern) Sets the value ofEventCommonOptions.getEventPattern()
Sets the value ofOnCloudTrailImagePushedOptions.getImageTag()
Sets the value ofEventCommonOptions.getRuleName()
target
(IRuleTarget target) Sets the value ofOnEventOptions.getTarget()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
imageTag
Sets the value ofOnCloudTrailImagePushedOptions.getImageTag()
- Parameters:
imageTag
- Only watch changes to this image tag.- Returns:
this
-
target
Sets the value ofOnEventOptions.getTarget()
- Parameters:
target
- The target to register for the event.- Returns:
this
-
crossStackScope
@Stability(Stable) public OnCloudTrailImagePushedOptions.Builder crossStackScope(software.constructs.Construct crossStackScope) Sets the value ofEventCommonOptions.getCrossStackScope()
- Parameters:
crossStackScope
- The scope to use if the source of the rule and its target are in different Stacks (but in the same account & region). This helps dealing with cycles that often arise in these situations.- Returns:
this
-
description
Sets the value ofEventCommonOptions.getDescription()
- Parameters:
description
- A description of the rule's purpose.- Returns:
this
-
eventPattern
@Stability(Stable) public OnCloudTrailImagePushedOptions.Builder eventPattern(EventPattern eventPattern) Sets the value ofEventCommonOptions.getEventPattern()
- Parameters:
eventPattern
- Additional restrictions for the event to route to the specified target. The method that generates the rule probably imposes some type of event filtering. The filtering implied by what you pass here is added on top of that filtering.- Returns:
this
-
ruleName
Sets the value ofEventCommonOptions.getRuleName()
- Parameters:
ruleName
- A name for the rule.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<OnCloudTrailImagePushedOptions>
- Returns:
- a new instance of
OnCloudTrailImagePushedOptions
- Throws:
NullPointerException
- if any required attribute was not provided
-