![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.iam.kotlin.outputs.GetGroupResult.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iam.kotlin.outputs
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
*
* @property arn Returns the Amazon Resource Name (ARN) for the specified `AWS::IAM::Group` resource. For example: `arn:aws:iam::123456789012:group/mystack-mygroup-1DZETITOWEKVO` .
* @property managedPolicyArns The Amazon Resource Name (ARN) of the IAM policy you want to attach.
* For more information about ARNs, see [Amazon Resource Names (ARNs)](https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html) in the *General Reference*.
* @property path The path to the group. For more information about paths, see [IAM identifiers](https://docs.aws.amazon.com/IAM/latest/UserGuide/Using_Identifiers.html) in the *IAM User Guide*.
* This parameter is optional. If it is not included, it defaults to a slash (/).
* This parameter allows (through its [regex pattern](https://docs.aws.amazon.com/http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (``\u0021``) through the DEL character (``\u007F``), including most punctuation characters, digits, and upper and lowercased letters.
* @property policies Adds or updates an inline policy document that is embedded in the specified IAM group. To view AWS::IAM::Group snippets, see [Declaring an Group Resource](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-iam.html#scenario-iam-group).
* The name of each inline policy for a role, user, or group must be unique. If you don't choose unique names, updates to the IAM identity will fail.
* For information about limits on the number of inline policies that you can embed in a group, see [Limitations on Entities](https://docs.aws.amazon.com/IAM/latest/UserGuide/LimitationsOnEntities.html) in the *User Guide*.
*/
public data class GetGroupResult(
public val arn: String? = null,
public val managedPolicyArns: List? = null,
public val path: String? = null,
public val policies: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.iam.outputs.GetGroupResult): GetGroupResult =
GetGroupResult(
arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
managedPolicyArns = javaType.managedPolicyArns().map({ args0 -> args0 }),
path = javaType.path().map({ args0 -> args0 }).orElse(null),
policies = javaType.policies().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.iam.kotlin.outputs.GroupPolicy.Companion.toKotlin(args0)
})
}),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy