All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.resourcegroups.kotlin.outputs.GroupQuery.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.resourcegroups.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property resourceTypeFilters Specifies limits to the types of resources that can be included in the resource group. For example, if `ResourceTypeFilters` is `["AWS::EC2::Instance", "AWS::DynamoDB::Table"]` , only EC2 instances or DynamoDB tables can be members of this resource group. The default value is `["AWS::AllSupported"]` .
 * @property stackIdentifier Specifies the ARN of a CloudFormation stack. All supported resources of the CloudFormation stack are members of the resource group. If you don't specify an ARN, this parameter defaults to the current stack that you are defining, which means that all the resources of the current stack are grouped.
 * You can specify a value for `StackIdentifier` only when the `ResourceQuery.Type` property is `CLOUDFORMATION_STACK_1_0.`
 * @property tagFilters A list of key-value pair objects that limit which resources can be members of the resource group. This property is required when the `ResourceQuery.Type` property is `TAG_FILTERS_1_0` .
 * A resource must have a tag that matches every filter that is provided in the `TagFilters` list.
 */
public data class GroupQuery(
    public val resourceTypeFilters: List? = null,
    public val stackIdentifier: String? = null,
    public val tagFilters: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.resourcegroups.outputs.GroupQuery): GroupQuery = GroupQuery(
            resourceTypeFilters = javaType.resourceTypeFilters().map({ args0 -> args0 }),
            stackIdentifier = javaType.stackIdentifier().map({ args0 -> args0 }).orElse(null),
            tagFilters = javaType.tagFilters().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.resourcegroups.kotlin.outputs.GroupTagFilter.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy