Interface CfnContainerMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnContainerMixinProps.Jsii$Proxy
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.lightsail.*;
CfnContainerMixinProps cfnContainerMixinProps = CfnContainerMixinProps.builder()
.containerServiceDeployment(ContainerServiceDeploymentProperty.builder()
.containers(List.of(ContainerProperty.builder()
.command(List.of("command"))
.containerName("containerName")
.environment(List.of(EnvironmentVariableProperty.builder()
.value("value")
.variable("variable")
.build()))
.image("image")
.ports(List.of(PortInfoProperty.builder()
.port("port")
.protocol("protocol")
.build()))
.build()))
.publicEndpoint(PublicEndpointProperty.builder()
.containerName("containerName")
.containerPort(123)
.healthCheckConfig(HealthCheckConfigProperty.builder()
.healthyThreshold(123)
.intervalSeconds(123)
.path("path")
.successCodes("successCodes")
.timeoutSeconds(123)
.unhealthyThreshold(123)
.build())
.build())
.build())
.isDisabled(false)
.power("power")
.privateRegistryAccess(PrivateRegistryAccessProperty.builder()
.ecrImagePullerRole(EcrImagePullerRoleProperty.builder()
.isActive(false)
.principalArn("principalArn")
.build())
.build())
.publicDomainNames(List.of(PublicDomainNameProperty.builder()
.certificateName("certificateName")
.domainNames(List.of("domainNames"))
.build()))
.scale(123)
.serviceName("serviceName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnContainerMixinPropsstatic final classAn implementation forCfnContainerMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectAn object that describes the current container deployment of the container service.default ObjectA Boolean value indicating whether the container service is disabled.default StringgetPower()The power specification of the container service.default ObjectAn object that describes the configuration for the container service to access private container image repositories, such as ( Amazon ECR ) private repositories.default ObjectThe public domain name of the container service, such asexample.comandwww.example.com.default NumbergetScale()The scale specification of the container service.default StringThe name of the container service.getTags()An array of key-value pairs to apply to this resource.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainerServiceDeployment
An object that describes the current container deployment of the container service.Returns union: either
IResolvableorCfnContainerPropsMixin.ContainerServiceDeploymentProperty- See Also:
-
getIsDisabled
A Boolean value indicating whether the container service is disabled.Returns union: either
BooleanorIResolvable- See Also:
-
getPower
The power specification of the container service.The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
- See Also:
-
getPrivateRegistryAccess
An object that describes the configuration for the container service to access private container image repositories, such as ( Amazon ECR ) private repositories.For more information, see Configuring access to an Amazon ECR private repository for an Amazon Lightsail container service in the Amazon Lightsail Developer Guide .
Returns union: either
IResolvableorCfnContainerPropsMixin.PrivateRegistryAccessProperty- See Also:
-
getPublicDomainNames
The public domain name of the container service, such asexample.comandwww.example.com.You can specify up to four public domain names for a container service. The domain names that you specify are used when you create a deployment with a container that is configured as the public endpoint of your container service.
If you don't specify public domain names, then you can use the default domain of the container service.
You must create and validate an SSL/TLS certificate before you can use public domain names with your container service. Use the AWS::Lightsail::Certificate resource to create a certificate for the public domain names that you want to use with your container service.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnContainerPropsMixin.PublicDomainNameProperty>- See Also:
-
getScale
The scale specification of the container service.The scale specifies the allocated compute nodes of the container service.
- See Also:
-
getServiceName
The name of the container service.- See Also:
-
getTags
An array of key-value pairs to apply to this resource.For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.- See Also:
-
builder
- Returns:
- a
CfnContainerMixinProps.BuilderofCfnContainerMixinProps
-