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,IEnvironmentAware,IEnvironmentAware.Jsii$Default,IGrantable,IGrantable.Jsii$Default,INotificationRuleSource,INotificationRuleSource.Jsii$Default,IProject,IProjectRef,IProjectRef.Jsii$Default,IResource,IResource.Jsii$Default,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IProject.Jsii$Proxy
- Enclosing interface:
IProject
IProject.-
Nested Class Summary
Nested 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.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.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.interfaces.codebuild.IProjectRef
IProjectRef.Jsii$Default, IProjectRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddToRolePolicy(PolicyStatement policyStatement) default BatchBuildConfigEnable batch builds.default StringThe ARN of this Project.default StringThe human-visible name of this Project.default IRolegetRole()The IAM service Role of this Project.default Metricdefault Metricmetric(String metricName, MetricOptions props) default MetricMeasures the number of builds triggered.default MetricmetricBuilds(MetricOptions props) Measures the number of builds triggered.default MetricMeasures the duration of all builds over time.default MetricmetricDuration(MetricOptions props) Measures the duration of all builds over time.default MetricMeasures the number of builds that failed because of client error or because of a timeout.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 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) Defines a CodeStar notification rule which triggers when a build fails.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) Defines a CodeStar notification rule which triggers when a build completes successfully.default INotificationRulenotifyOnBuildSucceeded(String id, INotificationRuleTarget target, NotificationRuleOptions options) Defines a CodeStar notification rule which triggers when a build completes successfully.default RuleonBuildFailed(String id) Defines an event rule which triggers when a build fails.default RuleonBuildFailed(String id, OnEventOptions options) Defines an event rule which triggers when a build fails.default RuleonBuildStarted(String id) Defines an event rule which triggers when a build starts.default RuleonBuildStarted(String id, OnEventOptions options) Defines an event rule which triggers when a build starts.default RuleDefines an event rule which triggers when a build completes successfully.default RuleonBuildSucceeded(String id, OnEventOptions options) Defines an event rule which triggers when a build completes successfully.default RuleDefines a CloudWatch event rule triggered when something happens with this project.default RuleonEvent(String id, OnEventOptions options) Defines a CloudWatch event rule triggered when something happens with this project.default RuleonPhaseChange(String id) Defines a CloudWatch event rule that triggers upon phase change of this build 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) Defines a CloudWatch event rule triggered when the build project state changes.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.ec2.IConnectable.Jsii$Default
getConnectionsMethods inherited from interface software.constructs.IConstruct.Jsii$Default
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware.Jsii$Default
getEnvMethods inherited from interface software.amazon.awscdk.services.iam.IGrantable.Jsii$Default
getGrantPrincipalMethods inherited from interface software.amazon.awscdk.services.codestarnotifications.INotificationRuleSource.Jsii$Default
bindAsNotificationRuleSourceMethods inherited from interface software.amazon.awscdk.interfaces.codebuild.IProjectRef.Jsii$Default
getProjectRefMethods inherited from interface software.amazon.awscdk.IResource.Jsii$Default
applyRemovalPolicy, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getProjectArn
The ARN of this Project.- Specified by:
getProjectArnin interfaceIProject
-
getProjectName
The human-visible name of this Project.- Specified by:
getProjectNamein interfaceIProject
-
getRole
The IAM service Role of this Project.Undefined for imported Projects.
-
addToRolePolicy
- Specified by:
addToRolePolicyin interfaceIProject- 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
-
metric
@Stability(Stable) @NotNull default Metric metric(@NotNull String metricName, @Nullable MetricOptions props) -
metric
-
metricBuilds
Measures the number of builds triggered.Units: Count
Valid CloudWatch statistics: Sum
Default: sum over 5 minutes
- Specified by:
metricBuildsin interfaceIProject- 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- 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- 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
Measures the number of successful builds.Units: Count
Valid CloudWatch statistics: Sum
Default: sum over 5 minutes
- Specified by:
metricSucceededBuildsin interfaceIProject- 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 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 interfaceIProject- 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 interfaceIProject- Parameters:
id- This parameter is required.target- This parameter is required.options-
-
notifyOnBuildFailed
@Stability(Stable) @NotNull default 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 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 interfaceIProject- 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) 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 default Rule onBuildFailed(@NotNull String id, @Nullable OnEventOptions options) Defines an event rule which triggers when a build fails.- Specified by:
onBuildFailedin interfaceIProject- 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 default Rule onBuildStarted(@NotNull String id, @Nullable OnEventOptions options) Defines an event rule which triggers when a build starts.- Specified by:
onBuildStartedin interfaceIProject- 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 default Rule onBuildSucceeded(@NotNull String id, @Nullable OnEventOptions options) Defines an event rule which triggers when a build completes successfully.- Specified by:
onBuildSucceededin interfaceIProject- 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 default Rule onEvent(@NotNull String id, @Nullable OnEventOptions options) Defines a CloudWatch event rule triggered when something happens with this project. -
onEvent
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 interfaceIProject- 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 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 interfaceIProject- 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:
-