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 SummaryNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IConnectableIConnectable.Jsii$Default, IConnectable.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IDependablesoftware.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.iam.IGrantableIGrantable.Jsii$Default, IGrantable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.codestarnotifications.INotificationRuleSourceINotificationRuleSource.Jsii$Default, INotificationRuleSource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.codebuild.IProjectIProject.Jsii$Default, IProject.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResourceIResource.Jsii$Default, IResource.Jsii$Proxy
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Constructor Details- 
Jsii$Proxyprotected 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 interface- software.constructs.IConstruct
- Specified by:
- getNodein interface- software.constructs.IConstruct.Jsii$Default
- Specified by:
- getNodein interface- IProject.Jsii$Default
- Specified by:
- getNodein interface- IResource.Jsii$Default
 
- 
getEnvThe 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 interface- IProject.Jsii$Default
- Specified by:
- getEnvin interface- IResource
- Specified by:
- getEnvin interface- IResource.Jsii$Default
 
- 
getStackThe stack in which this resource is defined.- Specified by:
- getStackin interface- IProject.Jsii$Default
- Specified by:
- getStackin interface- IResource
- Specified by:
- getStackin interface- IResource.Jsii$Default
 
- 
getGrantPrincipalThe principal to grant permissions to.- Specified by:
- getGrantPrincipalin interface- IGrantable
- Specified by:
- getGrantPrincipalin interface- IGrantable.Jsii$Default
- Specified by:
- getGrantPrincipalin interface- IProject.Jsii$Default
 
- 
getConnectionsThe network connections associated with this resource.- Specified by:
- getConnectionsin interface- IConnectable
- Specified by:
- getConnectionsin interface- IConnectable.Jsii$Default
- Specified by:
- getConnectionsin interface- IProject.Jsii$Default
 
- 
getProjectArnThe ARN of this Project.- Specified by:
- getProjectArnin interface- IProject
- Specified by:
- getProjectArnin interface- IProject.Jsii$Default
 
- 
getProjectNameThe human-visible name of this Project.- Specified by:
- getProjectNamein interface- IProject
- Specified by:
- getProjectNamein interface- IProject.Jsii$Default
 
- 
getRoleThe IAM service Role of this Project.Undefined for imported Projects. - Specified by:
- getRolein interface- IProject
- Specified by:
- getRolein interface- IProject.Jsii$Default
 
- 
applyRemovalPolicyApply 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 interface- IProject.Jsii$Default
- Specified by:
- applyRemovalPolicyin interface- IResource
- Specified by:
- applyRemovalPolicyin interface- IResource.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 interface- INotificationRuleSource
- Specified by:
- bindAsNotificationRuleSourcein interface- INotificationRuleSource.Jsii$Default
- Specified by:
- bindAsNotificationRuleSourcein interface- IProject.Jsii$Default
- Parameters:
- scope- This parameter is required.
 
- 
addToRolePolicy- Specified by:
- addToRolePolicyin interface- IProject
- Specified by:
- addToRolePolicyin interface- IProject.Jsii$Default
- Parameters:
- policyStatement- This parameter is required.
 
- 
enableBatchBuildsEnable batch builds.Returns an object contining the batch service role if batch builds could be enabled. - Specified by:
- enableBatchBuildsin interface- IProject
- Specified by:
- enableBatchBuildsin interface- IProject.Jsii$Default
 
- 
metric@Stability(Stable) @NotNull public final Metric metric(@NotNull String metricName, @Nullable MetricOptions props) - Specified by:
- metricin interface- IProject
- Specified by:
- metricin interface- IProject.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
- 
metricBuildsMeasures the number of builds triggered.Units: Count Valid CloudWatch statistics: Sum Default: sum over 5 minutes - Specified by:
- metricBuildsin interface- IProject
- Specified by:
- metricBuildsin interface- IProject.Jsii$Default
- Parameters:
- props-
 
- 
metricBuildsMeasures the number of builds triggered.Units: Count Valid CloudWatch statistics: Sum Default: sum over 5 minutes - Specified by:
- metricBuildsin interface- IProject
 
- 
metricDurationMeasures the duration of all builds over time.Units: Seconds Valid CloudWatch statistics: Average (recommended), Maximum, Minimum Default: average over 5 minutes - Specified by:
- metricDurationin interface- IProject
- Specified by:
- metricDurationin interface- IProject.Jsii$Default
- Parameters:
- props-
 
- 
metricDurationMeasures the duration of all builds over time.Units: Seconds Valid CloudWatch statistics: Average (recommended), Maximum, Minimum Default: average over 5 minutes - Specified by:
- metricDurationin interface- IProject
 
- 
metricFailedBuildsMeasures 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 interface- IProject
- Specified by:
- metricFailedBuildsin interface- IProject.Jsii$Default
- Parameters:
- props-
 
- 
metricFailedBuildsMeasures 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 interface- IProject
 
- 
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 interface- IProject
- Specified by:
- metricSucceededBuildsin interface- IProject.Jsii$Default
- Parameters:
- props-
 
- 
metricSucceededBuildsMeasures the number of successful builds.Units: Count Valid CloudWatch statistics: Sum Default: sum over 5 minutes - Specified by:
- metricSucceededBuildsin interface- IProject
 
- 
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 interface- IProject
- Specified by:
- notifyOnin interface- IProject.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 interface- IProject
- Specified by:
- notifyOnBuildFailedin interface- IProject.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 interface- IProject
- 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 interface- IProject
- Specified by:
- notifyOnBuildSucceededin interface- IProject.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 interface- IProject
- 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 interface- IProject
- Specified by:
- onBuildFailedin interface- IProject.Jsii$Default
- Parameters:
- id- This parameter is required.
- options-
 
- 
onBuildFailedDefines an event rule which triggers when a build fails.- Specified by:
- onBuildFailedin interface- IProject
- 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 interface- IProject
- Specified by:
- onBuildStartedin interface- IProject.Jsii$Default
- Parameters:
- id- This parameter is required.
- options-
 
- 
onBuildStartedDefines an event rule which triggers when a build starts.- Specified by:
- onBuildStartedin interface- IProject
- 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 interface- IProject
- Specified by:
- onBuildSucceededin interface- IProject.Jsii$Default
- Parameters:
- id- This parameter is required.
- options-
 
- 
onBuildSucceededDefines an event rule which triggers when a build completes successfully.- Specified by:
- onBuildSucceededin interface- IProject
- 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 interface- IProject
- Specified by:
- onEventin interface- IProject.Jsii$Default
- Parameters:
- id- This parameter is required.
- options-
- See Also:
 
- 
onEventDefines 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 interface- IProject
- Specified by:
- onPhaseChangein interface- IProject.Jsii$Default
- Parameters:
- id- This parameter is required.
- options-
- See Also:
 
- 
onPhaseChangeDefines a CloudWatch event rule that triggers upon phase change of this build project.- Specified by:
- onPhaseChangein interface- IProject
- 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 interface- IProject
- Specified by:
- onStateChangein interface- IProject.Jsii$Default
- Parameters:
- id- This parameter is required.
- options-
- See Also:
 
- 
onStateChangeDefines 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 interface- IProject
- Parameters:
- id- This parameter is required.
- See Also:
 
 
-