CfnSourceCredentialPropsMixin
- class aws_cdk.mixins_preview.aws_codebuild.mixins.CfnSourceCredentialPropsMixin(props, *, strategy=None)
Bases:
MixinInformation 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:
- 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:
props (
Union[CfnSourceCredentialMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- 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
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental