@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AbstractAmazonVerifiedPermissionsAsync extends AbstractAmazonVerifiedPermissions implements AmazonVerifiedPermissionsAsync
AmazonVerifiedPermissionsAsync
. Convenient method forms pass through to the
corresponding overload that takes a request object and an AsyncHandler
, which throws an
UnsupportedOperationException
.ENDPOINT_PREFIX
createIdentitySource, createPolicy, createPolicyStore, createPolicyTemplate, deleteIdentitySource, deletePolicy, deletePolicyStore, deletePolicyTemplate, getCachedResponseMetadata, getIdentitySource, getPolicy, getPolicyStore, getPolicyTemplate, getSchema, isAuthorized, isAuthorizedWithToken, listIdentitySources, listPolicies, listPolicyStores, listPolicyTemplates, putSchema, shutdown, updateIdentitySource, updatePolicy, updatePolicyStore, updatePolicyTemplate
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createIdentitySource, createPolicy, createPolicyStore, createPolicyTemplate, deleteIdentitySource, deletePolicy, deletePolicyStore, deletePolicyTemplate, getCachedResponseMetadata, getIdentitySource, getPolicy, getPolicyStore, getPolicyTemplate, getSchema, isAuthorized, isAuthorizedWithToken, listIdentitySources, listPolicies, listPolicyStores, listPolicyTemplates, putSchema, shutdown, updateIdentitySource, updatePolicy, updatePolicyStore, updatePolicyTemplate
public Future<CreateIdentitySourceResult> createIdentitySourceAsync(CreateIdentitySourceRequest request)
AmazonVerifiedPermissionsAsync
Creates a reference to an Amazon Cognito user pool as an external identity provider (IdP).
After you create an identity source, you can use the identities provided by the IdP as proxies for the principal in authorization queries that use the IsAuthorizedWithToken operation. These identities take the form of tokens that contain claims about the user, such as IDs, attributes and group memberships. Amazon Cognito provides both identity tokens and access tokens, and Verified Permissions can use either or both. Any combination of identity and access tokens results in the same Cedar principal. Verified Permissions automatically translates the information about the identities into the standard Cedar attributes that can be evaluated by your policies. Because the Amazon Cognito identity and access tokens can contain different information, the tokens you choose to use determine which principal attributes are available to access when evaluating Cedar policies.
If you delete a Amazon Cognito user pool or user, tokens from that deleted pool or that deleted user continue to be usable until they expire.
To reference a user from this identity source in your Cedar policies, use the following syntax.
IdentityType::"<CognitoUserPoolIdentifier>|<CognitoClientId>
Where IdentityType
is the string that you provide to the PrincipalEntityType
parameter
for this operation. The CognitoUserPoolId
and CognitoClientId
are defined by the Amazon
Cognito user pool.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
createIdentitySourceAsync
in interface AmazonVerifiedPermissionsAsync
public Future<CreateIdentitySourceResult> createIdentitySourceAsync(CreateIdentitySourceRequest request, AsyncHandler<CreateIdentitySourceRequest,CreateIdentitySourceResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Creates a reference to an Amazon Cognito user pool as an external identity provider (IdP).
After you create an identity source, you can use the identities provided by the IdP as proxies for the principal in authorization queries that use the IsAuthorizedWithToken operation. These identities take the form of tokens that contain claims about the user, such as IDs, attributes and group memberships. Amazon Cognito provides both identity tokens and access tokens, and Verified Permissions can use either or both. Any combination of identity and access tokens results in the same Cedar principal. Verified Permissions automatically translates the information about the identities into the standard Cedar attributes that can be evaluated by your policies. Because the Amazon Cognito identity and access tokens can contain different information, the tokens you choose to use determine which principal attributes are available to access when evaluating Cedar policies.
If you delete a Amazon Cognito user pool or user, tokens from that deleted pool or that deleted user continue to be usable until they expire.
To reference a user from this identity source in your Cedar policies, use the following syntax.
IdentityType::"<CognitoUserPoolIdentifier>|<CognitoClientId>
Where IdentityType
is the string that you provide to the PrincipalEntityType
parameter
for this operation. The CognitoUserPoolId
and CognitoClientId
are defined by the Amazon
Cognito user pool.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
createIdentitySourceAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreatePolicyResult> createPolicyAsync(CreatePolicyRequest request)
AmazonVerifiedPermissionsAsync
Creates a Cedar policy and saves it in the specified policy store. You can create either a static policy or a policy linked to a policy template.
To create a static policy, provide the Cedar policy text in the StaticPolicy
section of the
PolicyDefinition
.
To create a policy that is dynamically linked to a policy template, specify the policy template ID and the
principal and resource to associate with this policy in the templateLinked
section of the
PolicyDefinition
. If the policy template is ever updated, any policies linked to the policy template
automatically use the updated template.
Creating a policy causes it to be validated against the schema in the policy store. If the policy doesn't pass validation, the operation fails and the policy isn't stored.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
createPolicyAsync
in interface AmazonVerifiedPermissionsAsync
public Future<CreatePolicyResult> createPolicyAsync(CreatePolicyRequest request, AsyncHandler<CreatePolicyRequest,CreatePolicyResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Creates a Cedar policy and saves it in the specified policy store. You can create either a static policy or a policy linked to a policy template.
To create a static policy, provide the Cedar policy text in the StaticPolicy
section of the
PolicyDefinition
.
To create a policy that is dynamically linked to a policy template, specify the policy template ID and the
principal and resource to associate with this policy in the templateLinked
section of the
PolicyDefinition
. If the policy template is ever updated, any policies linked to the policy template
automatically use the updated template.
Creating a policy causes it to be validated against the schema in the policy store. If the policy doesn't pass validation, the operation fails and the policy isn't stored.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
createPolicyAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreatePolicyStoreResult> createPolicyStoreAsync(CreatePolicyStoreRequest request)
AmazonVerifiedPermissionsAsync
Creates a policy store. A policy store is a container for policy resources.
Although Cedar supports multiple namespaces, Verified Permissions currently supports only one namespace per policy store.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
createPolicyStoreAsync
in interface AmazonVerifiedPermissionsAsync
public Future<CreatePolicyStoreResult> createPolicyStoreAsync(CreatePolicyStoreRequest request, AsyncHandler<CreatePolicyStoreRequest,CreatePolicyStoreResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Creates a policy store. A policy store is a container for policy resources.
Although Cedar supports multiple namespaces, Verified Permissions currently supports only one namespace per policy store.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
createPolicyStoreAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreatePolicyTemplateResult> createPolicyTemplateAsync(CreatePolicyTemplateRequest request)
AmazonVerifiedPermissionsAsync
Creates a policy template. A template can use placeholders for the principal and resource. A template must be instantiated into a policy by associating it with specific principals and resources to use for the placeholders. That instantiated policy can then be considered in authorization decisions. The instantiated policy works identically to any other policy, except that it is dynamically linked to the template. If the template changes, then any policies that are linked to that template are immediately updated as well.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
createPolicyTemplateAsync
in interface AmazonVerifiedPermissionsAsync
public Future<CreatePolicyTemplateResult> createPolicyTemplateAsync(CreatePolicyTemplateRequest request, AsyncHandler<CreatePolicyTemplateRequest,CreatePolicyTemplateResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Creates a policy template. A template can use placeholders for the principal and resource. A template must be instantiated into a policy by associating it with specific principals and resources to use for the placeholders. That instantiated policy can then be considered in authorization decisions. The instantiated policy works identically to any other policy, except that it is dynamically linked to the template. If the template changes, then any policies that are linked to that template are immediately updated as well.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
createPolicyTemplateAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteIdentitySourceResult> deleteIdentitySourceAsync(DeleteIdentitySourceRequest request)
AmazonVerifiedPermissionsAsync
Deletes an identity source that references an identity provider (IdP) such as Amazon Cognito. After you delete the identity source, you can no longer use tokens for identities from that identity source to represent principals in authorization queries made using IsAuthorizedWithToken. operations.
deleteIdentitySourceAsync
in interface AmazonVerifiedPermissionsAsync
public Future<DeleteIdentitySourceResult> deleteIdentitySourceAsync(DeleteIdentitySourceRequest request, AsyncHandler<DeleteIdentitySourceRequest,DeleteIdentitySourceResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Deletes an identity source that references an identity provider (IdP) such as Amazon Cognito. After you delete the identity source, you can no longer use tokens for identities from that identity source to represent principals in authorization queries made using IsAuthorizedWithToken. operations.
deleteIdentitySourceAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeletePolicyResult> deletePolicyAsync(DeletePolicyRequest request)
AmazonVerifiedPermissionsAsync
Deletes the specified policy from the policy store.
This operation is idempotent; if you specify a policy that doesn't exist, the request response returns a
successful HTTP 200
status code.
deletePolicyAsync
in interface AmazonVerifiedPermissionsAsync
public Future<DeletePolicyResult> deletePolicyAsync(DeletePolicyRequest request, AsyncHandler<DeletePolicyRequest,DeletePolicyResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Deletes the specified policy from the policy store.
This operation is idempotent; if you specify a policy that doesn't exist, the request response returns a
successful HTTP 200
status code.
deletePolicyAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeletePolicyStoreResult> deletePolicyStoreAsync(DeletePolicyStoreRequest request)
AmazonVerifiedPermissionsAsync
Deletes the specified policy store.
This operation is idempotent. If you specify a policy store that does not exist, the request response will still return a successful HTTP 200 status code.
deletePolicyStoreAsync
in interface AmazonVerifiedPermissionsAsync
public Future<DeletePolicyStoreResult> deletePolicyStoreAsync(DeletePolicyStoreRequest request, AsyncHandler<DeletePolicyStoreRequest,DeletePolicyStoreResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Deletes the specified policy store.
This operation is idempotent. If you specify a policy store that does not exist, the request response will still return a successful HTTP 200 status code.
deletePolicyStoreAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeletePolicyTemplateResult> deletePolicyTemplateAsync(DeletePolicyTemplateRequest request)
AmazonVerifiedPermissionsAsync
Deletes the specified policy template from the policy store.
This operation also deletes any policies that were created from the specified policy template. Those policies are immediately removed from all future API responses, and are asynchronously deleted from the policy store.
deletePolicyTemplateAsync
in interface AmazonVerifiedPermissionsAsync
public Future<DeletePolicyTemplateResult> deletePolicyTemplateAsync(DeletePolicyTemplateRequest request, AsyncHandler<DeletePolicyTemplateRequest,DeletePolicyTemplateResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Deletes the specified policy template from the policy store.
This operation also deletes any policies that were created from the specified policy template. Those policies are immediately removed from all future API responses, and are asynchronously deleted from the policy store.
deletePolicyTemplateAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetIdentitySourceResult> getIdentitySourceAsync(GetIdentitySourceRequest request)
AmazonVerifiedPermissionsAsync
Retrieves the details about the specified identity source.
getIdentitySourceAsync
in interface AmazonVerifiedPermissionsAsync
public Future<GetIdentitySourceResult> getIdentitySourceAsync(GetIdentitySourceRequest request, AsyncHandler<GetIdentitySourceRequest,GetIdentitySourceResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Retrieves the details about the specified identity source.
getIdentitySourceAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetPolicyResult> getPolicyAsync(GetPolicyRequest request)
AmazonVerifiedPermissionsAsync
Retrieves information about the specified policy.
getPolicyAsync
in interface AmazonVerifiedPermissionsAsync
public Future<GetPolicyResult> getPolicyAsync(GetPolicyRequest request, AsyncHandler<GetPolicyRequest,GetPolicyResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Retrieves information about the specified policy.
getPolicyAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetPolicyStoreResult> getPolicyStoreAsync(GetPolicyStoreRequest request)
AmazonVerifiedPermissionsAsync
Retrieves details about a policy store.
getPolicyStoreAsync
in interface AmazonVerifiedPermissionsAsync
public Future<GetPolicyStoreResult> getPolicyStoreAsync(GetPolicyStoreRequest request, AsyncHandler<GetPolicyStoreRequest,GetPolicyStoreResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Retrieves details about a policy store.
getPolicyStoreAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetPolicyTemplateResult> getPolicyTemplateAsync(GetPolicyTemplateRequest request)
AmazonVerifiedPermissionsAsync
Retrieve the details for the specified policy template in the specified policy store.
getPolicyTemplateAsync
in interface AmazonVerifiedPermissionsAsync
public Future<GetPolicyTemplateResult> getPolicyTemplateAsync(GetPolicyTemplateRequest request, AsyncHandler<GetPolicyTemplateRequest,GetPolicyTemplateResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Retrieve the details for the specified policy template in the specified policy store.
getPolicyTemplateAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetSchemaResult> getSchemaAsync(GetSchemaRequest request)
AmazonVerifiedPermissionsAsync
Retrieve the details for the specified schema in the specified policy store.
getSchemaAsync
in interface AmazonVerifiedPermissionsAsync
public Future<GetSchemaResult> getSchemaAsync(GetSchemaRequest request, AsyncHandler<GetSchemaRequest,GetSchemaResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Retrieve the details for the specified schema in the specified policy store.
getSchemaAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<IsAuthorizedResult> isAuthorizedAsync(IsAuthorizedRequest request)
AmazonVerifiedPermissionsAsync
Makes an authorization decision about a service request described in the parameters. The information in the
parameters can also define additional context that Verified Permissions can include in the evaluation. The
request is evaluated against all matching policies in the specified policy store. The result of the decision is
either Allow
or Deny
, along with a list of the policies that resulted in the decision.
isAuthorizedAsync
in interface AmazonVerifiedPermissionsAsync
public Future<IsAuthorizedResult> isAuthorizedAsync(IsAuthorizedRequest request, AsyncHandler<IsAuthorizedRequest,IsAuthorizedResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Makes an authorization decision about a service request described in the parameters. The information in the
parameters can also define additional context that Verified Permissions can include in the evaluation. The
request is evaluated against all matching policies in the specified policy store. The result of the decision is
either Allow
or Deny
, along with a list of the policies that resulted in the decision.
isAuthorizedAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<IsAuthorizedWithTokenResult> isAuthorizedWithTokenAsync(IsAuthorizedWithTokenRequest request)
AmazonVerifiedPermissionsAsync
Makes an authorization decision about a service request described in the parameters. The principal in this
request comes from an external identity source in the form of an identity token formatted as a JSON web token (JWT). The information in the parameters can
also define additional context that Verified Permissions can include in the evaluation. The request is evaluated
against all matching policies in the specified policy store. The result of the decision is either
Allow
or Deny
, along with a list of the policies that resulted in the decision.
If you specify the identityToken
parameter, then this operation derives the principal from that
token. You must not also include that principal in the entities
parameter or the operation fails and
reports a conflict between the two entity sources.
If you provide only an accessToken
, then you can include the entity as part of the
entities
parameter to provide additional attributes.
At this time, Verified Permissions accepts tokens from only Amazon Cognito.
Verified Permissions validates each token that is specified in a request by checking its expiration date and its signature.
If you delete a Amazon Cognito user pool or user, tokens from that deleted pool or that deleted user continue to be usable until they expire.
isAuthorizedWithTokenAsync
in interface AmazonVerifiedPermissionsAsync
public Future<IsAuthorizedWithTokenResult> isAuthorizedWithTokenAsync(IsAuthorizedWithTokenRequest request, AsyncHandler<IsAuthorizedWithTokenRequest,IsAuthorizedWithTokenResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Makes an authorization decision about a service request described in the parameters. The principal in this
request comes from an external identity source in the form of an identity token formatted as a JSON web token (JWT). The information in the parameters can
also define additional context that Verified Permissions can include in the evaluation. The request is evaluated
against all matching policies in the specified policy store. The result of the decision is either
Allow
or Deny
, along with a list of the policies that resulted in the decision.
If you specify the identityToken
parameter, then this operation derives the principal from that
token. You must not also include that principal in the entities
parameter or the operation fails and
reports a conflict between the two entity sources.
If you provide only an accessToken
, then you can include the entity as part of the
entities
parameter to provide additional attributes.
At this time, Verified Permissions accepts tokens from only Amazon Cognito.
Verified Permissions validates each token that is specified in a request by checking its expiration date and its signature.
If you delete a Amazon Cognito user pool or user, tokens from that deleted pool or that deleted user continue to be usable until they expire.
isAuthorizedWithTokenAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListIdentitySourcesResult> listIdentitySourcesAsync(ListIdentitySourcesRequest request)
AmazonVerifiedPermissionsAsync
Returns a paginated list of all of the identity sources defined in the specified policy store.
listIdentitySourcesAsync
in interface AmazonVerifiedPermissionsAsync
public Future<ListIdentitySourcesResult> listIdentitySourcesAsync(ListIdentitySourcesRequest request, AsyncHandler<ListIdentitySourcesRequest,ListIdentitySourcesResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Returns a paginated list of all of the identity sources defined in the specified policy store.
listIdentitySourcesAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListPoliciesResult> listPoliciesAsync(ListPoliciesRequest request)
AmazonVerifiedPermissionsAsync
Returns a paginated list of all policies stored in the specified policy store.
listPoliciesAsync
in interface AmazonVerifiedPermissionsAsync
public Future<ListPoliciesResult> listPoliciesAsync(ListPoliciesRequest request, AsyncHandler<ListPoliciesRequest,ListPoliciesResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Returns a paginated list of all policies stored in the specified policy store.
listPoliciesAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListPolicyStoresResult> listPolicyStoresAsync(ListPolicyStoresRequest request)
AmazonVerifiedPermissionsAsync
Returns a paginated list of all policy stores in the calling Amazon Web Services account.
listPolicyStoresAsync
in interface AmazonVerifiedPermissionsAsync
public Future<ListPolicyStoresResult> listPolicyStoresAsync(ListPolicyStoresRequest request, AsyncHandler<ListPolicyStoresRequest,ListPolicyStoresResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Returns a paginated list of all policy stores in the calling Amazon Web Services account.
listPolicyStoresAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListPolicyTemplatesResult> listPolicyTemplatesAsync(ListPolicyTemplatesRequest request)
AmazonVerifiedPermissionsAsync
Returns a paginated list of all policy templates in the specified policy store.
listPolicyTemplatesAsync
in interface AmazonVerifiedPermissionsAsync
public Future<ListPolicyTemplatesResult> listPolicyTemplatesAsync(ListPolicyTemplatesRequest request, AsyncHandler<ListPolicyTemplatesRequest,ListPolicyTemplatesResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Returns a paginated list of all policy templates in the specified policy store.
listPolicyTemplatesAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<PutSchemaResult> putSchemaAsync(PutSchemaRequest request)
AmazonVerifiedPermissionsAsync
Creates or updates the policy schema in the specified policy store. The schema is used to validate any Cedar policies and policy templates submitted to the policy store. Any changes to the schema validate only policies and templates submitted after the schema change. Existing policies and templates are not re-evaluated against the changed schema. If you later update a policy, then it is evaluated against the new schema at that time.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
putSchemaAsync
in interface AmazonVerifiedPermissionsAsync
public Future<PutSchemaResult> putSchemaAsync(PutSchemaRequest request, AsyncHandler<PutSchemaRequest,PutSchemaResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Creates or updates the policy schema in the specified policy store. The schema is used to validate any Cedar policies and policy templates submitted to the policy store. Any changes to the schema validate only policies and templates submitted after the schema change. Existing policies and templates are not re-evaluated against the changed schema. If you later update a policy, then it is evaluated against the new schema at that time.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
putSchemaAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdateIdentitySourceResult> updateIdentitySourceAsync(UpdateIdentitySourceRequest request)
AmazonVerifiedPermissionsAsync
Updates the specified identity source to use a new identity provider (IdP) source, or to change the mapping of identities from the IdP to a different principal entity type.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
updateIdentitySourceAsync
in interface AmazonVerifiedPermissionsAsync
public Future<UpdateIdentitySourceResult> updateIdentitySourceAsync(UpdateIdentitySourceRequest request, AsyncHandler<UpdateIdentitySourceRequest,UpdateIdentitySourceResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Updates the specified identity source to use a new identity provider (IdP) source, or to change the mapping of identities from the IdP to a different principal entity type.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
updateIdentitySourceAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdatePolicyResult> updatePolicyAsync(UpdatePolicyRequest request)
AmazonVerifiedPermissionsAsync
Modifies a Cedar static policy in the specified policy store. You can change only certain elements of the UpdatePolicyDefinition parameter. You can directly update only static policies. To change a template-linked policy, you must update the template instead, using UpdatePolicyTemplate.
If policy validation is enabled in the policy store, then updating a static policy causes Verified Permissions to validate the policy against the schema in the policy store. If the updated static policy doesn't pass validation, the operation fails and the update isn't stored.
When you edit a static policy, You can change only certain elements of a static policy:
The action referenced by the policy.
A condition clause, such as when and unless.
You can't change these elements of a static policy:
Changing a policy from a static policy to a template-linked policy.
Changing the effect of a static policy from permit or forbid.
The principal referenced by a static policy.
The resource referenced by a static policy.
To update a template-linked policy, you must update the template instead.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
updatePolicyAsync
in interface AmazonVerifiedPermissionsAsync
public Future<UpdatePolicyResult> updatePolicyAsync(UpdatePolicyRequest request, AsyncHandler<UpdatePolicyRequest,UpdatePolicyResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Modifies a Cedar static policy in the specified policy store. You can change only certain elements of the UpdatePolicyDefinition parameter. You can directly update only static policies. To change a template-linked policy, you must update the template instead, using UpdatePolicyTemplate.
If policy validation is enabled in the policy store, then updating a static policy causes Verified Permissions to validate the policy against the schema in the policy store. If the updated static policy doesn't pass validation, the operation fails and the update isn't stored.
When you edit a static policy, You can change only certain elements of a static policy:
The action referenced by the policy.
A condition clause, such as when and unless.
You can't change these elements of a static policy:
Changing a policy from a static policy to a template-linked policy.
Changing the effect of a static policy from permit or forbid.
The principal referenced by a static policy.
The resource referenced by a static policy.
To update a template-linked policy, you must update the template instead.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
updatePolicyAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdatePolicyStoreResult> updatePolicyStoreAsync(UpdatePolicyStoreRequest request)
AmazonVerifiedPermissionsAsync
Modifies the validation setting for a policy store.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
updatePolicyStoreAsync
in interface AmazonVerifiedPermissionsAsync
public Future<UpdatePolicyStoreResult> updatePolicyStoreAsync(UpdatePolicyStoreRequest request, AsyncHandler<UpdatePolicyStoreRequest,UpdatePolicyStoreResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Modifies the validation setting for a policy store.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
updatePolicyStoreAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<UpdatePolicyTemplateResult> updatePolicyTemplateAsync(UpdatePolicyTemplateRequest request)
AmazonVerifiedPermissionsAsync
Updates the specified policy template. You can update only the description and the some elements of the policyBody.
Changes you make to the policy template content are immediately reflected in authorization decisions that involve all template-linked policies instantiated from this template.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
updatePolicyTemplateAsync
in interface AmazonVerifiedPermissionsAsync
public Future<UpdatePolicyTemplateResult> updatePolicyTemplateAsync(UpdatePolicyTemplateRequest request, AsyncHandler<UpdatePolicyTemplateRequest,UpdatePolicyTemplateResult> asyncHandler)
AmazonVerifiedPermissionsAsync
Updates the specified policy template. You can update only the description and the some elements of the policyBody.
Changes you make to the policy template content are immediately reflected in authorization decisions that involve all template-linked policies instantiated from this template.
Verified Permissions is eventually consistent . It can take a few seconds for a new or changed element to be propagate through the service and be visible in the results of other Verified Permissions operations.
updatePolicyTemplateAsync
in interface AmazonVerifiedPermissionsAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an
implementation of the callback methods in this interface to receive notification of successful or
unsuccessful completion of the operation.