Class IProject.Jsii$Proxy
- All Implemented Interfaces:
 IResource,IResource.Jsii$Default,IProject,IProject.Jsii$Default,INotificationRuleSource,INotificationRuleSource.Jsii$Default,IConnectable,IConnectable.Jsii$Default,IGrantable,IGrantable.Jsii$Default,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
 IProject
- 
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectable
IConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantable
IGrantable.Jsii$Default, IGrantable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.codestarnotifications.INotificationRuleSource
INotificationRuleSource.Jsii$Default, INotificationRuleSource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.codebuild.IProject
IProject.Jsii$Default, IProject.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionfinal voidaddToRolePolicy(PolicyStatement policyStatement) final voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.bindAsNotificationRuleSource(software.constructs.Construct scope) Returns a source configuration for notification rule.final BatchBuildConfigEnable batch builds.final ConnectionsThe network connections associated with this resource.final ResourceEnvironmentgetEnv()The environment this resource belongs to.final IPrincipalThe principal to grant permissions to.final software.constructs.NodegetNode()The tree node.final StringThe ARN of this Project.final StringThe human-visible name of this Project.final IRolegetRole()The IAM service Role of this Project.final StackgetStack()The stack in which this resource is defined.final Metricfinal Metricmetric(String metricName, MetricOptions props) final MetricMeasures the number of builds triggered.final MetricmetricBuilds(MetricOptions props) Measures the number of builds triggered.final MetricMeasures the duration of all builds over time.final MetricmetricDuration(MetricOptions props) Measures the duration of all builds over time.final MetricMeasures the number of builds that failed because of client error or because of a timeout.final MetricmetricFailedBuilds(MetricOptions props) Measures the number of builds that failed because of client error or because of a timeout.final MetricMeasures the number of successful builds.final MetricMeasures the number of successful builds.final INotificationRulenotifyOn(String id, INotificationRuleTarget target, ProjectNotifyOnOptions options) Defines a CodeStar Notification rule triggered when the project events emitted by you specified, it very similar toonEventAPI.final INotificationRulenotifyOnBuildFailed(String id, INotificationRuleTarget target) Defines a CodeStar notification rule which triggers when a build fails.final INotificationRulenotifyOnBuildFailed(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar notification rule which triggers when a build fails.final INotificationRulenotifyOnBuildSucceeded(String id, INotificationRuleTarget target) Defines a CodeStar notification rule which triggers when a build completes successfully.final INotificationRulenotifyOnBuildSucceeded(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar notification rule which triggers when a build completes successfully.final RuleonBuildFailed(String id) Defines an event rule which triggers when a build fails.final RuleonBuildFailed(String id, OnEventOptions options) Defines an event rule which triggers when a build fails.final RuleonBuildStarted(String id) Defines an event rule which triggers when a build starts.final RuleonBuildStarted(String id, OnEventOptions options) Defines an event rule which triggers when a build starts.final RuleDefines an event rule which triggers when a build completes successfully.final RuleonBuildSucceeded(String id, OnEventOptions options) Defines an event rule which triggers when a build completes successfully.final RuleDefines a CloudWatch event rule triggered when something happens with this project.final RuleonEvent(String id, OnEventOptions options) Defines a CloudWatch event rule triggered when something happens with this project.final RuleonPhaseChange(String id) Defines a CloudWatch event rule that triggers upon phase change of this build project.final RuleonPhaseChange(String id, OnEventOptions options) Defines a CloudWatch event rule that triggers upon phase change of this build project.final RuleonStateChange(String id) Defines a CloudWatch event rule triggered when the build project state changes.final RuleonStateChange(String id, OnEventOptions options) Defines a CloudWatch event rule triggered when the build project state changes.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson 
- 
Constructor Details
- 
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)  
 - 
 - 
Method Details
- 
getNode
@Stability(Stable) @NotNull public final software.constructs.Node getNode()The tree node.- Specified by:
 getNodein interfacesoftware.constructs.IConstruct- Specified by:
 getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
 getNodein interfaceIProject.Jsii$Default- Specified by:
 getNodein interfaceIResource.Jsii$Default
 - 
getEnv
The environment this resource belongs to.For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
- Specified by:
 getEnvin interfaceIProject.Jsii$Default- Specified by:
 getEnvin interfaceIResource- Specified by:
 getEnvin interfaceIResource.Jsii$Default
 - 
getStack
The stack in which this resource is defined.- Specified by:
 getStackin interfaceIProject.Jsii$Default- Specified by:
 getStackin interfaceIResource- Specified by:
 getStackin interfaceIResource.Jsii$Default
 - 
getGrantPrincipal
The principal to grant permissions to.- Specified by:
 getGrantPrincipalin interfaceIGrantable- Specified by:
 getGrantPrincipalin interfaceIGrantable.Jsii$Default- Specified by:
 getGrantPrincipalin interfaceIProject.Jsii$Default
 - 
getConnections
The network connections associated with this resource.- Specified by:
 getConnectionsin interfaceIConnectable- Specified by:
 getConnectionsin interfaceIConnectable.Jsii$Default- Specified by:
 getConnectionsin interfaceIProject.Jsii$Default
 - 
getProjectArn
The ARN of this Project.- Specified by:
 getProjectArnin interfaceIProject- Specified by:
 getProjectArnin interfaceIProject.Jsii$Default
 - 
getProjectName
The human-visible name of this Project.- Specified by:
 getProjectNamein interfaceIProject- Specified by:
 getProjectNamein interfaceIProject.Jsii$Default
 - 
getRole
The IAM service Role of this Project.Undefined for imported Projects.
- Specified by:
 getRolein interfaceIProject- Specified by:
 getRolein interfaceIProject.Jsii$Default
 - 
applyRemovalPolicy
Apply the given removal policy to this resource.The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (
RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).- Specified by:
 applyRemovalPolicyin interfaceIProject.Jsii$Default- Specified by:
 applyRemovalPolicyin interfaceIResource- Specified by:
 applyRemovalPolicyin interfaceIResource.Jsii$Default- Parameters:
 policy- This parameter is required.
 - 
bindAsNotificationRuleSource
@Stability(Stable) @NotNull public final NotificationRuleSourceConfig bindAsNotificationRuleSource(@NotNull software.constructs.Construct scope) Returns a source configuration for notification rule.- Specified by:
 bindAsNotificationRuleSourcein interfaceINotificationRuleSource- Specified by:
 bindAsNotificationRuleSourcein interfaceINotificationRuleSource.Jsii$Default- Specified by:
 bindAsNotificationRuleSourcein interfaceIProject.Jsii$Default- Parameters:
 scope- This parameter is required.
 - 
addToRolePolicy
- Specified by:
 addToRolePolicyin interfaceIProject- Specified by:
 addToRolePolicyin interfaceIProject.Jsii$Default- Parameters:
 policyStatement- This parameter is required.
 - 
enableBatchBuilds
Enable batch builds.Returns an object contining the batch service role if batch builds could be enabled.
- Specified by:
 enableBatchBuildsin interfaceIProject- Specified by:
 enableBatchBuildsin interfaceIProject.Jsii$Default
 - 
metric
@Stability(Stable) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props) - Specified by:
 metricin interfaceIProject- Specified by:
 metricin interfaceIProject.Jsii$Default- Parameters:
 metricName- The name of the metric. This parameter is required.props- Customization properties.- Returns:
 - a CloudWatch metric associated with this build project.
 
 - 
metric
 - 
metricBuilds
Measures the number of builds triggered.Units: Count
Valid CloudWatch statistics: Sum
Default: sum over 5 minutes
- Specified by:
 metricBuildsin interfaceIProject- Specified by:
 metricBuildsin interfaceIProject.Jsii$Default- Parameters:
 props-
 - 
metricBuilds
Measures the number of builds triggered.Units: Count
Valid CloudWatch statistics: Sum
Default: sum over 5 minutes
- Specified by:
 metricBuildsin interfaceIProject
 - 
metricDuration
Measures the duration of all builds over time.Units: Seconds
Valid CloudWatch statistics: Average (recommended), Maximum, Minimum
Default: average over 5 minutes
- Specified by:
 metricDurationin interfaceIProject- Specified by:
 metricDurationin interfaceIProject.Jsii$Default- Parameters:
 props-
 - 
metricDuration
Measures the duration of all builds over time.Units: Seconds
Valid CloudWatch statistics: Average (recommended), Maximum, Minimum
Default: average over 5 minutes
- Specified by:
 metricDurationin interfaceIProject
 - 
metricFailedBuilds
Measures the number of builds that failed because of client error or because of a timeout.Units: Count
Valid CloudWatch statistics: Sum
Default: sum over 5 minutes
- Specified by:
 metricFailedBuildsin interfaceIProject- Specified by:
 metricFailedBuildsin interfaceIProject.Jsii$Default- Parameters:
 props-
 - 
metricFailedBuilds
Measures the number of builds that failed because of client error or because of a timeout.Units: Count
Valid CloudWatch statistics: Sum
Default: sum over 5 minutes
- Specified by:
 metricFailedBuildsin interfaceIProject
 - 
metricSucceededBuilds
@Stability(Stable) @NotNull public final Metric metricSucceededBuilds(@Nullable MetricOptions props) Measures the number of successful builds.Units: Count
Valid CloudWatch statistics: Sum
Default: sum over 5 minutes
- Specified by:
 metricSucceededBuildsin interfaceIProject- Specified by:
 metricSucceededBuildsin interfaceIProject.Jsii$Default- Parameters:
 props-
 - 
metricSucceededBuilds
Measures the number of successful builds.Units: Count
Valid CloudWatch statistics: Sum
Default: sum over 5 minutes
- Specified by:
 metricSucceededBuildsin interfaceIProject
 - 
notifyOn
@Stability(Stable) @NotNull public final INotificationRule notifyOn(@NotNull String id, @NotNull INotificationRuleTarget target, @NotNull ProjectNotifyOnOptions options) Defines a CodeStar Notification rule triggered when the project events emitted by you specified, it very similar toonEventAPI.You can also use the methods
notifyOnBuildSucceededandnotifyOnBuildFailedto define rules for these specific event emitted.- Specified by:
 notifyOnin interfaceIProject- Specified by:
 notifyOnin interfaceIProject.Jsii$Default- Parameters:
 id- The logical identifier of the CodeStar Notifications rule that will be created. This parameter is required.target- The target to register for the CodeStar Notifications destination. This parameter is required.options- Customization options for CodeStar Notifications rule. This parameter is required.- Returns:
 - CodeStar Notifications rule associated with this build project.
 
 - 
notifyOnBuildFailed
@Stability(Stable) @NotNull public final INotificationRule notifyOnBuildFailed(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options) Defines a CodeStar notification rule which triggers when a build fails.- Specified by:
 notifyOnBuildFailedin interfaceIProject- Specified by:
 notifyOnBuildFailedin interfaceIProject.Jsii$Default- Parameters:
 id- This parameter is required.target- This parameter is required.options-
 - 
notifyOnBuildFailed
@Stability(Stable) @NotNull public final INotificationRule notifyOnBuildFailed(@NotNull String id, @NotNull INotificationRuleTarget target) Defines a CodeStar notification rule which triggers when a build fails.- Specified by:
 notifyOnBuildFailedin interfaceIProject- Parameters:
 id- This parameter is required.target- This parameter is required.
 - 
notifyOnBuildSucceeded
@Stability(Stable) @NotNull public final INotificationRule notifyOnBuildSucceeded(@NotNull String id, @NotNull INotificationRuleTarget target, @Nullable NotificationRuleOptions options) Defines a CodeStar notification rule which triggers when a build completes successfully.- Specified by:
 notifyOnBuildSucceededin interfaceIProject- Specified by:
 notifyOnBuildSucceededin interfaceIProject.Jsii$Default- Parameters:
 id- This parameter is required.target- This parameter is required.options-
 - 
notifyOnBuildSucceeded
@Stability(Stable) @NotNull public final INotificationRule notifyOnBuildSucceeded(@NotNull String id, @NotNull INotificationRuleTarget target) Defines a CodeStar notification rule which triggers when a build completes successfully.- Specified by:
 notifyOnBuildSucceededin interfaceIProject- Parameters:
 id- This parameter is required.target- This parameter is required.
 - 
onBuildFailed
@Stability(Stable) @NotNull public final Rule onBuildFailed(@NotNull String id, @Nullable OnEventOptions options) Defines an event rule which triggers when a build fails.- Specified by:
 onBuildFailedin interfaceIProject- Specified by:
 onBuildFailedin interfaceIProject.Jsii$Default- Parameters:
 id- This parameter is required.options-
 - 
onBuildFailed
Defines an event rule which triggers when a build fails.- Specified by:
 onBuildFailedin interfaceIProject- Parameters:
 id- This parameter is required.
 - 
onBuildStarted
@Stability(Stable) @NotNull public final Rule onBuildStarted(@NotNull String id, @Nullable OnEventOptions options) Defines an event rule which triggers when a build starts.- Specified by:
 onBuildStartedin interfaceIProject- Specified by:
 onBuildStartedin interfaceIProject.Jsii$Default- Parameters:
 id- This parameter is required.options-
 - 
onBuildStarted
Defines an event rule which triggers when a build starts.- Specified by:
 onBuildStartedin interfaceIProject- Parameters:
 id- This parameter is required.
 - 
onBuildSucceeded
@Stability(Stable) @NotNull public final Rule onBuildSucceeded(@NotNull String id, @Nullable OnEventOptions options) Defines an event rule which triggers when a build completes successfully.- Specified by:
 onBuildSucceededin interfaceIProject- Specified by:
 onBuildSucceededin interfaceIProject.Jsii$Default- Parameters:
 id- This parameter is required.options-
 - 
onBuildSucceeded
Defines an event rule which triggers when a build completes successfully.- Specified by:
 onBuildSucceededin interfaceIProject- Parameters:
 id- This parameter is required.
 - 
onEvent
@Stability(Stable) @NotNull public final Rule onEvent(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule triggered when something happens with this project.- Specified by:
 onEventin interfaceIProject- Specified by:
 onEventin interfaceIProject.Jsii$Default- Parameters:
 id- This parameter is required.options-- See Also:
 
 - 
onEvent
Defines a CloudWatch event rule triggered when something happens with this project. - 
onPhaseChange
@Stability(Stable) @NotNull public final Rule onPhaseChange(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule that triggers upon phase change of this build project.- Specified by:
 onPhaseChangein interfaceIProject- Specified by:
 onPhaseChangein interfaceIProject.Jsii$Default- Parameters:
 id- This parameter is required.options-- See Also:
 
 - 
onPhaseChange
Defines a CloudWatch event rule that triggers upon phase change of this build project.- Specified by:
 onPhaseChangein interfaceIProject- Parameters:
 id- This parameter is required.- See Also:
 
 - 
onStateChange
@Stability(Stable) @NotNull public final Rule onStateChange(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule triggered when the build project state changes.You can filter specific build status events using an event pattern filter on the
build-statusdetail field:const rule = project.onStateChange('OnBuildStarted', { target }); rule.addEventPattern({ detail: { 'build-status': [ "IN_PROGRESS", "SUCCEEDED", "FAILED", "STOPPED" ] } });
You can also use the methods
onBuildFailedandonBuildSucceededto define rules for these specific state changes.To access fields from the event in the event target input, use the static fields on the
StateChangeEventclass.- Specified by:
 onStateChangein interfaceIProject- Specified by:
 onStateChangein interfaceIProject.Jsii$Default- Parameters:
 id- This parameter is required.options-- See Also:
 
 - 
onStateChange
Defines a CloudWatch event rule triggered when the build project state changes.You can filter specific build status events using an event pattern filter on the
build-statusdetail field:const rule = project.onStateChange('OnBuildStarted', { target }); rule.addEventPattern({ detail: { 'build-status': [ "IN_PROGRESS", "SUCCEEDED", "FAILED", "STOPPED" ] } });
You can also use the methods
onBuildFailedandonBuildSucceededto define rules for these specific state changes.To access fields from the event in the event target input, use the static fields on the
StateChangeEventclass.- Specified by:
 onStateChangein interfaceIProject- Parameters:
 id- This parameter is required.- See Also:
 
 
 -