Interface IProject.Jsii$Default
- All Superinterfaces:
- IConnectable,- IConnectable.Jsii$Default,- software.constructs.IConstruct,- software.constructs.IConstruct.Jsii$Default,- software.constructs.IDependable,- software.constructs.IDependable.Jsii$Default,- IGrantable,- IGrantable.Jsii$Default,- INotificationRuleSource,- INotificationRuleSource.Jsii$Default,- IProject,- IResource,- IResource.Jsii$Default,- software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
- IProject.Jsii$Proxy
- Enclosing interface:
- IProject
IProject.- 
Nested Class SummaryNested 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
- 
Method SummaryModifier and TypeMethodDescriptiondefault voidaddToRolePolicy(PolicyStatement policyStatement) default voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.default NotificationRuleSourceConfigbindAsNotificationRuleSource(software.constructs.Construct scope) Returns a source configuration for notification rule.default BatchBuildConfigEnable batch builds.default ConnectionsThe network connections associated with this resource.default ResourceEnvironmentgetEnv()The environment this resource belongs to.default IPrincipalThe principal to grant permissions to.default software.constructs.NodegetNode()The tree node.default StringThe ARN of this Project.default StringThe human-visible name of this Project.default IRolegetRole()The IAM service Role of this Project.default StackgetStack()The stack in which this resource is defined.default Metricmetric(String metricName, MetricOptions props) default MetricmetricBuilds(MetricOptions props) Measures the number of builds triggered.default MetricmetricDuration(MetricOptions props) Measures the duration of all builds over time.default MetricmetricFailedBuilds(MetricOptions props) Measures the number of builds that failed because of client error or because of a timeout.default MetricMeasures the number of successful builds.default 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.default INotificationRulenotifyOnBuildFailed(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar notification rule which triggers when a build fails.default INotificationRulenotifyOnBuildSucceeded(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar notification rule which triggers when a build completes successfully.default RuleonBuildFailed(String id, OnEventOptions options) Defines an event rule which triggers when a build fails.default RuleonBuildStarted(String id, OnEventOptions options) Defines an event rule which triggers when a build starts.default RuleonBuildSucceeded(String id, OnEventOptions options) Defines an event rule which triggers when a build completes successfully.default RuleonEvent(String id, OnEventOptions options) Defines a CloudWatch event rule triggered when something happens with this project.default RuleonPhaseChange(String id, OnEventOptions options) Defines a CloudWatch event rule that triggers upon phase change of this build project.default RuleonStateChange(String id, OnEventOptions options) Defines a CloudWatch event rule triggered when the build project state changes.Methods inherited from interface software.amazon.awscdk.services.codebuild.IProjectmetric, metricBuilds, metricDuration, metricFailedBuilds, metricSucceededBuilds, notifyOnBuildFailed, notifyOnBuildSucceeded, onBuildFailed, onBuildStarted, onBuildSucceeded, onEvent, onPhaseChange, onStateChangeMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getNode@Stability(Stable) @NotNull default 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- 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- IResource
- Specified by:
- getEnvin interface- IResource.Jsii$Default
 
- 
getStackThe stack in which this resource is defined.- 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
 
- 
getConnectionsThe network connections associated with this resource.- Specified by:
- getConnectionsin interface- IConnectable
- Specified by:
- getConnectionsin interface- IConnectable.Jsii$Default
 
- 
getProjectArnThe ARN of this Project.- Specified by:
- getProjectArnin interface- IProject
 
- 
getProjectNameThe human-visible name of this Project.- Specified by:
- getProjectNamein interface- IProject
 
- 
getRoleThe IAM service Role of this Project.Undefined for imported Projects. 
- 
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- IResource
- Specified by:
- applyRemovalPolicyin interface- IResource.Jsii$Default
- Parameters:
- policy- This parameter is required.
 
- 
bindAsNotificationRuleSource@Stability(Stable) @NotNull default 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
- Parameters:
- scope- This parameter is required.
 
- 
addToRolePolicy- Specified by:
- addToRolePolicyin interface- IProject
- 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
 
- 
metric@Stability(Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) 
- 
metricBuildsMeasures the number of builds triggered.Units: Count Valid CloudWatch statistics: Sum Default: sum over 5 minutes - Specified by:
- metricBuildsin interface- IProject
- 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
- 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
- Parameters:
- props-
 
- 
metricSucceededBuildsMeasures the number of successful builds.Units: Count Valid CloudWatch statistics: Sum Default: sum over 5 minutes - Specified by:
- metricSucceededBuildsin interface- IProject
- Parameters:
- props-
 
- 
notifyOn@Stability(Stable) @NotNull default 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
- 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 default 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
- Parameters:
- id- This parameter is required.
- target- This parameter is required.
- options-
 
- 
notifyOnBuildSucceeded@Stability(Stable) @NotNull default 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
- Parameters:
- id- This parameter is required.
- target- This parameter is required.
- options-
 
- 
onBuildFailed@Stability(Stable) @NotNull default Rule onBuildFailed(@NotNull String id, @Nullable OnEventOptions options) Defines an event rule which triggers when a build fails.- Specified by:
- onBuildFailedin interface- IProject
- Parameters:
- id- This parameter is required.
- options-
 
- 
onBuildStarted@Stability(Stable) @NotNull default Rule onBuildStarted(@NotNull String id, @Nullable OnEventOptions options) Defines an event rule which triggers when a build starts.- Specified by:
- onBuildStartedin interface- IProject
- Parameters:
- id- This parameter is required.
- options-
 
- 
onBuildSucceeded@Stability(Stable) @NotNull default Rule onBuildSucceeded(@NotNull String id, @Nullable OnEventOptions options) Defines an event rule which triggers when a build completes successfully.- Specified by:
- onBuildSucceededin interface- IProject
- Parameters:
- id- This parameter is required.
- options-
 
- 
onEvent@Stability(Stable) @NotNull default Rule onEvent(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule triggered when something happens with this project.
- 
onPhaseChange@Stability(Stable) @NotNull default 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
- Parameters:
- id- This parameter is required.
- options-
- See Also:
 
- 
onStateChange@Stability(Stable) @NotNull default 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
- Parameters:
- id- This parameter is required.
- options-
- See Also:
 
 
-