Documentation ¶
Index ¶
- type LookupRepositoryArgs
- type LookupRepositoryResult
- type Repository
- type RepositoryArgs
- type RepositoryState
- type Trigger
- type TriggerArgs
- type TriggerState
- type TriggerTrigger
- type TriggerTriggerArgs
- type TriggerTriggerArray
- type TriggerTriggerArrayInput
- type TriggerTriggerArrayOutput
- func (TriggerTriggerArrayOutput) ElementType() reflect.Type
- func (o TriggerTriggerArrayOutput) Index(i pulumi.IntInput) TriggerTriggerOutput
- func (o TriggerTriggerArrayOutput) ToTriggerTriggerArrayOutput() TriggerTriggerArrayOutput
- func (o TriggerTriggerArrayOutput) ToTriggerTriggerArrayOutputWithContext(ctx context.Context) TriggerTriggerArrayOutput
- type TriggerTriggerInput
- type TriggerTriggerOutput
- func (o TriggerTriggerOutput) Branches() pulumi.StringArrayOutput
- func (o TriggerTriggerOutput) CustomData() pulumi.StringPtrOutput
- func (o TriggerTriggerOutput) DestinationArn() pulumi.StringOutput
- func (TriggerTriggerOutput) ElementType() reflect.Type
- func (o TriggerTriggerOutput) Events() pulumi.StringArrayOutput
- func (o TriggerTriggerOutput) Name() pulumi.StringOutput
- func (o TriggerTriggerOutput) ToTriggerTriggerOutput() TriggerTriggerOutput
- func (o TriggerTriggerOutput) ToTriggerTriggerOutputWithContext(ctx context.Context) TriggerTriggerOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookupRepositoryArgs ¶
type LookupRepositoryArgs struct { // The name for the repository. This needs to be less than 100 characters. RepositoryName string `pulumi:"repositoryName"` }
A collection of arguments for invoking getRepository.
type LookupRepositoryResult ¶
type LookupRepositoryResult struct { // The ARN of the repository Arn string `pulumi:"arn"` // The URL to use for cloning the repository over HTTPS. CloneUrlHttp string `pulumi:"cloneUrlHttp"` // The URL to use for cloning the repository over SSH. CloneUrlSsh string `pulumi:"cloneUrlSsh"` // The provider-assigned unique ID for this managed resource. Id string `pulumi:"id"` // The ID of the repository RepositoryId string `pulumi:"repositoryId"` RepositoryName string `pulumi:"repositoryName"` }
A collection of values returned by getRepository.
func LookupRepository ¶
func LookupRepository(ctx *pulumi.Context, args *LookupRepositoryArgs, opts ...pulumi.InvokeOption) (*LookupRepositoryResult, error)
The CodeCommit Repository data source allows the ARN, Repository ID, Repository URL for HTTP and Repository URL for SSH to be retrieved for an CodeCommit repository.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/codecommit" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := codecommit.LookupRepository(ctx, &codecommit.LookupRepositoryArgs{ RepositoryName: "MyTestRepository", }, nil) if err != nil { return err } return nil }) }
```
type Repository ¶
type Repository struct { pulumi.CustomResourceState // The ARN of the repository Arn pulumi.StringOutput `pulumi:"arn"` // The URL to use for cloning the repository over HTTPS. CloneUrlHttp pulumi.StringOutput `pulumi:"cloneUrlHttp"` // The URL to use for cloning the repository over SSH. CloneUrlSsh pulumi.StringOutput `pulumi:"cloneUrlSsh"` // The default branch of the repository. The branch specified here needs to exist. DefaultBranch pulumi.StringPtrOutput `pulumi:"defaultBranch"` // The description of the repository. This needs to be less than 1000 characters Description pulumi.StringPtrOutput `pulumi:"description"` // The ID of the repository RepositoryId pulumi.StringOutput `pulumi:"repositoryId"` // The name for the repository. This needs to be less than 100 characters. RepositoryName pulumi.StringOutput `pulumi:"repositoryName"` // Key-value map of resource tags Tags pulumi.StringMapOutput `pulumi:"tags"` }
Provides a CodeCommit Repository Resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/codecommit" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := codecommit.NewRepository(ctx, "test", &codecommit.RepositoryArgs{ Description: pulumi.String("This is the Sample App Repository"), RepositoryName: pulumi.String("MyTestRepository"), }) if err != nil { return err } return nil }) }
```
func GetRepository ¶
func GetRepository(ctx *pulumi.Context, name string, id pulumi.IDInput, state *RepositoryState, opts ...pulumi.ResourceOption) (*Repository, error)
GetRepository gets an existing Repository resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewRepository ¶
func NewRepository(ctx *pulumi.Context, name string, args *RepositoryArgs, opts ...pulumi.ResourceOption) (*Repository, error)
NewRepository registers a new resource with the given unique name, arguments, and options.
type RepositoryArgs ¶
type RepositoryArgs struct { // The default branch of the repository. The branch specified here needs to exist. DefaultBranch pulumi.StringPtrInput // The description of the repository. This needs to be less than 1000 characters Description pulumi.StringPtrInput // The name for the repository. This needs to be less than 100 characters. RepositoryName pulumi.StringInput // Key-value map of resource tags Tags pulumi.StringMapInput }
The set of arguments for constructing a Repository resource.
func (RepositoryArgs) ElementType ¶
func (RepositoryArgs) ElementType() reflect.Type
type RepositoryState ¶
type RepositoryState struct { // The ARN of the repository Arn pulumi.StringPtrInput // The URL to use for cloning the repository over HTTPS. CloneUrlHttp pulumi.StringPtrInput // The URL to use for cloning the repository over SSH. CloneUrlSsh pulumi.StringPtrInput // The default branch of the repository. The branch specified here needs to exist. DefaultBranch pulumi.StringPtrInput // The description of the repository. This needs to be less than 1000 characters Description pulumi.StringPtrInput // The ID of the repository RepositoryId pulumi.StringPtrInput // The name for the repository. This needs to be less than 100 characters. RepositoryName pulumi.StringPtrInput // Key-value map of resource tags Tags pulumi.StringMapInput }
func (RepositoryState) ElementType ¶
func (RepositoryState) ElementType() reflect.Type
type Trigger ¶
type Trigger struct { pulumi.CustomResourceState ConfigurationId pulumi.StringOutput `pulumi:"configurationId"` // The name for the repository. This needs to be less than 100 characters. RepositoryName pulumi.StringOutput `pulumi:"repositoryName"` Triggers TriggerTriggerArrayOutput `pulumi:"triggers"` }
Provides a CodeCommit Trigger Resource.
## Example Usage
```go package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/codecommit" "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { testRepository, err := codecommit.NewRepository(ctx, "testRepository", &codecommit.RepositoryArgs{ RepositoryName: pulumi.String("test"), }) if err != nil { return err } _, err = codecommit.NewTrigger(ctx, "testTrigger", &codecommit.TriggerArgs{ RepositoryName: testRepository.RepositoryName, Triggers: codecommit.TriggerTriggerArray{ &codecommit.TriggerTriggerArgs{ DestinationArn: pulumi.String(aws_sns_topic.Test.Arn), Events: pulumi.StringArray{ pulumi.String("all"), }, Name: pulumi.String("all"), }, }, }) if err != nil { return err } return nil }) }
```
func GetTrigger ¶
func GetTrigger(ctx *pulumi.Context, name string, id pulumi.IDInput, state *TriggerState, opts ...pulumi.ResourceOption) (*Trigger, error)
GetTrigger gets an existing Trigger resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewTrigger ¶
func NewTrigger(ctx *pulumi.Context, name string, args *TriggerArgs, opts ...pulumi.ResourceOption) (*Trigger, error)
NewTrigger registers a new resource with the given unique name, arguments, and options.
type TriggerArgs ¶
type TriggerArgs struct { // The name for the repository. This needs to be less than 100 characters. RepositoryName pulumi.StringInput Triggers TriggerTriggerArrayInput }
The set of arguments for constructing a Trigger resource.
func (TriggerArgs) ElementType ¶
func (TriggerArgs) ElementType() reflect.Type
type TriggerState ¶
type TriggerState struct { ConfigurationId pulumi.StringPtrInput // The name for the repository. This needs to be less than 100 characters. RepositoryName pulumi.StringPtrInput Triggers TriggerTriggerArrayInput }
func (TriggerState) ElementType ¶
func (TriggerState) ElementType() reflect.Type
type TriggerTrigger ¶
type TriggerTrigger struct { // The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. Branches []string `pulumi:"branches"` // Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. CustomData *string `pulumi:"customData"` // The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS). DestinationArn string `pulumi:"destinationArn"` // The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include: `all`, `updateReference`, `createReference`, `deleteReference`. Events []string `pulumi:"events"` // The name of the trigger. Name string `pulumi:"name"` }
type TriggerTriggerArgs ¶
type TriggerTriggerArgs struct { // The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches. Branches pulumi.StringArrayInput `pulumi:"branches"` // Any custom data associated with the trigger that will be included in the information sent to the target of the trigger. CustomData pulumi.StringPtrInput `pulumi:"customData"` // The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS). DestinationArn pulumi.StringInput `pulumi:"destinationArn"` // The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include: `all`, `updateReference`, `createReference`, `deleteReference`. Events pulumi.StringArrayInput `pulumi:"events"` // The name of the trigger. Name pulumi.StringInput `pulumi:"name"` }
func (TriggerTriggerArgs) ElementType ¶
func (TriggerTriggerArgs) ElementType() reflect.Type
func (TriggerTriggerArgs) ToTriggerTriggerOutput ¶
func (i TriggerTriggerArgs) ToTriggerTriggerOutput() TriggerTriggerOutput
func (TriggerTriggerArgs) ToTriggerTriggerOutputWithContext ¶
func (i TriggerTriggerArgs) ToTriggerTriggerOutputWithContext(ctx context.Context) TriggerTriggerOutput
type TriggerTriggerArray ¶
type TriggerTriggerArray []TriggerTriggerInput
func (TriggerTriggerArray) ElementType ¶
func (TriggerTriggerArray) ElementType() reflect.Type
func (TriggerTriggerArray) ToTriggerTriggerArrayOutput ¶
func (i TriggerTriggerArray) ToTriggerTriggerArrayOutput() TriggerTriggerArrayOutput
func (TriggerTriggerArray) ToTriggerTriggerArrayOutputWithContext ¶
func (i TriggerTriggerArray) ToTriggerTriggerArrayOutputWithContext(ctx context.Context) TriggerTriggerArrayOutput
type TriggerTriggerArrayInput ¶
type TriggerTriggerArrayInput interface { pulumi.Input ToTriggerTriggerArrayOutput() TriggerTriggerArrayOutput ToTriggerTriggerArrayOutputWithContext(context.Context) TriggerTriggerArrayOutput }
TriggerTriggerArrayInput is an input type that accepts TriggerTriggerArray and TriggerTriggerArrayOutput values. You can construct a concrete instance of `TriggerTriggerArrayInput` via:
TriggerTriggerArray{ TriggerTriggerArgs{...} }
type TriggerTriggerArrayOutput ¶
type TriggerTriggerArrayOutput struct{ *pulumi.OutputState }
func (TriggerTriggerArrayOutput) ElementType ¶
func (TriggerTriggerArrayOutput) ElementType() reflect.Type
func (TriggerTriggerArrayOutput) Index ¶
func (o TriggerTriggerArrayOutput) Index(i pulumi.IntInput) TriggerTriggerOutput
func (TriggerTriggerArrayOutput) ToTriggerTriggerArrayOutput ¶
func (o TriggerTriggerArrayOutput) ToTriggerTriggerArrayOutput() TriggerTriggerArrayOutput
func (TriggerTriggerArrayOutput) ToTriggerTriggerArrayOutputWithContext ¶
func (o TriggerTriggerArrayOutput) ToTriggerTriggerArrayOutputWithContext(ctx context.Context) TriggerTriggerArrayOutput
type TriggerTriggerInput ¶
type TriggerTriggerInput interface { pulumi.Input ToTriggerTriggerOutput() TriggerTriggerOutput ToTriggerTriggerOutputWithContext(context.Context) TriggerTriggerOutput }
TriggerTriggerInput is an input type that accepts TriggerTriggerArgs and TriggerTriggerOutput values. You can construct a concrete instance of `TriggerTriggerInput` via:
TriggerTriggerArgs{...}
type TriggerTriggerOutput ¶
type TriggerTriggerOutput struct{ *pulumi.OutputState }
func (TriggerTriggerOutput) Branches ¶
func (o TriggerTriggerOutput) Branches() pulumi.StringArrayOutput
The branches that will be included in the trigger configuration. If no branches are specified, the trigger will apply to all branches.
func (TriggerTriggerOutput) CustomData ¶
func (o TriggerTriggerOutput) CustomData() pulumi.StringPtrOutput
Any custom data associated with the trigger that will be included in the information sent to the target of the trigger.
func (TriggerTriggerOutput) DestinationArn ¶
func (o TriggerTriggerOutput) DestinationArn() pulumi.StringOutput
The ARN of the resource that is the target for a trigger. For example, the ARN of a topic in Amazon Simple Notification Service (SNS).
func (TriggerTriggerOutput) ElementType ¶
func (TriggerTriggerOutput) ElementType() reflect.Type
func (TriggerTriggerOutput) Events ¶
func (o TriggerTriggerOutput) Events() pulumi.StringArrayOutput
The repository events that will cause the trigger to run actions in another service, such as sending a notification through Amazon Simple Notification Service (SNS). If no events are specified, the trigger will run for all repository events. Event types include: `all`, `updateReference`, `createReference`, `deleteReference`.
func (TriggerTriggerOutput) Name ¶
func (o TriggerTriggerOutput) Name() pulumi.StringOutput
The name of the trigger.
func (TriggerTriggerOutput) ToTriggerTriggerOutput ¶
func (o TriggerTriggerOutput) ToTriggerTriggerOutput() TriggerTriggerOutput
func (TriggerTriggerOutput) ToTriggerTriggerOutputWithContext ¶
func (o TriggerTriggerOutput) ToTriggerTriggerOutputWithContext(ctx context.Context) TriggerTriggerOutput