CfnSourceCredentialPropsMixin

class aws_cdk.mixins_preview.aws_codebuild.mixins.CfnSourceCredentialPropsMixin(props, *, strategy=None)

Bases: Mixin

Information about the credentials for a GitHub, GitHub Enterprise, or Bitbucket repository.

We strongly recommend that you use AWS Secrets Manager to store your credentials. If you use Secrets Manager , you must have secrets in your secrets manager. For more information, see Using Dynamic References to Specify Template Values . .. epigraph:

For security purposes, do not use plain text in your CloudFormation template to store your credentials.
See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html

CloudformationResource:

AWS::CodeBuild::SourceCredential

Mixin:

true

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.mixins_preview import mixins
from aws_cdk.mixins_preview.aws_codebuild import mixins as codebuild_mixins

cfn_source_credential_props_mixin = codebuild_mixins.CfnSourceCredentialPropsMixin(codebuild_mixins.CfnSourceCredentialMixinProps(
    auth_type="authType",
    server_type="serverType",
    token="token",
    username="username"
),
    strategy=mixins.PropertyMergeStrategy.OVERRIDE
)

Create a mixin to apply properties to AWS::CodeBuild::SourceCredential.

Parameters:

Methods

apply_to(construct)

Apply the mixin properties to the construct.

Parameters:

construct (IConstruct)

Return type:

IConstruct

supports(construct)

Check if this mixin supports the given construct.

Parameters:

construct (IConstruct)

Return type:

bool

Attributes

CFN_PROPERTY_KEYS = ['authType', 'serverType', 'token', 'username']

Static Methods

classmethod is_mixin(x)

(experimental) Checks if x is a Mixin.

Parameters:

x (Any) – Any object.

Return type:

bool

Returns:

true if x is an object created from a class which extends Mixin.

Stability:

experimental