@Generated(value="software.amazon.awssdk:codegen") public final class ContainerService extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ContainerService.Builder,ContainerService>
Describes an Amazon Lightsail container service.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ContainerService.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
arn()
The Amazon Resource Name (ARN) of the container service.
|
static ContainerService.Builder |
builder() |
String |
containerServiceName()
The name of the container service.
|
Instant |
createdAt()
The timestamp when the container service was created.
|
ContainerServiceDeployment |
currentDeployment()
An object that describes the current container deployment of the container service.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasPublicDomainNames()
For responses, this returns true if the service returned a value for the PublicDomainNames property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
Boolean |
isDisabled()
A Boolean value indicating whether the container service is disabled.
|
ResourceLocation |
location()
An object that describes the location of the container service, such as the Amazon Web Services Region and
Availability Zone.
|
ContainerServiceDeployment |
nextDeployment()
An object that describes the next deployment of the container service.
|
ContainerServicePowerName |
power()
The power specification of the container service.
|
String |
powerAsString()
The power specification of the container service.
|
String |
powerId()
The ID of the power of the container service.
|
String |
principalArn()
The principal ARN of the container service.
|
String |
privateDomainName()
The private domain name of the container service.
|
PrivateRegistryAccess |
privateRegistryAccess()
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.
|
Map<String,List<String>> |
publicDomainNames()
The public domain name of the container service, such as
example.com and
www.example.com. |
ResourceType |
resourceType()
The Lightsail resource type of the container service (i.e.,
ContainerService). |
String |
resourceTypeAsString()
The Lightsail resource type of the container service (i.e.,
ContainerService). |
Integer |
scale()
The scale specification of the container service.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ContainerService.Builder> |
serializableBuilderClass() |
ContainerServiceState |
state()
The current state of the container service.
|
String |
stateAsString()
The current state of the container service.
|
ContainerServiceStateDetail |
stateDetail()
An object that describes the current state of the container service.
|
List<Tag> |
tags()
The tag keys and optional values for the resource.
|
ContainerService.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
url()
The publicly accessible URL of the container service.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String containerServiceName()
The name of the container service.
public final String arn()
The Amazon Resource Name (ARN) of the container service.
public final Instant createdAt()
The timestamp when the container service was created.
public final ResourceLocation location()
An object that describes the location of the container service, such as the Amazon Web Services Region and Availability Zone.
public final ResourceType resourceType()
The Lightsail resource type of the container service (i.e., ContainerService).
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ContainerService).ResourceTypepublic final String resourceTypeAsString()
The Lightsail resource type of the container service (i.e., ContainerService).
If the service returns an enum value that is not available in the current SDK version, resourceType will
return ResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
resourceTypeAsString().
ContainerService).ResourceTypepublic final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final List<Tag> tags()
The tag keys and optional values for the resource. For more information about tags in Lightsail, see the Amazon Lightsail Developer Guide.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
public final ContainerServicePowerName 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.
If the service returns an enum value that is not available in the current SDK version, power will return
ContainerServicePowerName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
powerAsString().
The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
ContainerServicePowerNamepublic final String powerAsString()
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.
If the service returns an enum value that is not available in the current SDK version, power will return
ContainerServicePowerName.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
powerAsString().
The power specifies the amount of RAM, the number of vCPUs, and the base price of the container service.
ContainerServicePowerNamepublic final String powerId()
The ID of the power of the container service.
public final ContainerServiceState state()
The current state of the container service.
The following container service states are possible:
PENDING - The container service is being created.
READY - The container service is running but it does not have an active container deployment.
DEPLOYING - The container service is launching a container deployment.
RUNNING - The container service is running and it has an active container deployment.
UPDATING - The container service capacity or its custom domains are being updated.
DELETING - The container service is being deleted.
DISABLED - The container service is disabled, and its active deployment and containers, if any, are
shut down.
If the service returns an enum value that is not available in the current SDK version, state will return
ContainerServiceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
The following container service states are possible:
PENDING - The container service is being created.
READY - The container service is running but it does not have an active container
deployment.
DEPLOYING - The container service is launching a container deployment.
RUNNING - The container service is running and it has an active container deployment.
UPDATING - The container service capacity or its custom domains are being updated.
DELETING - The container service is being deleted.
DISABLED - The container service is disabled, and its active deployment and containers, if
any, are shut down.
ContainerServiceStatepublic final String stateAsString()
The current state of the container service.
The following container service states are possible:
PENDING - The container service is being created.
READY - The container service is running but it does not have an active container deployment.
DEPLOYING - The container service is launching a container deployment.
RUNNING - The container service is running and it has an active container deployment.
UPDATING - The container service capacity or its custom domains are being updated.
DELETING - The container service is being deleted.
DISABLED - The container service is disabled, and its active deployment and containers, if any, are
shut down.
If the service returns an enum value that is not available in the current SDK version, state will return
ContainerServiceState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
stateAsString().
The following container service states are possible:
PENDING - The container service is being created.
READY - The container service is running but it does not have an active container
deployment.
DEPLOYING - The container service is launching a container deployment.
RUNNING - The container service is running and it has an active container deployment.
UPDATING - The container service capacity or its custom domains are being updated.
DELETING - The container service is being deleted.
DISABLED - The container service is disabled, and its active deployment and containers, if
any, are shut down.
ContainerServiceStatepublic final ContainerServiceStateDetail stateDetail()
An object that describes the current state of the container service.
The state detail is populated only when a container service is in a PENDING, DEPLOYING,
or UPDATING state.
The state detail is populated only when a container service is in a PENDING,
DEPLOYING, or UPDATING state.
public final Integer scale()
The scale specification of the container service.
The scale specifies the allocated compute nodes of the container service.
The scale specifies the allocated compute nodes of the container service.
public final ContainerServiceDeployment currentDeployment()
An object that describes the current container deployment of the container service.
public final ContainerServiceDeployment nextDeployment()
An object that describes the next deployment of the container service.
This value is null when there is no deployment in a pending state.
This value is null when there is no deployment in a pending state.
public final Boolean isDisabled()
A Boolean value indicating whether the container service is disabled.
public final String principalArn()
The principal ARN of the container service.
The principal ARN can be used to create a trust relationship between your standard Amazon Web Services account and your Lightsail container service. This allows you to give your service permission to access resources in your standard Amazon Web Services account.
The principal ARN can be used to create a trust relationship between your standard Amazon Web Services account and your Lightsail container service. This allows you to give your service permission to access resources in your standard Amazon Web Services account.
public final String privateDomainName()
The private domain name of the container service.
The private domain name is accessible only by other resources within the default virtual private cloud (VPC) of your Lightsail account.
The private domain name is accessible only by other resources within the default virtual private cloud (VPC) of your Lightsail account.
public final boolean hasPublicDomainNames()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final Map<String,List<String>> publicDomainNames()
The public domain name of the container service, such as example.com and
www.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 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 CreateCertificate action to create a certificate for the public domain names you
want to use with your container service.
See CreateContainerService or UpdateContainerService for information about how to
specify public domain names for your Lightsail container service.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasPublicDomainNames() method.
example.com and
www.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 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 CreateCertificate action to create a certificate for the public
domain names you want to use with your container service.
See CreateContainerService or UpdateContainerService for information about how
to specify public domain names for your Lightsail container service.
public final String url()
The publicly accessible URL of the container service.
If no public endpoint is specified in the currentDeployment, this URL returns a 404 response.
If no public endpoint is specified in the currentDeployment, this URL returns a 404
response.
public final PrivateRegistryAccess privateRegistryAccess()
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.
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 ContainerService.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ContainerService.Builder,ContainerService>public static ContainerService.Builder builder()
public static Class<? extends ContainerService.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.