IamFunctions

Functions

Link copied to clipboard
suspend fun getGroup(argument: GetGroupPlainArgs): GetGroupResult

Creates a new group. For information about the number of groups you can create, see Limitations on Entities in the User Guide.

suspend fun getGroup(groupName: String): GetGroupResult
suspend fun getGroup(argument: suspend GetGroupPlainArgsBuilder.() -> Unit): GetGroupResult
Link copied to clipboard

Adds or updates an inline policy document that is embedded in the specified IAM group. A group can also have managed policies attached to it. To attach a managed policy to a group, use AWS::IAM::Group. To create a new managed policy, use AWS::IAM::ManagedPolicy. For information about policies, see Managed policies and inline policies in the IAM User Guide. For information about the maximum number of inline policies that you can embed in a group, see IAM and quotas in the IAM User Guide.

suspend fun getGroupPolicy(groupName: String, policyName: String): GetGroupPolicyResult
Link copied to clipboard

Creates a new instance profile. For information about instance profiles, see Using instance profiles. For information about the number of instance profiles you can create, see object quotas in the User Guide.

suspend fun getInstanceProfile(instanceProfileName: String): GetInstanceProfileResult
Link copied to clipboard

Creates a new managed policy for your AWS-account. This operation creates a policy version with a version identifier of `v1` and sets v1 as the policy's default version. For more information about policy versions, see Versioning for managed policies in the IAM User Guide. As a best practice, you can validate your IAM policies. To learn more, see Validating IAM policies in the IAM User Guide. For more information about managed policies in general, see Managed policies and inline policies in the IAM User Guide.

Link copied to clipboard

Resource Type definition for AWS::IAM::OIDCProvider

Link copied to clipboard
suspend fun getRole(argument: GetRolePlainArgs): GetRoleResult

Creates a new role for your AWS-account. For more information about roles, see IAM roles in the IAM User Guide. For information about quotas for role names and the number of roles you can create, see IAM and quotas in the IAM User Guide.

suspend fun getRole(roleName: String): GetRoleResult
suspend fun getRole(argument: suspend GetRolePlainArgsBuilder.() -> Unit): GetRoleResult
Link copied to clipboard

Adds or updates an inline policy document that is embedded in the specified IAM role. When you embed an inline policy in a role, the inline policy is used as part of the role's access (permissions) policy. The role's trust policy is created at the same time as the role, using CreateRole. You can update a role's trust policy using UpdateAssumeRolePolicy. For information about roles, see roles in the IAM User Guide. A role can also have a managed policy attached to it. To attach a managed policy to a role, use AWS::IAM::Role. To create a new managed policy, use AWS::IAM::ManagedPolicy. For information about policies, see Managed policies and inline policies in the IAM User Guide. For information about the maximum number of inline policies that you can embed with a role, see IAM and quotas in the IAM User Guide.

suspend fun getRolePolicy(policyName: String, roleName: String): GetRolePolicyResult
Link copied to clipboard

Resource Type definition for AWS::IAM::SAMLProvider

Link copied to clipboard

Resource Type definition for AWS::IAM::ServerCertificate

suspend fun getServerCertificate(serverCertificateName: String): GetServerCertificateResult
Link copied to clipboard

Resource Type definition for AWS::IAM::ServiceLinkedRole

Link copied to clipboard
suspend fun getUser(argument: GetUserPlainArgs): GetUserResult

Creates a new IAM user for your AWS-account. For information about quotas for the number of IAM users you can create, see IAM and quotas in the IAM User Guide.

suspend fun getUser(userName: String): GetUserResult
suspend fun getUser(argument: suspend GetUserPlainArgsBuilder.() -> Unit): GetUserResult
Link copied to clipboard

Adds or updates an inline policy document that is embedded in the specified IAM user. An IAM user can also have a managed policy attached to it. To attach a managed policy to a user, use AWS::IAM::User. To create a new managed policy, use AWS::IAM::ManagedPolicy. For information about policies, see Managed policies and inline policies in the IAM User Guide. For information about the maximum number of inline policies that you can embed in a user, see IAM and quotas in the IAM User Guide.

suspend fun getUserPolicy(policyName: String, userName: String): GetUserPolicyResult
Link copied to clipboard

Resource Type definition for AWS::IAM::VirtualMFADevice