![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ecs.kotlin.outputs.GetClusterResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ecs.kotlin.outputs
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn The Amazon Resource Name (ARN) of the Amazon ECS cluster, such as `arn:aws:ecs:us-east-2:123456789012:cluster/MyECSCluster` .
* @property capacityProviders The short name of one or more capacity providers to associate with the cluster. A capacity provider must be associated with a cluster before it can be included as part of the default capacity provider strategy of the cluster or used in a capacity provider strategy when calling the [CreateService](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateService.html) or [RunTask](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_RunTask.html) actions.
* If specifying a capacity provider that uses an Auto Scaling group, the capacity provider must be created but not associated with another cluster. New Auto Scaling group capacity providers can be created with the [CreateCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CreateCapacityProvider.html) API operation.
* To use a FARGATElong capacity provider, specify either the ``FARGATE`` or ``FARGATE_SPOT`` capacity providers. The FARGATElong capacity providers are available to all accounts and only need to be associated with a cluster to be used.
* The [PutCapacityProvider](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_PutCapacityProvider.html) API operation is used to update the list of available capacity providers for a cluster after the cluster is created.
* @property clusterSettings The settings to use when creating a cluster. This parameter is used to turn on CloudWatch Container Insights for a cluster.
* @property configuration The execute command and managed storage configuration for the cluster.
* @property defaultCapacityProviderStrategy The default capacity provider strategy for the cluster. When services or tasks are run in the cluster with no launch type or capacity provider strategy specified, the default capacity provider strategy is used.
* @property tags The metadata that you apply to the cluster to help you categorize and organize them. Each tag consists of a key and an optional value. You define both.
* The following basic restrictions apply to tags:
* + Maximum number of tags per resource - 50
* + For each resource, each tag key must be unique, and each tag key can have only one value.
* + Maximum key length - 128 Unicode characters in UTF-8
* + Maximum value length - 256 Unicode characters in UTF-8
* + If your tagging schema is used across multiple services and resources, remember that other services may have restrictions on allowed characters. Generally allowed characters are: letters, numbers, and spaces representable in UTF-8, and the following characters: + - = . _ : / @.
* + Tag keys and values are case-sensitive.
* + Do not use ``aws:``, ``AWS:``, or any upper or lowercase combination of such as a prefix for either keys or values as it is reserved for AWS use. You cannot edit or delete tag keys or values with this prefix. Tags with this prefix do not count against your tags per resource limit.
*/
public data class GetClusterResult(
public val arn: String? = null,
public val capacityProviders: List? = null,
public val clusterSettings: List? = null,
public val configuration: ClusterConfiguration? = null,
public val defaultCapacityProviderStrategy: List? = null,
public val tags: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.GetClusterResult): GetClusterResult = GetClusterResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
capacityProviders = javaType.capacityProviders().map({ args0 -> args0 }),
clusterSettings = javaType.clusterSettings().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ecs.kotlin.outputs.ClusterSettings.Companion.toKotlin(args0)
})
}),
configuration = javaType.configuration().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ecs.kotlin.outputs.ClusterConfiguration.Companion.toKotlin(args0)
})
}).orElse(null),
defaultCapacityProviderStrategy = javaType.defaultCapacityProviderStrategy().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ecs.kotlin.outputs.ClusterCapacityProviderStrategyItem.Companion.toKotlin(args0)
})
}),
tags = javaType.tags().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy