/
EcrDockerCredentialOptions.go
34 lines (31 loc) · 1.1 KB
/
EcrDockerCredentialOptions.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
package pipelines
import (
"github.com/aws/aws-cdk-go/awscdk/v2/awsiam"
)
// Options for defining access for a Docker Credential composed of ECR repos.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// var role role
//
// ecrDockerCredentialOptions := &EcrDockerCredentialOptions{
// AssumeRole: role,
// Usages: []dockerCredentialUsage{
// awscdk.Pipelines.*dockerCredentialUsage_SYNTH,
// },
// }
//
type EcrDockerCredentialOptions struct {
// An IAM role to assume prior to accessing the secret.
// Default: - none. The current execution role will be used.
//
AssumeRole awsiam.IRole `field:"optional" json:"assumeRole" yaml:"assumeRole"`
// Defines which stages of the pipeline should be granted access to these credentials.
// Default: - all relevant stages (synth, self-update, asset publishing) are granted access.
//
Usages *[]DockerCredentialUsage `field:"optional" json:"usages" yaml:"usages"`
}