Inherited Members
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IProject : IResource, IGrantable, IConnectable, INotificationRuleSource, IProjectRef, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Interface IProject Inherits IResource, IGrantable, IConnectable, INotificationRuleSource, IProjectRef, IConstruct, IDependable, IEnvironmentAware
Synopsis
Properties
| ProjectArn | The ARN of this Project. |
| ProjectName | The human-visible name of this Project. |
| Role | The IAM service Role of this Project. |
Methods
| AddToRolePolicy(PolicyStatement) | |
| EnableBatchBuilds() | Enable batch builds. |
| Metric(string, IMetricOptions?) | |
| MetricBuilds(IMetricOptions?) | Measures the number of builds triggered. |
| MetricDuration(IMetricOptions?) | Measures the duration of all builds over time. |
| MetricFailedBuilds(IMetricOptions?) | Measures the number of builds that failed because of client error or because of a timeout. |
| MetricSucceededBuilds(IMetricOptions?) | Measures the number of successful builds. |
| NotifyOn(string, INotificationRuleTarget, IProjectNotifyOnOptions) | Defines a CodeStar Notification rule triggered when the project events emitted by you specified, it very similar to |
| NotifyOnBuildFailed(string, INotificationRuleTarget, INotificationRuleOptions?) | Defines a CodeStar notification rule which triggers when a build fails. |
| NotifyOnBuildSucceeded(string, INotificationRuleTarget, INotificationRuleOptions?) | Defines a CodeStar notification rule which triggers when a build completes successfully. |
| OnBuildFailed(string, IOnEventOptions?) | Defines an event rule which triggers when a build fails. |
| OnBuildStarted(string, IOnEventOptions?) | Defines an event rule which triggers when a build starts. |
| OnBuildSucceeded(string, IOnEventOptions?) | Defines an event rule which triggers when a build completes successfully. |
| OnEvent(string, IOnEventOptions?) | Defines a CloudWatch event rule triggered when something happens with this project. |
| OnPhaseChange(string, IOnEventOptions?) | Defines a CloudWatch event rule that triggers upon phase change of this build project. |
| OnStateChange(string, IOnEventOptions?) | Defines a CloudWatch event rule triggered when the build project state changes. |
Properties
ProjectArn
ProjectName
Role
Methods
AddToRolePolicy(PolicyStatement)
EnableBatchBuilds()
Metric(string, IMetricOptions?)
Metric Metric(string metricName, IMetricOptions? props = null)
Parameters
- metricName string
The name of the metric.
- props IMetricOptions
Customization properties.
Returns
a CloudWatch metric associated with this build project.
MetricBuilds(IMetricOptions?)
Measures the number of builds triggered.
Metric MetricBuilds(IMetricOptions? props = null)
Parameters
- props IMetricOptions
Returns
MetricDuration(IMetricOptions?)
Measures the duration of all builds over time.
Metric MetricDuration(IMetricOptions? props = null)
Parameters
- props IMetricOptions
Returns
MetricFailedBuilds(IMetricOptions?)
Measures the number of builds that failed because of client error or because of a timeout.
Metric MetricFailedBuilds(IMetricOptions? props = null)
Parameters
- props IMetricOptions
Returns
MetricSucceededBuilds(IMetricOptions?)
Measures the number of successful builds.
Metric MetricSucceededBuilds(IMetricOptions? props = null)
Parameters
- props IMetricOptions
Returns
NotifyOn(string, INotificationRuleTarget, IProjectNotifyOnOptions)
Defines a CodeStar Notification rule triggered when the project events emitted by you specified, it very similar to onEvent API.
INotificationRule NotifyOn(string id, INotificationRuleTarget target, IProjectNotifyOnOptions options)
Parameters
- id string
The logical identifier of the CodeStar Notifications rule that will be created.
- target INotificationRuleTarget
The target to register for the CodeStar Notifications destination.
- options IProjectNotifyOnOptions
Customization options for CodeStar Notifications rule.
Returns
CodeStar Notifications rule associated with this build project.
NotifyOnBuildFailed(string, INotificationRuleTarget, INotificationRuleOptions?)
NotifyOnBuildSucceeded(string, INotificationRuleTarget, INotificationRuleOptions?)
OnBuildFailed(string, IOnEventOptions?)
Defines an event rule which triggers when a build fails.
Rule OnBuildFailed(string id, IOnEventOptions? options = null)
Parameters
- id string
- options IOnEventOptions
Returns
OnBuildStarted(string, IOnEventOptions?)
Defines an event rule which triggers when a build starts.
Rule OnBuildStarted(string id, IOnEventOptions? options = null)
Parameters
- id string
- options IOnEventOptions
Returns
OnBuildSucceeded(string, IOnEventOptions?)
Defines an event rule which triggers when a build completes successfully.
Rule OnBuildSucceeded(string id, IOnEventOptions? options = null)
Parameters
- id string
- options IOnEventOptions
Returns
OnEvent(string, IOnEventOptions?)
Defines a CloudWatch event rule triggered when something happens with this project.
Rule OnEvent(string id, IOnEventOptions? options = null)
Parameters
- id string
- options IOnEventOptions
Returns
OnPhaseChange(string, IOnEventOptions?)
Defines a CloudWatch event rule that triggers upon phase change of this build project.
Rule OnPhaseChange(string id, IOnEventOptions? options = null)
Parameters
- id string
- options IOnEventOptions
Returns
OnStateChange(string, IOnEventOptions?)
Defines a CloudWatch event rule triggered when the build project state changes.
Rule OnStateChange(string id, IOnEventOptions? options = null)
Parameters
- id string
- options IOnEventOptions