Class: Aws::IAM::Types::PolicyIdentifier

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb

Overview

Note:

PolicyIdentifier is a union - when making an API calls you must set exactly one of the members.

Identifies one or more policies as a union type. Specify exactly one of PolicyType, PolicyArn, or InlinePolicyIdentifier to identify policies by their type, by Amazon Resource Name (ARN), or by the name of an inline policy and the entity it is attached to.

Defined Under Namespace

Classes: InlinePolicyIdentifier, PolicyArn, PolicyType, Unknown

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#inline_policy_identifier ⇒ Types::InlinePolicyIdentifierType

An inline policy identifier consisting of a policy name and the entity it is attached to. Wildcard characters (* and ?) in the entity name can match multiple entities.



11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 11327

class PolicyIdentifier < Struct.new(
  :policy_type,
  :policy_arn,
  :inline_policy_identifier,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class PolicyType < PolicyIdentifier; end
  class PolicyArn < PolicyIdentifier; end
  class InlinePolicyIdentifier < PolicyIdentifier; end
  class Unknown < PolicyIdentifier; end
end

#policy_arn ⇒ String

The Amazon Resource Name (ARN) of an Amazon Web Services managed policy or a customer managed policy that is attached to an IAM user, group, or role. Wildcard characters are supported in the resource name portion of the ARN to match multiple managed policies: use at most one * (matches any sequence of characters, including none), and any number of ? (each matches exactly one character).

For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.

Returns:

  • (String)


11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 11327

class PolicyIdentifier < Struct.new(
  :policy_type,
  :policy_arn,
  :inline_policy_identifier,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class PolicyType < PolicyIdentifier; end
  class PolicyArn < PolicyIdentifier; end
  class InlinePolicyIdentifier < PolicyIdentifier; end
  class Unknown < PolicyIdentifier; end
end

#policy_type ⇒ String

The policy type to identify. All policies of the specified type are matched.

Returns:

  • (String)


11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 11327

class PolicyIdentifier < Struct.new(
  :policy_type,
  :policy_arn,
  :inline_policy_identifier,
  :unknown)
  SENSITIVE = []
  include Aws::Structure
  include Aws::Structure::Union

  class PolicyType < PolicyIdentifier; end
  class PolicyArn < PolicyIdentifier; end
  class InlinePolicyIdentifier < PolicyIdentifier; end
  class Unknown < PolicyIdentifier; end
end

#unknown ⇒ Object

Returns the value of attribute unknown

Returns:

  • (Object) —

    the current value of unknown



11327
11328
11329
# File 'gems/aws-sdk-iam/lib/aws-sdk-iam/types.rb', line 11327

def unknown
  @unknown
end