@Generated(value="software.amazon.awssdk:codegen") public final class Service extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Service.Builder,Service>
Describes an App Runner service. It can describe a service in any state, including deleted services.
This type contains the full information about a service, including configuration details. It's returned by the CreateService, DescribeService, and DeleteService actions. A subset of this information is returned by the ListServices action using the ServiceSummary type.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Service.Builder |
| Modifier and Type | Method and Description |
|---|---|
AutoScalingConfigurationSummary |
autoScalingConfigurationSummary()
Summary information for the App Runner automatic scaling configuration resource that's associated with this
service.
|
static Service.Builder |
builder() |
Instant |
createdAt()
The time when the App Runner service was created.
|
Instant |
deletedAt()
The time when the App Runner service was deleted.
|
EncryptionConfiguration |
encryptionConfiguration()
The encryption key that App Runner uses to encrypt the service logs and the copy of the source repository that
App Runner maintains for the service.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
HealthCheckConfiguration |
healthCheckConfiguration()
The settings for the health check that App Runner performs to monitor the health of this service.
|
InstanceConfiguration |
instanceConfiguration()
The runtime configuration of instances (scaling units) of this service.
|
NetworkConfiguration |
networkConfiguration()
Configuration settings related to network traffic of the web application that this service runs.
|
ServiceObservabilityConfiguration |
observabilityConfiguration()
The observability configuration of this service.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Service.Builder> |
serializableBuilderClass() |
String |
serviceArn()
The Amazon Resource Name (ARN) of this service.
|
String |
serviceId()
An ID that App Runner generated for this service.
|
String |
serviceName()
The customer-provided service name.
|
String |
serviceUrl()
A subdomain URL that App Runner generated for this service.
|
SourceConfiguration |
sourceConfiguration()
The source deployed to the App Runner service.
|
ServiceStatus |
status()
The current state of the App Runner service.
|
String |
statusAsString()
The current state of the App Runner service.
|
Service.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Instant |
updatedAt()
The time when the App Runner service was last updated at.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String serviceName()
The customer-provided service name.
public final String serviceId()
An ID that App Runner generated for this service. It's unique within the Amazon Web Services Region.
public final String serviceArn()
The Amazon Resource Name (ARN) of this service.
public final String serviceUrl()
A subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
public final Instant createdAt()
The time when the App Runner service was created. It's in the Unix time stamp format.
public final Instant updatedAt()
The time when the App Runner service was last updated at. It's in the Unix time stamp format.
public final Instant deletedAt()
The time when the App Runner service was deleted. It's in the Unix time stamp format.
public final ServiceStatus status()
The current state of the App Runner service. These particular values mean the following.
CREATE_FAILED – The service failed to create. The failed service isn't usable, and still counts
towards your service quota. To troubleshoot this failure, read the failure events and logs, change any parameters
that need to be fixed, and rebuild your service using UpdateService.
DELETE_FAILED – The service failed to delete and can't be successfully recovered. Retry the service
deletion call to ensure that all related resources are removed.
If the service returns an enum value that is not available in the current SDK version, status will
return ServiceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
CREATE_FAILED – The service failed to create. The failed service isn't usable, and still
counts towards your service quota. To troubleshoot this failure, read the failure events and logs, change
any parameters that need to be fixed, and rebuild your service using UpdateService.
DELETE_FAILED – The service failed to delete and can't be successfully recovered. Retry the
service deletion call to ensure that all related resources are removed.
ServiceStatuspublic final String statusAsString()
The current state of the App Runner service. These particular values mean the following.
CREATE_FAILED – The service failed to create. The failed service isn't usable, and still counts
towards your service quota. To troubleshoot this failure, read the failure events and logs, change any parameters
that need to be fixed, and rebuild your service using UpdateService.
DELETE_FAILED – The service failed to delete and can't be successfully recovered. Retry the service
deletion call to ensure that all related resources are removed.
If the service returns an enum value that is not available in the current SDK version, status will
return ServiceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
statusAsString().
CREATE_FAILED – The service failed to create. The failed service isn't usable, and still
counts towards your service quota. To troubleshoot this failure, read the failure events and logs, change
any parameters that need to be fixed, and rebuild your service using UpdateService.
DELETE_FAILED – The service failed to delete and can't be successfully recovered. Retry the
service deletion call to ensure that all related resources are removed.
ServiceStatuspublic final SourceConfiguration sourceConfiguration()
The source deployed to the App Runner service. It can be a code or an image repository.
public final InstanceConfiguration instanceConfiguration()
The runtime configuration of instances (scaling units) of this service.
public final EncryptionConfiguration encryptionConfiguration()
The encryption key that App Runner uses to encrypt the service logs and the copy of the source repository that App Runner maintains for the service. It can be either a customer-provided encryption key or an Amazon Web Services managed key.
public final HealthCheckConfiguration healthCheckConfiguration()
The settings for the health check that App Runner performs to monitor the health of this service.
public final AutoScalingConfigurationSummary autoScalingConfigurationSummary()
Summary information for the App Runner automatic scaling configuration resource that's associated with this service.
public final NetworkConfiguration networkConfiguration()
Configuration settings related to network traffic of the web application that this service runs.
public final ServiceObservabilityConfiguration observabilityConfiguration()
The observability configuration of this service.
public Service.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Service.Builder,Service>public static Service.Builder builder()
public static Class<? extends Service.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.