Interface Policy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Policy.Builder,,Policy> SdkBuilder<Policy.Builder,,Policy> SdkPojo
- Enclosing class:
Policy
-
Method Summary
Modifier and TypeMethodDescriptionThe timestamp when the policy was originally created.default Policy.Builderdefinition(Consumer<PolicyDefinition.Builder> definition) The Cedar policy statement that defines the access control rules.definition(PolicyDefinition definition) The Cedar policy statement that defines the access control rules.description(String description) A human-readable description of the policy's purpose and functionality.The customer-assigned immutable name for the policy.The Amazon Resource Name (ARN) of the policy.policyEngineId(String policyEngineId) The identifier of the policy engine that manages this policy.The unique identifier for the policy.The current status of the policy.status(PolicyStatus status) The current status of the policy.statusReasons(String... statusReasons) Additional information about the policy status.statusReasons(Collection<String> statusReasons) Additional information about the policy status.The timestamp when the policy was last modified.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
policyId
The unique identifier for the policy. This system-generated identifier consists of the user name plus a 10-character generated suffix and serves as the primary key for policy operations.
- Parameters:
policyId- The unique identifier for the policy. This system-generated identifier consists of the user name plus a 10-character generated suffix and serves as the primary key for policy operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The customer-assigned immutable name for the policy. This human-readable identifier must be unique within the account and cannot exceed 48 characters.
- Parameters:
name- The customer-assigned immutable name for the policy. This human-readable identifier must be unique within the account and cannot exceed 48 characters.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyEngineId
The identifier of the policy engine that manages this policy. This establishes the policy engine context for policy evaluation and management.
- Parameters:
policyEngineId- The identifier of the policy engine that manages this policy. This establishes the policy engine context for policy evaluation and management.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The Cedar policy statement that defines the access control rules. This contains the actual policy logic used for agent behavior control and access decisions.
- Parameters:
definition- The Cedar policy statement that defines the access control rules. This contains the actual policy logic used for agent behavior control and access decisions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The Cedar policy statement that defines the access control rules. This contains the actual policy logic used for agent behavior control and access decisions.
This is a convenience method that creates an instance of thePolicyDefinition.Builderavoiding the need to create one manually viaPolicyDefinition.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todefinition(PolicyDefinition).- Parameters:
definition- a consumer that will call methods onPolicyDefinition.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
description
A human-readable description of the policy's purpose and functionality. Limited to 4,096 characters, this helps administrators understand and manage the policy.
- Parameters:
description- A human-readable description of the policy's purpose and functionality. Limited to 4,096 characters, this helps administrators understand and manage the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdAt
The timestamp when the policy was originally created. This is automatically set by the service and used for auditing and lifecycle management.
- Parameters:
createdAt- The timestamp when the policy was originally created. This is automatically set by the service and used for auditing and lifecycle management.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
updatedAt
The timestamp when the policy was last modified. This tracks the most recent changes to the policy configuration or metadata.
- Parameters:
updatedAt- The timestamp when the policy was last modified. This tracks the most recent changes to the policy configuration or metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyArn
The Amazon Resource Name (ARN) of the policy. This globally unique identifier can be used for cross-service references and IAM policy statements.
- Parameters:
policyArn- The Amazon Resource Name (ARN) of the policy. This globally unique identifier can be used for cross-service references and IAM policy statements.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
The current status of the policy.
- Parameters:
status- The current status of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the policy.
- Parameters:
status- The current status of the policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
statusReasons
Additional information about the policy status. This provides details about any failures or the current state of the policy lifecycle.
- Parameters:
statusReasons- Additional information about the policy status. This provides details about any failures or the current state of the policy lifecycle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
statusReasons
Additional information about the policy status. This provides details about any failures or the current state of the policy lifecycle.
- Parameters:
statusReasons- Additional information about the policy status. This provides details about any failures or the current state of the policy lifecycle.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-