Interface CreatePolicyResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BedrockAgentCoreControlResponse.Builder,Buildable,CopyableBuilder<CreatePolicyResponse.Builder,,CreatePolicyResponse> SdkBuilder<CreatePolicyResponse.Builder,,CreatePolicyResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreatePolicyResponse
-
Method Summary
Modifier and TypeMethodDescriptionThe timestamp when the policy was created.default CreatePolicyResponse.Builderdefinition(Consumer<PolicyDefinition.Builder> definition) The Cedar policy statement that was created.definition(PolicyDefinition definition) The Cedar policy statement that was created.description(String description) The human-readable description of the policy's purpose and functionality.The customer-assigned name of the created policy.The Amazon Resource Name (ARN) of the created policy.policyEngineId(String policyEngineId) The identifier of the policy engine that manages this policy.The unique identifier for the created 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 updated.Methods inherited from interface software.amazon.awssdk.services.bedrockagentcorecontrol.model.BedrockAgentCoreControlResponse.Builder
build, responseMetadata, responseMetadataMethods 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, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
policyId
The unique identifier for the created policy. This is a system-generated identifier consisting of the user name plus a 10-character generated suffix, used for all subsequent policy operations.
- Parameters:
policyId- The unique identifier for the created policy. This is a system-generated identifier consisting of the user name plus a 10-character generated suffix, used for all subsequent policy operations.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The customer-assigned name of the created policy. This matches the name provided in the request and serves as the human-readable identifier for the policy.
- Parameters:
name- The customer-assigned name of the created policy. This matches the name provided in the request and serves as the human-readable identifier for the policy.- 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 confirms the policy engine assignment and is used for policy evaluation routing.
- Parameters:
policyEngineId- The identifier of the policy engine that manages this policy. This confirms the policy engine assignment and is used for policy evaluation routing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
The Cedar policy statement that was created. This is the validated policy definition that will be used for agent behavior control and access decisions.
- Parameters:
definition- The Cedar policy statement that was created. This is the validated policy definition that will be 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 was created. This is the validated policy definition that will be 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
The human-readable description of the policy's purpose and functionality. This helps administrators understand and manage the policy.
- Parameters:
description- The human-readable description of the policy's purpose and functionality. 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 created. This is automatically set by the service and used for auditing and lifecycle management.
- Parameters:
createdAt- The timestamp when the policy was 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 updated. For newly created policies, this matches the createdAt timestamp.
- Parameters:
updatedAt- The timestamp when the policy was last updated. For newly created policies, this matches the createdAt timestamp.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
policyArn
The Amazon Resource Name (ARN) of the created 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 created 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. A status of
ACTIVEindicates the policy is ready for use.- Parameters:
status- The current status of the policy. A status ofACTIVEindicates the policy is ready for use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
status
The current status of the policy. A status of
ACTIVEindicates the policy is ready for use.- Parameters:
status- The current status of the policy. A status ofACTIVEindicates the policy is ready for use.- 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 creation process.
- Parameters:
statusReasons- Additional information about the policy status. This provides details about any failures or the current state of the policy creation process.- 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 creation process.
- Parameters:
statusReasons- Additional information about the policy status. This provides details about any failures or the current state of the policy creation process.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-