GetPolicyDocumentStatement

data class GetPolicyDocumentStatement(val actions: List<String>? = null, val conditions: List<GetPolicyDocumentStatementCondition>? = null, val effect: String? = null, val notActions: List<String>? = null, val notPrincipals: List<GetPolicyDocumentStatementNotPrincipal>? = null, val notResources: List<String>? = null, val principals: List<GetPolicyDocumentStatementPrincipal>? = null, val resources: List<String>? = null, val sid: String? = null)

Constructors

Link copied to clipboard
constructor(actions: List<String>? = null, conditions: List<GetPolicyDocumentStatementCondition>? = null, effect: String? = null, notActions: List<String>? = null, notPrincipals: List<GetPolicyDocumentStatementNotPrincipal>? = null, notResources: List<String>? = null, principals: List<GetPolicyDocumentStatementPrincipal>? = null, resources: List<String>? = null, sid: String? = null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val actions: List<String>? = null

List of actions that this statement either allows or denies. For example, ["ec2:RunInstances", "s3:*"].

Link copied to clipboard

Configuration block for a condition. Detailed below.

Link copied to clipboard
val effect: String? = null

Whether this statement allows or denies the given actions. Valid values are Allow and Deny. Defaults to Allow.

Link copied to clipboard
val notActions: List<String>? = null

List of actions that this statement does not apply to. Use to apply a policy statement to all actions except those listed.

Link copied to clipboard

Like principals except these are principals that the statement does not apply to.

Link copied to clipboard
val notResources: List<String>? = null

List of resource ARNs that this statement does not apply to. Use to apply a policy statement to all resources except those listed. Conflicts with resources.

Link copied to clipboard

Configuration block for principals. Detailed below.

Link copied to clipboard
val resources: List<String>? = null

List of resource ARNs that this statement applies to. This is required by AWS if used for an IAM policy. Conflicts with not_resources.

Link copied to clipboard
val sid: String? = null

Sid (statement ID) is an identifier for a policy statement.