Documentation ¶
Overview ¶
The CDK Construct Library for AWS::AppRunner
Index ¶
- func NewAssetSource_Override(a AssetSource, props *AssetProps)
- func NewEcrPublicSource_Override(e EcrPublicSource, props *EcrPublicProps)
- func NewEcrSource_Override(e EcrSource, props *EcrProps)
- func NewGitHubConnection_Override(g GitHubConnection, arn *string)
- func NewGithubSource_Override(g GithubSource, props *GithubRepositoryProps)
- func NewService_Override(s Service, scope constructs.Construct, id *string, props *ServiceProps)
- func NewSource_Override(s Source)
- func Service_IsConstruct(x interface{}) *bool
- func Service_IsResource(construct constructs.IConstruct) *bool
- type AssetProps
- type AssetSource
- func AssetSource_FromAsset(props *AssetProps) AssetSource
- func EcrPublicSource_FromAsset(props *AssetProps) AssetSource
- func EcrSource_FromAsset(props *AssetProps) AssetSource
- func GithubSource_FromAsset(props *AssetProps) AssetSource
- func NewAssetSource(props *AssetProps) AssetSource
- func Source_FromAsset(props *AssetProps) AssetSource
- type CodeConfiguration
- type CodeConfigurationValues
- type CodeRepositoryProps
- type ConfigurationSourceType
- type Cpu
- type EcrProps
- type EcrPublicProps
- type EcrPublicSource
- func AssetSource_FromEcrPublic(props *EcrPublicProps) EcrPublicSource
- func EcrPublicSource_FromEcrPublic(props *EcrPublicProps) EcrPublicSource
- func EcrSource_FromEcrPublic(props *EcrPublicProps) EcrPublicSource
- func GithubSource_FromEcrPublic(props *EcrPublicProps) EcrPublicSource
- func NewEcrPublicSource(props *EcrPublicProps) EcrPublicSource
- func Source_FromEcrPublic(props *EcrPublicProps) EcrPublicSource
- type EcrSource
- func AssetSource_FromEcr(props *EcrProps) EcrSource
- func EcrPublicSource_FromEcr(props *EcrProps) EcrSource
- func EcrSource_FromEcr(props *EcrProps) EcrSource
- func GithubSource_FromEcr(props *EcrProps) EcrSource
- func NewEcrSource(props *EcrProps) EcrSource
- func Source_FromEcr(props *EcrProps) EcrSource
- type GitHubConnection
- type GithubRepositoryProps
- type GithubSource
- func AssetSource_FromGitHub(props *GithubRepositoryProps) GithubSource
- func EcrPublicSource_FromGitHub(props *GithubRepositoryProps) GithubSource
- func EcrSource_FromGitHub(props *GithubRepositoryProps) GithubSource
- func GithubSource_FromGitHub(props *GithubRepositoryProps) GithubSource
- func NewGithubSource(props *GithubRepositoryProps) GithubSource
- func Source_FromGitHub(props *GithubRepositoryProps) GithubSource
- type IService
- type ImageConfiguration
- type ImageRepository
- type ImageRepositoryType
- type Memory
- type Runtime
- type Service
- type ServiceAttributes
- type ServiceProps
- type Source
- type SourceCodeVersion
- type SourceConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAssetSource_Override ¶
func NewAssetSource_Override(a AssetSource, props *AssetProps)
Experimental.
func NewEcrPublicSource_Override ¶
func NewEcrPublicSource_Override(e EcrPublicSource, props *EcrPublicProps)
Experimental.
func NewGitHubConnection_Override ¶
func NewGitHubConnection_Override(g GitHubConnection, arn *string)
Experimental.
func NewGithubSource_Override ¶
func NewGithubSource_Override(g GithubSource, props *GithubRepositoryProps)
Experimental.
func NewService_Override ¶
func NewService_Override(s Service, scope constructs.Construct, id *string, props *ServiceProps)
Experimental.
func Service_IsConstruct ¶
func Service_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead
func Service_IsResource ¶
func Service_IsResource(construct constructs.IConstruct) *bool
Check whether the given construct is a Resource. Experimental.
Types ¶
type AssetProps ¶
type AssetProps struct { // Represents the docker image asset. // Experimental. Asset awsecrassets.DockerImageAsset `json:"asset"` // The image configuration for the image built from the asset. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imageconfiguration.html#cfn-apprunner-service-imageconfiguration-port // // Experimental. ImageConfiguration *ImageConfiguration `json:"imageConfiguration"` }
Properties of the image repository for `Source.fromAsset()`. Experimental.
type AssetSource ¶
type AssetSource interface { Source Bind(_scope constructs.Construct) *SourceConfig }
Represents the source from local assets. Experimental.
func AssetSource_FromAsset ¶
func AssetSource_FromAsset(props *AssetProps) AssetSource
Source from local assets. Experimental.
func EcrPublicSource_FromAsset ¶
func EcrPublicSource_FromAsset(props *AssetProps) AssetSource
Source from local assets. Experimental.
func EcrSource_FromAsset ¶
func EcrSource_FromAsset(props *AssetProps) AssetSource
Source from local assets. Experimental.
func GithubSource_FromAsset ¶
func GithubSource_FromAsset(props *AssetProps) AssetSource
Source from local assets. Experimental.
func Source_FromAsset ¶
func Source_FromAsset(props *AssetProps) AssetSource
Source from local assets. Experimental.
type CodeConfiguration ¶
type CodeConfiguration struct { // The source of the App Runner configuration. // Experimental. ConfigurationSource ConfigurationSourceType `json:"configurationSource"` // The basic configuration for building and running the App Runner service. // // Use it to quickly launch an App Runner service without providing a apprunner.yaml file in the // source code repository (or ignoring the file if it exists). // Experimental. ConfigurationValues *CodeConfigurationValues `json:"configurationValues"` }
Describes the configuration that AWS App Runner uses to build and run an App Runner service from a source code repository. See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfiguration.html
Experimental.
type CodeConfigurationValues ¶
type CodeConfigurationValues struct { // A runtime environment type for building and running an App Runner service. // // It represents // a programming language runtime. // Experimental. Runtime Runtime `json:"runtime"` // The command App Runner runs to build your application. // Experimental. BuildCommand *string `json:"buildCommand"` // The environment variables that are available to your running App Runner service. // Experimental. Environment *map[string]*string `json:"environment"` // The port that your application listens to in the container. // Experimental. Port *string `json:"port"` // The command App Runner runs to start your application. // Experimental. StartCommand *string `json:"startCommand"` }
Describes the basic configuration needed for building and running an AWS App Runner service.
This type doesn't support the full set of possible configuration options. Fur full configuration capabilities, use a `apprunner.yaml` file in the source code repository. Experimental.
type CodeRepositoryProps ¶
type CodeRepositoryProps struct { // Configuration for building and running the service from a source code repository. // Experimental. CodeConfiguration *CodeConfiguration `json:"codeConfiguration"` // The App Runner connection for GitHub. // Experimental. Connection GitHubConnection `json:"connection"` // The location of the repository that contains the source code. // Experimental. RepositoryUrl *string `json:"repositoryUrl"` // The version that should be used within the source code repository. // Experimental. SourceCodeVersion *SourceCodeVersion `json:"sourceCodeVersion"` }
Properties of the CodeRepository. Experimental.
type ConfigurationSourceType ¶
type ConfigurationSourceType string
The source of the App Runner configuration. Experimental.
const ( ConfigurationSourceType_REPOSITORY ConfigurationSourceType = "REPOSITORY" ConfigurationSourceType_API ConfigurationSourceType = "API" )
type Cpu ¶
type Cpu interface {
Unit() *string
}
The number of CPU units reserved for each instance of your App Runner service. Experimental.
func Cpu_ONE_VCPU ¶
func Cpu_ONE_VCPU() Cpu
func Cpu_Of ¶
Custom CPU unit. See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-instanceconfiguration.html#cfn-apprunner-service-instanceconfiguration-cpu
Experimental.
func Cpu_TWO_VCPU ¶
func Cpu_TWO_VCPU() Cpu
type EcrProps ¶
type EcrProps struct { // Represents the ECR repository. // Experimental. Repository awsecr.IRepository `json:"repository"` // The image configuration for the image from ECR. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imageconfiguration.html#cfn-apprunner-service-imageconfiguration-port // // Experimental. ImageConfiguration *ImageConfiguration `json:"imageConfiguration"` // Image tag. // Experimental. Tag *string `json:"tag"` }
Properties of the image repository for `Source.fromEcr()`. Experimental.
type EcrPublicProps ¶
type EcrPublicProps struct { // The ECR Public image URI. // Experimental. ImageIdentifier *string `json:"imageIdentifier"` // The image configuration for the image from ECR Public. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imageconfiguration.html#cfn-apprunner-service-imageconfiguration-port // // Experimental. ImageConfiguration *ImageConfiguration `json:"imageConfiguration"` }
Properties of the image repository for `Source.fromEcrPublic()`. Experimental.
type EcrPublicSource ¶
type EcrPublicSource interface { Source Bind(_scope constructs.Construct) *SourceConfig }
Represents the service source from ECR Public. Experimental.
func AssetSource_FromEcrPublic ¶
func AssetSource_FromEcrPublic(props *EcrPublicProps) EcrPublicSource
Source from the ECR Public repository. Experimental.
func EcrPublicSource_FromEcrPublic ¶
func EcrPublicSource_FromEcrPublic(props *EcrPublicProps) EcrPublicSource
Source from the ECR Public repository. Experimental.
func EcrSource_FromEcrPublic ¶
func EcrSource_FromEcrPublic(props *EcrPublicProps) EcrPublicSource
Source from the ECR Public repository. Experimental.
func GithubSource_FromEcrPublic ¶
func GithubSource_FromEcrPublic(props *EcrPublicProps) EcrPublicSource
Source from the ECR Public repository. Experimental.
func NewEcrPublicSource ¶
func NewEcrPublicSource(props *EcrPublicProps) EcrPublicSource
Experimental.
func Source_FromEcrPublic ¶
func Source_FromEcrPublic(props *EcrPublicProps) EcrPublicSource
Source from the ECR Public repository. Experimental.
type EcrSource ¶
type EcrSource interface { Source Bind(_scope constructs.Construct) *SourceConfig }
Represents the service source from ECR. Experimental.
func AssetSource_FromEcr ¶
Source from the ECR repository. Experimental.
func EcrPublicSource_FromEcr ¶
Source from the ECR repository. Experimental.
func EcrSource_FromEcr ¶
Source from the ECR repository. Experimental.
func GithubSource_FromEcr ¶
Source from the ECR repository. Experimental.
func Source_FromEcr ¶
Source from the ECR repository. Experimental.
type GitHubConnection ¶
type GitHubConnection interface {
ConnectionArn() *string
}
Represents the App Runner connection that enables the App Runner service to connect to a source repository.
It's required for GitHub code repositories. Experimental.
func GitHubConnection_FromConnectionArn ¶
func GitHubConnection_FromConnectionArn(arn *string) GitHubConnection
Using existing App Runner connection by specifying the connection ARN.
Returns: Connection Experimental.
type GithubRepositoryProps ¶
type GithubRepositoryProps struct { // The source of the App Runner configuration. // Experimental. ConfigurationSource ConfigurationSourceType `json:"configurationSource"` // ARN of the connection to Github. // // Only required for Github source. // Experimental. Connection GitHubConnection `json:"connection"` // The location of the repository that contains the source code. // Experimental. RepositoryUrl *string `json:"repositoryUrl"` // The branch name that represents a specific version for the repository. // Experimental. Branch *string `json:"branch"` // The code configuration values. // // Will be ignored if configurationSource is `REPOSITORY`. // Experimental. CodeConfigurationValues *CodeConfigurationValues `json:"codeConfigurationValues"` }
Properties of the Github repository for `Source.fromGitHub()`. Experimental.
type GithubSource ¶
type GithubSource interface { Source Bind(_scope constructs.Construct) *SourceConfig }
Represents the service source from a Github repository. Experimental.
func AssetSource_FromGitHub ¶
func AssetSource_FromGitHub(props *GithubRepositoryProps) GithubSource
Source from the GitHub repository. Experimental.
func EcrPublicSource_FromGitHub ¶
func EcrPublicSource_FromGitHub(props *GithubRepositoryProps) GithubSource
Source from the GitHub repository. Experimental.
func EcrSource_FromGitHub ¶
func EcrSource_FromGitHub(props *GithubRepositoryProps) GithubSource
Source from the GitHub repository. Experimental.
func GithubSource_FromGitHub ¶
func GithubSource_FromGitHub(props *GithubRepositoryProps) GithubSource
Source from the GitHub repository. Experimental.
func NewGithubSource ¶
func NewGithubSource(props *GithubRepositoryProps) GithubSource
Experimental.
func Source_FromGitHub ¶
func Source_FromGitHub(props *GithubRepositoryProps) GithubSource
Source from the GitHub repository. Experimental.
type IService ¶
type IService interface { awscdk.IResource // The ARN of the service. // Experimental. ServiceArn() *string // The Name of the service. // Experimental. ServiceName() *string }
Represents the App Runner Service. Experimental.
func Service_FromServiceAttributes ¶
func Service_FromServiceAttributes(scope constructs.Construct, id *string, attrs *ServiceAttributes) IService
Import from service attributes. Experimental.
func Service_FromServiceName ¶
Import from service name. Experimental.
type ImageConfiguration ¶
type ImageConfiguration struct { // Environment variables that are available to your running App Runner service. // Experimental. Environment *map[string]*string `json:"environment"` // The port that your application listens to in the container. // Experimental. Port *float64 `json:"port"` // An optional command that App Runner runs to start the application in the source image. // // If specified, this command overrides the Docker image’s default start command. // Experimental. StartCommand *string `json:"startCommand"` }
Describes the configuration that AWS App Runner uses to run an App Runner service using an image pulled from a source image repository. See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imageconfiguration.html
Experimental.
type ImageRepository ¶
type ImageRepository struct { // The identifier of the image. // // For `ECR_PUBLIC` imageRepositoryType, the identifier domain should // always be `public.ecr.aws`. For `ECR`, the pattern should be // `([0-9]{12}.dkr.ecr.[a-z\-]+-[0-9]{1}.amazonaws.com\/.*)`. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imagerepository.html for more details. // // Experimental. ImageIdentifier *string `json:"imageIdentifier"` // The type of the image repository. // // This reflects the repository provider and whether // the repository is private or public. // Experimental. ImageRepositoryType ImageRepositoryType `json:"imageRepositoryType"` // Configuration for running the identified image. // See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imageconfiguration.html#cfn-apprunner-service-imageconfiguration-port // // Experimental. ImageConfiguration *ImageConfiguration `json:"imageConfiguration"` }
Describes a source image repository. See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-imagerepository.html
Experimental.
type ImageRepositoryType ¶
type ImageRepositoryType string
The image repository types. Experimental.
const ( ImageRepositoryType_ECR_PUBLIC ImageRepositoryType = "ECR_PUBLIC" ImageRepositoryType_ECR ImageRepositoryType = "ECR" )
type Memory ¶
type Memory interface {
Unit() *string
}
The amount of memory reserved for each instance of your App Runner service. Experimental.
func Memory_FOUR_GB ¶
func Memory_FOUR_GB() Memory
func Memory_Of ¶
Custom Memory unit. See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-instanceconfiguration.html#cfn-apprunner-service-instanceconfiguration-memory
Experimental.
func Memory_THREE_GB ¶
func Memory_THREE_GB() Memory
func Memory_TWO_GB ¶
func Memory_TWO_GB() Memory
type Runtime ¶
type Runtime interface {
Name() *string
}
The code runtimes. Experimental.
func Runtime_NODEJS_12 ¶
func Runtime_NODEJS_12() Runtime
func Runtime_Of ¶
Other runtimes. See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfigurationvalues.html#cfn-apprunner-service-codeconfigurationvalues-runtime for all available runtimes.
Experimental.
func Runtime_PYTHON_3 ¶
func Runtime_PYTHON_3() Runtime
type Service ¶
type Service interface { awscdk.Resource Env() *awscdk.ResourceEnvironment Node() constructs.Node PhysicalName() *string ServiceArn() *string ServiceId() *string ServiceName() *string ServiceStatus() *string ServiceUrl() *string Stack() awscdk.Stack ApplyRemovalPolicy(policy awscdk.RemovalPolicy) GeneratePhysicalName() *string GetResourceArnAttribute(arnAttr *string, arnComponents *awscdk.ArnComponents) *string GetResourceNameAttribute(nameAttr *string) *string ToString() *string }
The App Runner Service. Experimental.
func NewService ¶
func NewService(scope constructs.Construct, id *string, props *ServiceProps) Service
Experimental.
type ServiceAttributes ¶
type ServiceAttributes struct { // The ARN of the service. // Experimental. ServiceArn *string `json:"serviceArn"` // The name of the service. // Experimental. ServiceName *string `json:"serviceName"` // The status of the service. // Experimental. ServiceStatus *string `json:"serviceStatus"` // The URL of the service. // Experimental. ServiceUrl *string `json:"serviceUrl"` }
Attributes for the App Runner Service. Experimental.
type ServiceProps ¶
type ServiceProps struct { // The source of the repository for the service. // Experimental. Source Source `json:"source"` // The IAM role that grants the App Runner service access to a source repository. // // It's required for ECR image repositories (but not for ECR Public repositories). // Experimental. AccessRole awsiam.IRole `json:"accessRole"` // The number of CPU units reserved for each instance of your App Runner service. // Experimental. Cpu Cpu `json:"cpu"` // The IAM role that provides permissions to your App Runner service. // // These are permissions that your code needs when it calls any AWS APIs. // Experimental. InstanceRole awsiam.IRole `json:"instanceRole"` // The amount of memory reserved for each instance of your App Runner service. // Experimental. Memory Memory `json:"memory"` // Name of the service. // Experimental. ServiceName *string `json:"serviceName"` }
Properties of the AppRunner Service. Experimental.
type Source ¶
type Source interface {
Bind(scope constructs.Construct) *SourceConfig
}
Represents the App Runner service source. Experimental.
type SourceCodeVersion ¶
type SourceCodeVersion struct { // The type of version identifier. // Experimental. Type *string `json:"type"` // A source code version. // Experimental. Value *string `json:"value"` }
Identifies a version of code that AWS App Runner refers to within a source code repository. See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-sourcecodeversion.html
Experimental.
type SourceConfig ¶
type SourceConfig struct { // The code repository configuration (mutually exclusive with `imageRepository`). // Experimental. CodeRepository *CodeRepositoryProps `json:"codeRepository"` // The ECR repository (required to grant the pull privileges for the iam role). // Experimental. EcrRepository awsecr.IRepository `json:"ecrRepository"` // The image repository configuration (mutually exclusive with `codeRepository`). // Experimental. ImageRepository *ImageRepository `json:"imageRepository"` }
Result of binding `Source` into a `Service`. Experimental.