Documentation
¶
Index ¶
- func CfnRepository_CFN_RESOURCE_TYPE_NAME() *string
- func CfnRepository_IsCfnElement(x interface{}) *bool
- func CfnRepository_IsCfnResource(construct constructs.IConstruct) *bool
- func CfnRepository_IsConstruct(x interface{}) *bool
- func NewCfnRepository_Override(c CfnRepository, scope constructs.Construct, id *string, ...)
- func NewRepository_Override(r Repository, scope constructs.Construct, id *string, props *RepositoryProps)
- func ReferenceEvent_CommitId() *string
- func ReferenceEvent_EventType() *string
- func ReferenceEvent_ReferenceFullName() *string
- func ReferenceEvent_ReferenceName() *string
- func ReferenceEvent_ReferenceType() *string
- func ReferenceEvent_RepositoryId() *string
- func ReferenceEvent_RepositoryName() *string
- func Repository_IsConstruct(x interface{}) *bool
- func Repository_IsResource(construct constructs.IConstruct) *bool
- type CfnRepository
- type CfnRepositoryProps
- type CfnRepository_CodeProperty
- type CfnRepository_RepositoryTriggerProperty
- type CfnRepository_S3Property
- type IRepository
- type OnCommitOptions
- type ReferenceEvent
- type Repository
- type RepositoryEventTrigger
- type RepositoryNotificationEvents
- type RepositoryNotifyOnOptions
- type RepositoryProps
- type RepositoryTriggerOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CfnRepository_CFN_RESOURCE_TYPE_NAME ¶
func CfnRepository_CFN_RESOURCE_TYPE_NAME() *string
func CfnRepository_IsCfnElement ¶
func CfnRepository_IsCfnElement(x interface{}) *bool
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).
Uses duck-typing instead of `instanceof` to allow stack elements from different versions of this library to be included in the same stack.
Returns: The construct as a stack element or undefined if it is not a stack element.
func CfnRepository_IsCfnResource ¶
func CfnRepository_IsCfnResource(construct constructs.IConstruct) *bool
Check whether the given construct is a CfnResource.
func CfnRepository_IsConstruct ¶
func CfnRepository_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func NewCfnRepository_Override ¶
func NewCfnRepository_Override(c CfnRepository, scope constructs.Construct, id *string, props *CfnRepositoryProps)
Create a new `AWS::CodeCommit::Repository`.
func NewRepository_Override ¶
func NewRepository_Override(r Repository, scope constructs.Construct, id *string, props *RepositoryProps)
func ReferenceEvent_CommitId ¶
func ReferenceEvent_CommitId() *string
func ReferenceEvent_EventType ¶
func ReferenceEvent_EventType() *string
func ReferenceEvent_ReferenceFullName ¶
func ReferenceEvent_ReferenceFullName() *string
func ReferenceEvent_ReferenceName ¶
func ReferenceEvent_ReferenceName() *string
func ReferenceEvent_ReferenceType ¶
func ReferenceEvent_ReferenceType() *string
func ReferenceEvent_RepositoryId ¶
func ReferenceEvent_RepositoryId() *string
func ReferenceEvent_RepositoryName ¶
func ReferenceEvent_RepositoryName() *string
func Repository_IsConstruct ¶
func Repository_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func Repository_IsResource ¶
func Repository_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource.
Types ¶
type CfnRepository ¶
type CfnRepository interface { awscdk.CfnResource awscdk.IInspectable AttrArn() *string AttrCloneUrlHttp() *string AttrCloneUrlSsh() *string AttrName() *string CfnOptions() awscdk.ICfnResourceOptions CfnProperties() *map[string]interface{} CfnResourceType() *string Code() interface{} SetCode(val interface{}) CreationStack() *[]*string LogicalId() *string Node() constructs.Node Ref() *string RepositoryDescription() *string SetRepositoryDescription(val *string) RepositoryName() *string SetRepositoryName(val *string) Stack() awscdk.Stack Tags() awscdk.TagManager Triggers() interface{} SetTriggers(val interface{}) UpdatedProperites() *map[string]interface{} AddDeletionOverride(path *string) AddDependsOn(target awscdk.CfnResource) AddMetadata(key *string, value interface{}) AddOverride(path *string, value interface{}) AddPropertyDeletionOverride(propertyPath *string) AddPropertyOverride(propertyPath *string, value interface{}) ApplyRemovalPolicy(policy awscdk.RemovalPolicy, options *awscdk.RemovalPolicyOptions) GetAtt(attributeName *string) awscdk.Reference GetMetadata(key *string) interface{} Inspect(inspector awscdk.TreeInspector) OverrideLogicalId(newLogicalId *string) RenderProperties(props *map[string]interface{}) *map[string]interface{} ShouldSynthesize() *bool ToString() *string ValidateProperties(_properties interface{}) }
A CloudFormation `AWS::CodeCommit::Repository`.
TODO: EXAMPLE
func NewCfnRepository ¶
func NewCfnRepository(scope constructs.Construct, id *string, props *CfnRepositoryProps) CfnRepository
Create a new `AWS::CodeCommit::Repository`.
type CfnRepositoryProps ¶
type CfnRepositoryProps struct { // `AWS::CodeCommit::Repository.Code`. Code interface{} `json:"code"` // `AWS::CodeCommit::Repository.RepositoryDescription`. RepositoryDescription *string `json:"repositoryDescription"` // `AWS::CodeCommit::Repository.RepositoryName`. RepositoryName *string `json:"repositoryName"` // `AWS::CodeCommit::Repository.Tags`. Tags *[]*awscdk.CfnTag `json:"tags"` // `AWS::CodeCommit::Repository.Triggers`. Triggers interface{} `json:"triggers"` }
Properties for defining a `AWS::CodeCommit::Repository`.
TODO: EXAMPLE
type CfnRepository_CodeProperty ¶
type CfnRepository_CodeProperty struct { // `CfnRepository.CodeProperty.BranchName`. BranchName *string `json:"branchName"` // `CfnRepository.CodeProperty.S3`. S3 interface{} `json:"s3"` }
TODO: EXAMPLE
type CfnRepository_RepositoryTriggerProperty ¶
type CfnRepository_RepositoryTriggerProperty struct { // `CfnRepository.RepositoryTriggerProperty.Branches`. Branches *[]*string `json:"branches"` // `CfnRepository.RepositoryTriggerProperty.CustomData`. CustomData *string `json:"customData"` // `CfnRepository.RepositoryTriggerProperty.DestinationArn`. DestinationArn *string `json:"destinationArn"` // `CfnRepository.RepositoryTriggerProperty.Events`. Events *[]*string `json:"events"` // `CfnRepository.RepositoryTriggerProperty.Name`. Name *string `json:"name"` }
TODO: EXAMPLE
type CfnRepository_S3Property ¶
type CfnRepository_S3Property struct { // `CfnRepository.S3Property.Bucket`. Bucket *string `json:"bucket"` // `CfnRepository.S3Property.Key`. Key *string `json:"key"` // `CfnRepository.S3Property.ObjectVersion`. ObjectVersion *string `json:"objectVersion"` }
TODO: EXAMPLE
type IRepository ¶
type IRepository interface { awscodestarnotifications.INotificationRuleSource awscdk.IResource // Grant the given principal identity permissions to perform the actions on this repository. Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant // Grant the given identity permissions to pull this repository. GrantPull(grantee awsiam.IGrantable) awsiam.Grant // Grant the given identity permissions to pull and push this repository. GrantPullPush(grantee awsiam.IGrantable) awsiam.Grant // Grant the given identity permissions to read this repository. GrantRead(grantee awsiam.IGrantable) awsiam.Grant // Defines a CodeStar Notification rule triggered when the project events specified by you are emitted. Similar to `onEvent` API. // // You can also use the methods to define rules for the specific event emitted. // eg: `notifyOnPullRequstCreated`. // // Returns: CodeStar Notifications rule associated with this repository. NotifyOn(id *string, target awscodestarnotifications.INotificationRuleTarget, options *RepositoryNotifyOnOptions) awscodestarnotifications.INotificationRule // Defines a CodeStar Notification rule which triggers when an approval rule is overridden. NotifyOnApprovalRuleOverridden(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule // Defines a CodeStar Notification rule which triggers when an approval status is changed. NotifyOnApprovalStatusChanged(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule // Defines a CodeStar Notification rule which triggers when a new branch or tag is created. NotifyOnBranchOrTagCreated(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule // Defines a CodeStar Notification rule which triggers when a branch or tag is deleted. NotifyOnBranchOrTagDeleted(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule // Defines a CodeStar Notification rule which triggers when a comment is made on a pull request. NotifyOnPullRequestComment(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule // Defines a CodeStar Notification rule which triggers when a pull request is created. NotifyOnPullRequestCreated(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule // Defines a CodeStar Notification rule which triggers when a pull request is merged. NotifyOnPullRequestMerged(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule // Defines a CloudWatch event rule which triggers when a comment is made on a commit. OnCommentOnCommit(id *string, options *awsevents.OnEventOptions) awsevents.Rule // Defines a CloudWatch event rule which triggers when a comment is made on a pull request. OnCommentOnPullRequest(id *string, options *awsevents.OnEventOptions) awsevents.Rule // Defines a CloudWatch event rule which triggers when a commit is pushed to a branch. OnCommit(id *string, options *OnCommitOptions) awsevents.Rule // Defines a CloudWatch event rule which triggers for repository events. // // Use // `rule.addEventPattern(pattern)` to specify a filter. OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule // Defines a CloudWatch event rule which triggers when a pull request state is changed. OnPullRequestStateChange(id *string, options *awsevents.OnEventOptions) awsevents.Rule // Defines a CloudWatch event rule which triggers when a reference is created (i.e. a new branch/tag is created) to the repository. OnReferenceCreated(id *string, options *awsevents.OnEventOptions) awsevents.Rule // Defines a CloudWatch event rule which triggers when a reference is delete (i.e. a branch/tag is deleted) from the repository. OnReferenceDeleted(id *string, options *awsevents.OnEventOptions) awsevents.Rule // Defines a CloudWatch event rule which triggers when a reference is updated (i.e. a commit is pushed to an existing or new branch) from the repository. OnReferenceUpdated(id *string, options *awsevents.OnEventOptions) awsevents.Rule // Defines a CloudWatch event rule which triggers when a "CodeCommit Repository State Change" event occurs. OnStateChange(id *string, options *awsevents.OnEventOptions) awsevents.Rule // The ARN of this Repository. RepositoryArn() *string // The HTTPS (GRC) clone URL. // // HTTPS (GRC) is the protocol to use with git-remote-codecommit (GRC). // // It is the recommended method for supporting connections made with federated // access, identity providers, and temporary credentials. // See: https://docs.aws.amazon.com/codecommit/latest/userguide/setting-up-git-remote-codecommit.html // RepositoryCloneUrlGrc() *string // The HTTP clone URL. RepositoryCloneUrlHttp() *string // The SSH clone URL. RepositoryCloneUrlSsh() *string // The human-visible name of this Repository. RepositoryName() *string }
func Repository_FromRepositoryArn ¶
func Repository_FromRepositoryArn(scope constructs.Construct, id *string, repositoryArn *string) IRepository
Imports a codecommit repository.
func Repository_FromRepositoryName ¶
func Repository_FromRepositoryName(scope constructs.Construct, id *string, repositoryName *string) IRepository
type OnCommitOptions ¶
type OnCommitOptions struct { // A description of the rule's purpose. Description *string `json:"description"` // Additional restrictions for the event to route to the specified target. // // The method that generates the rule probably imposes some type of event // filtering. The filtering implied by what you pass here is added // on top of that filtering. // See: https://docs.aws.amazon.com/eventbridge/latest/userguide/eventbridge-and-event-patterns.html // EventPattern *awsevents.EventPattern `json:"eventPattern"` // A name for the rule. RuleName *string `json:"ruleName"` // The target to register for the event. Target awsevents.IRuleTarget `json:"target"` // The branch to monitor. Branches *[]*string `json:"branches"` }
Options for the onCommit() method.
TODO: EXAMPLE
type ReferenceEvent ¶
type ReferenceEvent interface { }
Fields of CloudWatch Events that change references. See: https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/EventTypes.html#codebuild_event_type
type Repository ¶
type Repository interface { awscdk.Resource IRepository Env() *awscdk.ResourceEnvironment Node() constructs.Node PhysicalName() *string RepositoryArn() *string RepositoryCloneUrlGrc() *string RepositoryCloneUrlHttp() *string RepositoryCloneUrlSsh() *string RepositoryName() *string Stack() awscdk.Stack ApplyRemovalPolicy(policy awscdk.RemovalPolicy) BindAsNotificationRuleSource(_scope constructs.Construct) *awscodestarnotifications.NotificationRuleSourceConfig GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string Grant(grantee awsiam.IGrantable, actions ...*string) awsiam.Grant GrantPull(grantee awsiam.IGrantable) awsiam.Grant GrantPullPush(grantee awsiam.IGrantable) awsiam.Grant GrantRead(grantee awsiam.IGrantable) awsiam.Grant NotifiyOnPullRequestMerged(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule Notify(arn *string, options *RepositoryTriggerOptions) Repository NotifyOn(id *string, target awscodestarnotifications.INotificationRuleTarget, options *RepositoryNotifyOnOptions) awscodestarnotifications.INotificationRule NotifyOnApprovalRuleOverridden(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule NotifyOnApprovalStatusChanged(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule NotifyOnBranchOrTagCreated(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule NotifyOnBranchOrTagDeleted(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule NotifyOnPullRequestComment(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule NotifyOnPullRequestCreated(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule NotifyOnPullRequestMerged(id *string, target awscodestarnotifications.INotificationRuleTarget, options *awscodestarnotifications.NotificationRuleOptions) awscodestarnotifications.INotificationRule OnCommentOnCommit(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnCommentOnPullRequest(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnCommit(id *string, options *OnCommitOptions) awsevents.Rule OnEvent(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnPullRequestStateChange(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnReferenceCreated(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnReferenceDeleted(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnReferenceUpdated(id *string, options *awsevents.OnEventOptions) awsevents.Rule OnStateChange(id *string, options *awsevents.OnEventOptions) awsevents.Rule ToString() *string }
Provides a CodeCommit Repository.
TODO: EXAMPLE
func NewRepository ¶
func NewRepository(scope constructs.Construct, id *string, props *RepositoryProps) Repository
type RepositoryEventTrigger ¶
type RepositoryEventTrigger string
Repository events that will cause the trigger to run actions in another service.
const ( RepositoryEventTrigger_ALL RepositoryEventTrigger = "ALL" RepositoryEventTrigger_CREATE_REF RepositoryEventTrigger = "CREATE_REF" RepositoryEventTrigger_DELETE_REF RepositoryEventTrigger = "DELETE_REF" RepositoryEventTrigger_UPDATE_REF RepositoryEventTrigger = "UPDATE_REF" )
type RepositoryNotificationEvents ¶
type RepositoryNotificationEvents string
List of event types for AWS CodeCommit. See: https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#events-ref-repositories
const ( RepositoryNotificationEvents_APPROVAL_RULE_OVERRIDDEN RepositoryNotificationEvents = "APPROVAL_RULE_OVERRIDDEN" RepositoryNotificationEvents_APPROVAL_STATUS_CHANGED RepositoryNotificationEvents = "APPROVAL_STATUS_CHANGED" RepositoryNotificationEvents_BRANCH_OR_TAG_CREATED RepositoryNotificationEvents = "BRANCH_OR_TAG_CREATED" RepositoryNotificationEvents_BRANCH_OR_TAG_DELETED RepositoryNotificationEvents = "BRANCH_OR_TAG_DELETED" RepositoryNotificationEvents_BRANCH_OR_TAG_UPDATED RepositoryNotificationEvents = "BRANCH_OR_TAG_UPDATED" RepositoryNotificationEvents_COMMIT_COMMENT RepositoryNotificationEvents = "COMMIT_COMMENT" RepositoryNotificationEvents_PULL_REQUEST_COMMENT RepositoryNotificationEvents = "PULL_REQUEST_COMMENT" RepositoryNotificationEvents_PULL_REQUEST_CREATED RepositoryNotificationEvents = "PULL_REQUEST_CREATED" RepositoryNotificationEvents_PULL_REQUEST_MERGED RepositoryNotificationEvents = "PULL_REQUEST_MERGED" RepositoryNotificationEvents_PULL_REQUEST_SOURCE_UPDATED RepositoryNotificationEvents = "PULL_REQUEST_SOURCE_UPDATED" RepositoryNotificationEvents_PULL_REQUEST_STATUS_CHANGED RepositoryNotificationEvents = "PULL_REQUEST_STATUS_CHANGED" )
type RepositoryNotifyOnOptions ¶
type RepositoryNotifyOnOptions struct { // The level of detail to include in the notifications for this resource. // // BASIC will include only the contents of the event as it would appear in AWS CloudWatch. // FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created. DetailType awscodestarnotifications.DetailType `json:"detailType"` // The status of the notification rule. // // If the enabled is set to DISABLED, notifications aren't sent for the notification rule. Enabled *bool `json:"enabled"` // The name for the notification rule. // // Notification rule names must be unique in your AWS account. NotificationRuleName *string `json:"notificationRuleName"` // A list of event types associated with this notification rule for CodeCommit repositories. // // For a complete list of event types and IDs, see Notification concepts in the Developer Tools Console User Guide. // See: https://docs.aws.amazon.com/dtconsole/latest/userguide/concepts.html#concepts-api // Events *[]RepositoryNotificationEvents `json:"events"` }
Additional options to pass to the notification rule.
TODO: EXAMPLE
type RepositoryProps ¶
type RepositoryProps struct { // Name of the repository. // // This property is required for all CodeCommit repositories. RepositoryName *string `json:"repositoryName"` // A description of the repository. // // Use the description to identify the // purpose of the repository. Description *string `json:"description"` }
TODO: EXAMPLE
type RepositoryTriggerOptions ¶
type RepositoryTriggerOptions struct { // The names of the branches in the AWS CodeCommit repository that contain events that you want to include in the trigger. // // If you don't specify at // least one branch, the trigger applies to all branches. Branches *[]*string `json:"branches"` // When an event is triggered, additional information that AWS CodeCommit includes when it sends information to the target. CustomData *string `json:"customData"` // The repository events for which AWS CodeCommit sends information to the target, which you specified in the DestinationArn property.If you don't specify events, the trigger runs for all repository events. Events *[]RepositoryEventTrigger `json:"events"` // A name for the trigger.Triggers on a repository must have unique names. Name *string `json:"name"` }
Creates for a repository trigger to an SNS topic or Lambda function.
TODO: EXAMPLE