Class BitBucketSourceCredentials
The source credentials used when contacting the BitBucket API.
Inherited Members
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BitBucketSourceCredentials : Resource, IResource, IConstruct, IDependable, IEnvironmentAware
Syntax (vb)
Public Class BitBucketSourceCredentials Inherits Resource Implements IResource, IConstruct, IDependable, IEnvironmentAware
Remarks
Note: CodeBuild only allows a single credential for BitBucket to be saved in a given AWS account in a given region - any attempt to add more than one will result in an error.
Resource: AWS::CodeBuild::SourceCredential
ExampleMetadata: infused
Examples
new BitBucketSourceCredentials(this, "CodeBuildBitBucketCreds", new BitBucketSourceCredentialsProps {
Username = SecretValue.SecretsManager("my-bitbucket-creds", new SecretsManagerSecretOptions { JsonField = "username" }),
Password = SecretValue.SecretsManager("my-bitbucket-creds", new SecretsManagerSecretOptions { JsonField = "password" })
});
Synopsis
Constructors
| BitBucketSourceCredentials(Construct, string, IBitBucketSourceCredentialsProps) | The source credentials used when contacting the BitBucket API. |
Properties
| PROPERTY_INJECTION_ID | Uniquely identifies this class. |
Constructors
BitBucketSourceCredentials(Construct, string, IBitBucketSourceCredentialsProps)
The source credentials used when contacting the BitBucket API.
public BitBucketSourceCredentials(Construct scope, string id, IBitBucketSourceCredentialsProps props)
Parameters
- scope Construct
- id string
- props IBitBucketSourceCredentialsProps
Remarks
Note: CodeBuild only allows a single credential for BitBucket to be saved in a given AWS account in a given region - any attempt to add more than one will result in an error.
Resource: AWS::CodeBuild::SourceCredential
ExampleMetadata: infused
Examples
new BitBucketSourceCredentials(this, "CodeBuildBitBucketCreds", new BitBucketSourceCredentialsProps {
Username = SecretValue.SecretsManager("my-bitbucket-creds", new SecretsManagerSecretOptions { JsonField = "username" }),
Password = SecretValue.SecretsManager("my-bitbucket-creds", new SecretsManagerSecretOptions { JsonField = "password" })
});
Properties
PROPERTY_INJECTION_ID
Uniquely identifies this class.
public static string PROPERTY_INJECTION_ID { get; }
Property Value
Remarks
Note: CodeBuild only allows a single credential for BitBucket to be saved in a given AWS account in a given region - any attempt to add more than one will result in an error.
Resource: AWS::CodeBuild::SourceCredential
ExampleMetadata: infused