class CfnServicePropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppRunner.Mixins.CfnServicePropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsapprunner/mixins#CfnServicePropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.apprunner.mixins.CfnServicePropsMixin |
Python | aws_cdk.mixins_preview.aws_apprunner.mixins.CfnServicePropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_apprunner » mixins » CfnServicePropsMixin |
Implements
IMixin
Extends
Mixin
Specify an AWS App Runner service by using the AWS::AppRunner::Service resource in an AWS CloudFormation template.
The AWS::AppRunner::Service resource is an AWS App Runner resource type that specifies an App Runner service.
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apprunner-service.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as apprunner_mixins } from '@aws-cdk/mixins-preview/aws-apprunner';
const cfnServicePropsMixin = new apprunner_mixins.CfnServicePropsMixin({
autoScalingConfigurationArn: 'autoScalingConfigurationArn',
encryptionConfiguration: {
kmsKey: 'kmsKey',
},
healthCheckConfiguration: {
healthyThreshold: 123,
interval: 123,
path: 'path',
protocol: 'protocol',
timeout: 123,
unhealthyThreshold: 123,
},
instanceConfiguration: {
cpu: 'cpu',
instanceRoleArn: 'instanceRoleArn',
memory: 'memory',
},
networkConfiguration: {
egressConfiguration: {
egressType: 'egressType',
vpcConnectorArn: 'vpcConnectorArn',
},
ingressConfiguration: {
isPubliclyAccessible: false,
},
ipAddressType: 'ipAddressType',
},
observabilityConfiguration: {
observabilityConfigurationArn: 'observabilityConfigurationArn',
observabilityEnabled: false,
},
serviceName: 'serviceName',
sourceConfiguration: {
authenticationConfiguration: {
accessRoleArn: 'accessRoleArn',
connectionArn: 'connectionArn',
},
autoDeploymentsEnabled: false,
codeRepository: {
codeConfiguration: {
codeConfigurationValues: {
buildCommand: 'buildCommand',
port: 'port',
runtime: 'runtime',
runtimeEnvironmentSecrets: [{
name: 'name',
value: 'value',
}],
runtimeEnvironmentVariables: [{
name: 'name',
value: 'value',
}],
startCommand: 'startCommand',
},
configurationSource: 'configurationSource',
},
repositoryUrl: 'repositoryUrl',
sourceCodeVersion: {
type: 'type',
value: 'value',
},
sourceDirectory: 'sourceDirectory',
},
imageRepository: {
imageConfiguration: {
port: 'port',
runtimeEnvironmentSecrets: [{
name: 'name',
value: 'value',
}],
runtimeEnvironmentVariables: [{
name: 'name',
value: 'value',
}],
startCommand: 'startCommand',
},
imageIdentifier: 'imageIdentifier',
imageRepositoryType: 'imageRepositoryType',
},
},
tags: [{
key: 'key',
value: 'value',
}],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnServicePropsMixin(props: CfnServiceMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Service Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::AppRunner::Service.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript