Documentation
¶
Overview ¶
AWS CDK Construct Library to interact with GitHub's API.
Index ¶
- func ActionEnvironmentSecret_IsConstruct(x interface{}) *bool
- func ActionSecret_IsConstruct(x interface{}) *bool
- func NewActionEnvironmentSecret_Override(a ActionEnvironmentSecret, scope constructs.Construct, id *string, ...)
- func NewActionSecret_Override(a ActionSecret, scope constructs.Construct, id *string, ...)
- type ActionEnvironmentSecret
- type ActionEnvironmentSecretProps
- type ActionSecret
- type ActionSecretProps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ActionEnvironmentSecret_IsConstruct ¶
func ActionEnvironmentSecret_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 ActionSecret_IsConstruct ¶
func ActionSecret_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 NewActionEnvironmentSecret_Override ¶
func NewActionEnvironmentSecret_Override(a ActionEnvironmentSecret, scope constructs.Construct, id *string, props *ActionEnvironmentSecretProps)
Experimental.
func NewActionSecret_Override ¶
func NewActionSecret_Override(a ActionSecret, scope constructs.Construct, id *string, props *ActionSecretProps)
Experimental.
Types ¶
type ActionEnvironmentSecret ¶
type ActionEnvironmentSecret interface {
constructs.Construct
// The tree node.
// Experimental.
Node() constructs.Node
// Returns a string representation of this construct.
// Experimental.
ToString() *string
}
Experimental.
func NewActionEnvironmentSecret ¶
func NewActionEnvironmentSecret(scope constructs.Construct, id *string, props *ActionEnvironmentSecretProps) ActionEnvironmentSecret
Experimental.
type ActionEnvironmentSecretProps ¶
type ActionEnvironmentSecretProps struct {
// The GithHub environment name which the secret should be stored in.
// Experimental.
Environment *string `field:"required" json:"environment" yaml:"environment"`
// The AWS secret in which the OAuth GitHub (personal) access token is stored.
// Experimental.
GithubTokenSecret awssecretsmanager.ISecret `field:"required" json:"githubTokenSecret" yaml:"githubTokenSecret"`
// The GitHub repository name.
// Experimental.
RepositoryName *string `field:"required" json:"repositoryName" yaml:"repositoryName"`
// The GitHub secret name to be stored.
// Experimental.
RepositorySecretName *string `field:"required" json:"repositorySecretName" yaml:"repositorySecretName"`
// This AWS secret value will be stored in GitHub as a secret (under the name of repositorySecretName).
// Experimental.
SourceSecret awssecretsmanager.ISecret `field:"required" json:"sourceSecret" yaml:"sourceSecret"`
// The GitHub repository owner.
// Experimental.
RepositoryOwner *string `field:"optional" json:"repositoryOwner" yaml:"repositoryOwner"`
}
Experimental.
type ActionSecret ¶
type ActionSecret interface {
constructs.Construct
// The tree node.
// Experimental.
Node() constructs.Node
// Returns a string representation of this construct.
// Experimental.
ToString() *string
}
Experimental.
func NewActionSecret ¶
func NewActionSecret(scope constructs.Construct, id *string, props *ActionSecretProps) ActionSecret
Experimental.
type ActionSecretProps ¶
type ActionSecretProps struct {
// The AWS secret in which the OAuth GitHub (personal) access token is stored.
// Experimental.
GithubTokenSecret awssecretsmanager.ISecret `field:"required" json:"githubTokenSecret" yaml:"githubTokenSecret"`
// The GitHub repository name.
// Experimental.
RepositoryName *string `field:"required" json:"repositoryName" yaml:"repositoryName"`
// The GitHub secret name to be stored.
// Experimental.
RepositorySecretName *string `field:"required" json:"repositorySecretName" yaml:"repositorySecretName"`
// This AWS secret value will be stored in GitHub as a secret (under the name of repositorySecretName).
// Experimental.
SourceSecret awssecretsmanager.ISecret `field:"required" json:"sourceSecret" yaml:"sourceSecret"`
// The GitHub repository owner.
// Experimental.
RepositoryOwner *string `field:"optional" json:"repositoryOwner" yaml:"repositoryOwner"`
}
Experimental.
Click to show internal directories.
Click to hide internal directories.