Interface CfnService.ISourceConfigurationProperty
Describes the source deployed to an AWS App Runner service.
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.AWS.AppRunner.dll
Syntax (csharp)
public interface ISourceConfigurationProperty
Syntax (vb)
Public Interface ISourceConfigurationProperty
Remarks
It can be a code or an image repository.
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;
var sourceConfigurationProperty = new SourceConfigurationProperty {
AuthenticationConfiguration = new AuthenticationConfigurationProperty {
AccessRoleArn = "accessRoleArn",
ConnectionArn = "connectionArn"
},
AutoDeploymentsEnabled = false,
CodeRepository = new CodeRepositoryProperty {
RepositoryUrl = "repositoryUrl",
SourceCodeVersion = new SourceCodeVersionProperty {
Type = "type",
Value = "value"
},
// the properties below are optional
CodeConfiguration = new CodeConfigurationProperty {
ConfigurationSource = "configurationSource",
// the properties below are optional
CodeConfigurationValues = new CodeConfigurationValuesProperty {
Runtime = "runtime",
// the properties below are optional
BuildCommand = "buildCommand",
Port = "port",
RuntimeEnvironmentSecrets = new [] { new KeyValuePairProperty {
Name = "name",
Value = "value"
} },
RuntimeEnvironmentVariables = new [] { new KeyValuePairProperty {
Name = "name",
Value = "value"
} },
StartCommand = "startCommand"
}
}
},
ImageRepository = new ImageRepositoryProperty {
ImageIdentifier = "imageIdentifier",
ImageRepositoryType = "imageRepositoryType",
// the properties below are optional
ImageConfiguration = new ImageConfigurationProperty {
Port = "port",
RuntimeEnvironmentSecrets = new [] { new KeyValuePairProperty {
Name = "name",
Value = "value"
} },
RuntimeEnvironmentVariables = new [] { new KeyValuePairProperty {
Name = "name",
Value = "value"
} },
StartCommand = "startCommand"
}
}
};
Synopsis
Properties
Authentication |
Describes the resources that are needed to authenticate access to some source repositories. |
Auto |
If |
Code |
The description of a source code repository. |
Image |
The description of a source image repository. |
Properties
AuthenticationConfiguration
Describes the resources that are needed to authenticate access to some source repositories.
virtual object AuthenticationConfiguration { get; }
Property Value
System.
Remarks
AutoDeploymentsEnabled
If true
, continuous integration from the source repository is enabled for the App Runner service.
virtual object AutoDeploymentsEnabled { get; }
Property Value
System.
Remarks
Each repository change (including any source code commit or new image version) starts a deployment.
Default: App Runner sets to false
for a source image that uses an ECR Public repository or an ECR repository that's in an AWS account other than the one that the service is in. App Runner sets to true
in all other cases (which currently include a source code repository or a source image using a same-account ECR repository).
CodeRepository
The description of a source code repository.
virtual object CodeRepository { get; }
Property Value
System.
Remarks
You must provide either this member or ImageRepository
(but not both).
ImageRepository
The description of a source image repository.
virtual object ImageRepository { get; }
Property Value
System.
Remarks
You must provide either this member or CodeRepository
(but not both).