Show / Hide Table of Contents

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.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-sourceconfiguration.html

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

AuthenticationConfiguration

Describes the resources that are needed to authenticate access to some source repositories.

AutoDeploymentsEnabled

If true , continuous integration from the source repository is enabled for the App Runner service.

CodeRepository

The description of a source code repository.

ImageRepository

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.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-sourceconfiguration.html#cfn-apprunner-service-sourceconfiguration-authenticationconfiguration

AutoDeploymentsEnabled

If true , continuous integration from the source repository is enabled for the App Runner service.

virtual object AutoDeploymentsEnabled { get; }
Property Value

System.Object

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).

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-sourceconfiguration.html#cfn-apprunner-service-sourceconfiguration-autodeploymentsenabled

CodeRepository

The description of a source code repository.

virtual object CodeRepository { get; }
Property Value

System.Object

Remarks

You must provide either this member or ImageRepository (but not both).

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-sourceconfiguration.html#cfn-apprunner-service-sourceconfiguration-coderepository

ImageRepository

The description of a source image repository.

virtual object ImageRepository { get; }
Property Value

System.Object

Remarks

You must provide either this member or CodeRepository (but not both).

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-sourceconfiguration.html#cfn-apprunner-service-sourceconfiguration-imagerepository

Back to top Generated by DocFX