Class CodeRepositoryProps
(experimental) Properties of the CodeRepository.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public class CodeRepositoryProps : Object, ICodeRepositoryProps
Syntax (vb)
Public Class CodeRepositoryProps
Inherits Object
Implements ICodeRepositoryProps
Remarks
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner.Alpha;
GitHubConnection gitHubConnection;
Runtime runtime;
Secret secret;
var codeRepositoryProps = new CodeRepositoryProps {
CodeConfiguration = new CodeConfiguration {
ConfigurationSource = ConfigurationSourceType.REPOSITORY,
// the properties below are optional
ConfigurationValues = new CodeConfigurationValues {
Runtime = runtime,
// the properties below are optional
BuildCommand = "buildCommand",
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
EnvironmentSecrets = new Dictionary<string, Secret> {
{ "environmentSecretsKey", secret }
},
EnvironmentVariables = new Dictionary<string, string> {
{ "environmentVariablesKey", "environmentVariables" }
},
Port = "port",
StartCommand = "startCommand"
}
},
Connection = gitHubConnection,
RepositoryUrl = "repositoryUrl",
SourceCodeVersion = new SourceCodeVersion {
Type = "type",
Value = "value"
}
};
Synopsis
Constructors
CodeRepositoryProps() |
Properties
CodeConfiguration | (experimental) Configuration for building and running the service from a source code repository. |
Connection | (experimental) The App Runner connection for GitHub. |
RepositoryUrl | (experimental) The location of the repository that contains the source code. |
SourceCodeVersion | (experimental) The version that should be used within the source code repository. |
Constructors
CodeRepositoryProps()
public CodeRepositoryProps()
Properties
CodeConfiguration
(experimental) Configuration for building and running the service from a source code repository.
public ICodeConfiguration CodeConfiguration { get; set; }
Property Value
Remarks
Stability: Experimental
Connection
(experimental) The App Runner connection for GitHub.
public GitHubConnection Connection { get; set; }
Property Value
Remarks
Stability: Experimental
RepositoryUrl
(experimental) The location of the repository that contains the source code.
public string RepositoryUrl { get; set; }
Property Value
System.String
Remarks
Stability: Experimental
SourceCodeVersion
(experimental) The version that should be used within the source code repository.
public ISourceCodeVersion SourceCodeVersion { get; set; }
Property Value
Remarks
Stability: Experimental