Class Service
- java.lang.Object
-
- software.amazon.awssdk.services.apprunner.model.Service
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Service.Builder,Service>
@Generated("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.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceService.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AutoScalingConfigurationSummaryautoScalingConfigurationSummary()Summary information for the App Runner automatic scaling configuration resource that's associated with this service.static Service.Builderbuilder()InstantcreatedAt()The time when the App Runner service was created.InstantdeletedAt()The time when the App Runner service was deleted.EncryptionConfigurationencryptionConfiguration()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.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()HealthCheckConfigurationhealthCheckConfiguration()The settings for the health check that App Runner performs to monitor the health of this service.InstanceConfigurationinstanceConfiguration()The runtime configuration of instances (scaling units) of this service.NetworkConfigurationnetworkConfiguration()Configuration settings related to network traffic of the web application that this service runs.ServiceObservabilityConfigurationobservabilityConfiguration()The observability configuration of this service.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Service.Builder>serializableBuilderClass()StringserviceArn()The Amazon Resource Name (ARN) of this service.StringserviceId()An ID that App Runner generated for this service.StringserviceName()The customer-provided service name.StringserviceUrl()A subdomain URL that App Runner generated for this service.SourceConfigurationsourceConfiguration()The source deployed to the App Runner service.ServiceStatusstatus()The current state of the App Runner service.StringstatusAsString()The current state of the App Runner service.Service.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()The time when the App Runner service was last updated at.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
serviceName
public final String serviceName()
The customer-provided service name.
- Returns:
- The customer-provided service name.
-
serviceId
public final String serviceId()
An ID that App Runner generated for this service. It's unique within the Amazon Web Services Region.
- Returns:
- An ID that App Runner generated for this service. It's unique within the Amazon Web Services Region.
-
serviceArn
public final String serviceArn()
The Amazon Resource Name (ARN) of this service.
- Returns:
- The Amazon Resource Name (ARN) of this service.
-
serviceUrl
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.
- Returns:
- A subdomain URL that App Runner generated for this service. You can use this URL to access your service web application.
-
createdAt
public final Instant createdAt()
The time when the App Runner service was created. It's in the Unix time stamp format.
- Returns:
- The time when the App Runner service was created. It's in the Unix time stamp format.
-
updatedAt
public final Instant updatedAt()
The time when the App Runner service was last updated at. It's in the Unix time stamp format.
- Returns:
- The time when the App Runner service was last updated at. It's in the Unix time stamp format.
-
deletedAt
public final Instant deletedAt()
The time when the App Runner service was deleted. It's in the Unix time stamp format.
- Returns:
- The time when the App Runner service was deleted. It's in the Unix time stamp format.
-
status
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 usingUpdateService. -
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,
statuswill returnServiceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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 usingUpdateService. -
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.
-
- See Also:
ServiceStatus
-
-
statusAsString
public 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 usingUpdateService. -
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,
statuswill returnServiceStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- 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 usingUpdateService. -
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.
-
- See Also:
ServiceStatus
-
-
sourceConfiguration
public final SourceConfiguration sourceConfiguration()
The source deployed to the App Runner service. It can be a code or an image repository.
- Returns:
- The source deployed to the App Runner service. It can be a code or an image repository.
-
instanceConfiguration
public final InstanceConfiguration instanceConfiguration()
The runtime configuration of instances (scaling units) of this service.
- Returns:
- The runtime configuration of instances (scaling units) of this service.
-
encryptionConfiguration
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.
- Returns:
- 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.
-
healthCheckConfiguration
public final HealthCheckConfiguration healthCheckConfiguration()
The settings for the health check that App Runner performs to monitor the health of this service.
- Returns:
- The settings for the health check that App Runner performs to monitor the health of this service.
-
autoScalingConfigurationSummary
public final AutoScalingConfigurationSummary autoScalingConfigurationSummary()
Summary information for the App Runner automatic scaling configuration resource that's associated with this service.
- Returns:
- Summary information for the App Runner automatic scaling configuration resource that's associated with this service.
-
networkConfiguration
public final NetworkConfiguration networkConfiguration()
Configuration settings related to network traffic of the web application that this service runs.
- Returns:
- Configuration settings related to network traffic of the web application that this service runs.
-
observabilityConfiguration
public final ServiceObservabilityConfiguration observabilityConfiguration()
The observability configuration of this service.
- Returns:
- The observability configuration of this service.
-
toBuilder
public Service.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Service.Builder,Service>
-
builder
public static Service.Builder builder()
-
serializableBuilderClass
public static Class<? extends Service.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-