Class: Aws::VerifiedPermissions::Types::UpdatePolicyInput

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-verifiedpermissions/types.rb

Overview

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#definitionTypes::UpdatePolicyDefinition

Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.

You can change only the following elements from the policy definition:

  • The ‘action` referenced by the policy.

  • Any conditional clauses, such as ‘when` or `unless` clauses.

You **can’t** change the following elements:

  • Changing from ‘static` to `templateLinked`.

  • Changing the effect of the policy from ‘permit` or `forbid`.

  • The ‘principal` referenced by the policy.

  • The ‘resource` referenced by the policy.



4278
4279
4280
4281
4282
4283
4284
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 4278

class UpdatePolicyInput < Struct.new(
  :policy_store_id,
  :policy_id,
  :definition)
  SENSITIVE = []
  include Aws::Structure
end

#policy_idString

Specifies the ID of the policy that you want to update. To find this value, you can use [ListPolicies].

[1]: docs.aws.amazon.com/verifiedpermissions/latest/apireference/API_ListPolicies.html

Returns:

  • (String)


4278
4279
4280
4281
4282
4283
4284
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 4278

class UpdatePolicyInput < Struct.new(
  :policy_store_id,
  :policy_id,
  :definition)
  SENSITIVE = []
  include Aws::Structure
end

#policy_store_idString

Specifies the ID of the policy store that contains the policy that you want to update.

Returns:

  • (String)


4278
4279
4280
4281
4282
4283
4284
# File 'lib/aws-sdk-verifiedpermissions/types.rb', line 4278

class UpdatePolicyInput < Struct.new(
  :policy_store_id,
  :policy_id,
  :definition)
  SENSITIVE = []
  include Aws::Structure
end