Show / Hide Table of Contents

Class CfnService.SourceConfigurationProperty

Describes the source deployed to an AWS App Runner service.

Inheritance
System.Object
CfnService.SourceConfigurationProperty
Implements
CfnService.ISourceConfigurationProperty
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.AWS.AppRunner.dll
Syntax (csharp)
public class SourceConfigurationProperty : Object, CfnService.ISourceConfigurationProperty
Syntax (vb)
Public Class SourceConfigurationProperty
    Inherits Object
    Implements CfnService.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

Constructors

SourceConfigurationProperty()

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.

Constructors

SourceConfigurationProperty()

public SourceConfigurationProperty()

Properties

AuthenticationConfiguration

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

public object AuthenticationConfiguration { get; set; }
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.

public object AutoDeploymentsEnabled { get; set; }
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.

public object CodeRepository { get; set; }
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.

public object ImageRepository { get; set; }
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

Implements

CfnService.ISourceConfigurationProperty
Back to top Generated by DocFX