CfnContainerProps
- class aws_cdk.aws_lightsail.CfnContainerProps(*, power, scale, service_name, container_service_deployment=None, is_disabled=None, private_registry_access=None, public_domain_names=None, tags=None)
Bases:
object
Properties for defining a
CfnContainer
.- Parameters:
power (
str
) – 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.scale (
Union
[int
,float
]) – The scale specification of the container service. The scale specifies the allocated compute nodes of the container service.service_name (
str
) – The name of the container service.container_service_deployment (
Union
[IResolvable
,ContainerServiceDeploymentProperty
,Dict
[str
,Any
],None
]) – An object that describes the current container deployment of the container service.is_disabled (
Union
[bool
,IResolvable
,None
]) – A Boolean value indicating whether the container service is disabled.private_registry_access (
Union
[IResolvable
,PrivateRegistryAccessProperty
,Dict
[str
,Any
],None
]) – An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry ( 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 .public_domain_names (
Union
[IResolvable
,Sequence
[Union
[IResolvable
,PublicDomainNameProperty
,Dict
[str
,Any
]]],None
]) – The public domain name of the container service, such asexample.com
andwww.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. .. epigraph:: 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.tags (
Optional
[Sequence
[Union
[CfnTag
,Dict
[str
,Any
]]]]) – An array of key-value pairs to apply to this resource. For more information, see Tag in the AWS CloudFormation User Guide . .. epigraph:: TheValue
ofTags
is optional for Lightsail resources.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-container.html
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_lightsail as lightsail cfn_container_props = lightsail.CfnContainerProps( power="power", scale=123, service_name="serviceName", # the properties below are optional container_service_deployment=lightsail.CfnContainer.ContainerServiceDeploymentProperty( containers=[lightsail.CfnContainer.ContainerProperty( command=["command"], container_name="containerName", environment=[lightsail.CfnContainer.EnvironmentVariableProperty( value="value", variable="variable" )], image="image", ports=[lightsail.CfnContainer.PortInfoProperty( port="port", protocol="protocol" )] )], public_endpoint=lightsail.CfnContainer.PublicEndpointProperty( container_name="containerName", container_port=123, health_check_config=lightsail.CfnContainer.HealthCheckConfigProperty( healthy_threshold=123, interval_seconds=123, path="path", success_codes="successCodes", timeout_seconds=123, unhealthy_threshold=123 ) ) ), is_disabled=False, private_registry_access=lightsail.CfnContainer.PrivateRegistryAccessProperty( ecr_image_puller_role=lightsail.CfnContainer.EcrImagePullerRoleProperty( is_active=False, principal_arn="principalArn" ) ), public_domain_names=[lightsail.CfnContainer.PublicDomainNameProperty( certificate_name="certificateName", domain_names=["domainNames"] )], tags=[CfnTag( key="key", value="value" )] )
Attributes
- container_service_deployment
An object that describes the current container deployment of the container service.
- is_disabled
A Boolean value indicating whether the container service is disabled.
- power
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.
- private_registry_access
An object that describes the configuration for the container service to access private container image repositories, such as Amazon Elastic Container Registry ( 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 .
- public_domain_names
The public domain name of the container service, such as
example.com
andwww.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. .. epigraph:
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 <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lightsail-certificate.html>`_ resource to create a certificate for the public domain names that you want to use with your container service.
- scale
The scale specification of the container service.
The scale specifies the allocated compute nodes of the container service.
- service_name
The name of the container service.