Smaws_Client_VerifiedPermissions.Typestype nonrec throttling_exception = {quota_code : Smaws_Lib.Smithy_api.Types.string_ option;The quota code recognized by the Amazon Web Services Service Quotas service.
*)service_code : Smaws_Lib.Smithy_api.Types.string_ option;The code for the Amazon Web Services service that owns the quota.
*)message : Smaws_Lib.Smithy_api.Types.string_;}The request failed because it exceeded a throttling quota.
type nonrec resource_not_found_exception = {resource_type : resource_type;The resource type of the resource referenced in the failed request.
*)resource_id : Smaws_Lib.Smithy_api.Types.string_;The unique ID of the resource referenced in the failed request.
*)message : Smaws_Lib.Smithy_api.Types.string_;}The request failed because it references a resource that doesn't exist.
The request failed because of an internal error. Try your request again later
You don't have sufficient access to perform this action.
type nonrec tag_key_list = tag_key listtype nonrec untag_resource_input = {tag_keys : tag_key_list;The list of tag keys to remove from the resource.
*)resource_arn : amazon_resource_name;The ARN of the resource from which you are removing tags.
*)}No more tags be added because the limit (50) has been reached. To add new tags, use UntagResource to remove existing tags.
type nonrec tag_resource_input = {resource_arn : amazon_resource_name;The ARN of the resource that you're adding tags to.
*)}type nonrec validation_settings = {mode : validation_mode;The validation mode currently configured for this policy store. The valid values are:
If Mode=STRICT and the policy store doesn't contain a schema, Verified Permissions rejects all static policies and policy templates because there is no schema to validate against.
To submit a static policy or policy template without a schema, you must turn off validation.
*)}A structure that contains Cedar policy validation settings for the policy store. The validation mode determines which validation failures that Cedar considers serious enough to block acceptance of a new or edited static policy or policy template.
This data type is used as a request parameter in the CreatePolicyStore and UpdatePolicyStore operations.
type nonrec validation_exception_field = {message : Smaws_Lib.Smithy_api.Types.string_;Describes the policy validation error.
*)path : Smaws_Lib.Smithy_api.Types.string_;The path to the specific element that Verified Permissions found to be not valid.
*)}Details about a field that failed policy validation.
type nonrec validation_exception_field_list = validation_exception_field listtype nonrec validation_exception = {field_list : validation_exception_field_list option;The list of fields that aren't valid.
*)message : Smaws_Lib.Smithy_api.Types.string_;}The request failed because one or more input parameters don't satisfy their constraint requirements. The output is provided as a list of fields and a reason for each field that isn't valid.
The possible reasons include the following:
UnrecognizedEntityType
The policy includes an entity type that isn't found in the schema.
UnrecognizedActionId
The policy includes an action id that isn't found in the schema.
InvalidActionApplication
The policy includes an action that, according to the schema, doesn't support the specified principal and resource.
UnexpectedType
The policy included an operand that isn't a valid type for the specified operation.
IncompatibleTypes
The types of elements included in a set, or the types of expressions used in an if...then...else clause aren't compatible in this context.
MissingAttribute
The policy attempts to access a record or entity attribute that isn't specified in the schema. Test for the existence of the attribute first before attempting to access its value. For more information, see the has (presence of attribute test) operator in the Cedar Policy Language Guide.
UnsafeOptionalAttributeAccess
The policy attempts to access a record or entity attribute that is optional and isn't guaranteed to be present. Test for the existence of the attribute first before attempting to access its value. For more information, see the has (presence of attribute test) operator in the Cedar Policy Language Guide.
ImpossiblePolicy
Cedar has determined that a policy condition always evaluates to false. If the policy is always false, it can never apply to any query, and so it can never affect an authorization decision.
WrongNumberArguments
The policy references an extension type with the wrong number of arguments.
FunctionArgumentValidationError
Cedar couldn't parse the argument passed to an extension type. For example, a string that is to be parsed as an IPv4 address can contain only digits and the period character.
type nonrec update_static_policy_definition = {statement : policy_statement;Specifies the Cedar policy language text to be added to or replaced on the static policy.
You can change only the following elements from the original content:
action referenced by the policy.when or unless clauses.You can't change the following elements:
StaticPolicy to TemplateLinkedPolicy.permit or forbid) of the policy.principal referenced by the policy.resource referenced by the policy.description : static_policy_description option;Specifies the description to be added to or replaced on the static policy.
*)}Contains information about an update to a static policy.
type nonrec update_policy_template_output = {last_updated_date : timestamp_format;The date and time that the policy template was most recently updated.
*)created_date : timestamp_format;The date and time that the policy template was originally created.
*)policy_template_id : policy_template_id;The ID of the updated policy template.
*)policy_store_id : policy_store_id;The ID of the policy store that contains the updated policy template.
*)}type nonrec update_policy_template_input = {name : policy_template_name option;Specifies a name for the policy template that is unique among all policy templates within the policy store. You can use the name in place of the policy template ID in API operations that reference the policy template. The name must be prefixed with name/.
If you don't include the name in an update request, the existing name is unchanged. To remove a name, set it to an empty string ("").
If you specify a name that is already associated with another policy template in the policy store, you receive a ConflictException error.
statement : policy_statement;Specifies new statement content written in Cedar policy language to replace the current body of the policy template.
You can change only the following elements of the policy body:
action referenced by the policy template.when or unless clauses.You can't change the following elements:
permit or forbid) of the policy template.principal referenced by the policy template.resource referenced by the policy template.description : policy_template_description option;Specifies a new description to apply to the policy template.
*)policy_template_id : policy_template_id;Specifies the ID of the policy template that you want to update.
You can use the policy template name in place of the policy template ID. When using a name, prefix it with name/. For example:
PTEXAMPLEabcdefg111111name/example-policy-templatepolicy_store_id : policy_store_id;Specifies the ID of the policy store that contains the policy template that you want to update.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec resource_conflict = {resource_type : resource_type;The type of the resource involved in a conflict.
*)resource_id : Smaws_Lib.Smithy_api.Types.string_;The unique identifier of the resource involved in a conflict.
*)}Contains information about a resource conflict.
type nonrec resource_conflict_list = resource_conflict listtype nonrec conflict_exception = {resources : resource_conflict_list;The list of resources referenced with this failed request.
*)message : Smaws_Lib.Smithy_api.Types.string_;}The request failed because another request to modify a resource occurred at the same time.
type nonrec update_policy_store_output = {last_updated_date : timestamp_format;The date and time that the policy store was most recently updated.
*)created_date : timestamp_format;The date and time that the policy store was originally created.
*)arn : resource_arn;policy_store_id : policy_store_id;The ID of the updated policy store.
*)}type nonrec update_policy_store_input = {description : policy_store_description option;Descriptive text that you can provide to help with identification of the current policy store.
*)deletion_protection : deletion_protection option;Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted.
When you call UpdatePolicyStore, this parameter is unchanged unless explicitly included in the call.
validation_settings : validation_settings;A structure that defines the validation settings that want to enable for the policy store.
*)policy_store_id : policy_store_id;Specifies the ID of the policy store that you want to update
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec entity_identifier = {entity_id : entity_id;The identifier of an entity.
"entityId":"{i identifier}"*)entity_type : entity_type;The type of an entity.
Example:
"entityType":"{i typeName}"*)}Contains the identifier of an entity, including its ID and type.
This data type is used as a request parameter for IsAuthorized operation, and as a response parameter for the CreatePolicy, GetPolicy, and UpdatePolicy operations.
Example:
\{"entityId":"{i string}","entityType":"{i string}"\}type nonrec action_identifier = {action_id : action_id;The ID of an action.
*)action_type : action_type;The type of an action.
*)}Contains information about an action for a request for which an authorization decision is made.
This data type is used as a request parameter to the IsAuthorized, BatchIsAuthorized, and IsAuthorizedWithToken operations.
Example: { "actionId": "<action name>", "actionType": "Action" }
type nonrec action_identifier_list = action_identifier listtype nonrec update_policy_output = {effect_ : policy_effect option;The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".
last_updated_date : timestamp_format;The date and time that the policy was most recently updated.
*)created_date : timestamp_format;The date and time that the policy was originally created.
*)actions : action_identifier_list option;The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}.
resource : entity_identifier option;The resource specified in the policy's scope. This element isn't included in the response when Resource isn't present in the policy content.
principal : entity_identifier option;The principal specified in the policy's scope. This element isn't included in the response when Principal isn't present in the policy content.
policy_type : policy_type;The type of the policy that was updated.
*)policy_id : policy_id;The ID of the policy that was updated.
*)policy_store_id : policy_store_id;The ID of the policy store that contains the policy that was updated.
*)}type nonrec update_policy_definition = | Static of update_static_policy_definitionContains details about the updates to be applied to a static policy.
*)Contains information about updates to be applied to a policy.
This data type is used as a request parameter in the UpdatePolicy operation.
type nonrec update_policy_input = {name : policy_name option;Specifies a name for the policy that is unique among all policies within the policy store. You can use the name in place of the policy ID in API operations that reference the policy. The name must be prefixed with name/.
If you don't include the name in an update request, the existing name is unchanged. To remove a name, set it to an empty string ("").
If you specify a name that is already associated with another policy in the policy store, you receive a ConflictException error.
definition : update_policy_definition option;Specifies the updated policy content that you want to replace on the specified policy. The content must be valid Cedar policy language text.
If you don't specify this parameter, the existing policy definition remains unchanged.
You can change only the following elements from the policy definition:
action referenced by the policy.when or unless clauses.You can't change the following elements:
static to templateLinked.permit or forbid.principal referenced by the policy.resource referenced by the policy.policy_id : policy_id;Specifies the ID of the policy that you want to update. To find this value, you can use ListPolicies.
You can use the policy name in place of the policy ID. When using a name, prefix it with name/. For example:
SPEXAMPLEabcdefg111111name/example-policypolicy_store_id : policy_store_id;Specifies the ID of the policy store that contains the policy that you want to update.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec service_quota_exceeded_exception = {quota_code : Smaws_Lib.Smithy_api.Types.string_ option;The quota code recognized by the Amazon Web Services Service Quotas service.
*)service_code : Smaws_Lib.Smithy_api.Types.string_ option;The code for the Amazon Web Services service that owns the quota.
*)resource_type : resource_type;The resource type of the resource referenced in the failed request.
*)resource_id : Smaws_Lib.Smithy_api.Types.string_ option;The unique ID of the resource referenced in the failed request.
*)message : Smaws_Lib.Smithy_api.Types.string_;}The request failed because it would cause a service quota to be exceeded.
type nonrec audiences = audience listtype nonrec update_open_id_connect_access_token_configuration = {audiences : audiences option;The access token aud claim values that you want to accept in your policy store. For example, https://myapp.example.com, https://myapp2.example.com.
principal_id_claim : claim option;The claim that determines the principal in OIDC access tokens. For example, sub.
}The configuration of an OpenID Connect (OIDC) identity source for handling access token claims. Contains the claim that you want to identify as the principal in an authorization request, and the values of the aud claim, or audiences, that you want to accept.
This data type is part of a UpdateOpenIdConnectTokenSelection structure, which is a parameter to UpdateIdentitySource.
type nonrec client_ids = client_id listtype nonrec update_open_id_connect_identity_token_configuration = {client_ids : client_ids option;The ID token audience, or client ID, claim values that you want to accept in your policy store from an OIDC identity provider. For example, 1example23456789, 2example10111213.
principal_id_claim : claim option;The claim that determines the principal in OIDC access tokens. For example, sub.
}The configuration of an OpenID Connect (OIDC) identity source for handling identity (ID) token claims. Contains the claim that you want to identify as the principal in an authorization request, and the values of the aud claim, or audiences, that you want to accept.
This data type is part of a UpdateOpenIdConnectTokenSelection structure, which is a parameter to UpdateIdentitySource.
type nonrec update_open_id_connect_token_selection = | IdentityTokenOnly of update_open_id_connect_identity_token_configurationThe OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example 1example23456789, and the claim that you want to map to the principal, for example sub.
| AccessTokenOnly of update_open_id_connect_access_token_configurationThe OIDC configuration for processing access tokens. Contains allowed audience claims, for example https://auth.example.com, and the claim that you want to map to the principal, for example sub.
The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
This data type is part of a UpdateOpenIdConnectConfiguration structure, which is a parameter to UpdateIdentitySource.
type nonrec update_open_id_connect_group_configuration = {group_entity_type : group_entity_type;The policy store entity type that you want to map your users' group claim to. For example, MyCorp::UserGroup. A group entity type is an entity that can have a user entity type as a member.
group_claim : claim;The token claim that you want Verified Permissions to interpret as group membership. For example, groups.
}The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
This data type is part of a UpdateOpenIdConnectConfiguration structure, which is a parameter to UpdateIdentitySource.
type nonrec update_open_id_connect_configuration = {token_selection : update_open_id_connect_token_selection;The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
*)group_configuration : update_open_id_connect_group_configuration option;The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
entity_id_prefix : entity_id_prefix option;A descriptive string that you want to prefix to user entities from your OIDC identity provider. For example, if you set an entityIdPrefix of MyOIDCProvider, you can reference principals in your policies in the format MyCorp::User::MyOIDCProvider|Carlos.
issuer : issuer;The issuer URL of an OIDC identity provider. This URL must have an OIDC discovery endpoint at the path .well-known/openid-configuration.
}Contains configuration details of an OpenID Connect (OIDC) identity provider, or identity source, that Verified Permissions can use to generate entities from authenticated identities. It specifies the issuer URL, token type that you want to use, and policy store entity details.
This data type is part of a UpdateConfiguration structure, which is a parameter to UpdateIdentitySource.
type nonrec update_identity_source_output = {policy_store_id : policy_store_id;The ID of the policy store that contains the updated identity source.
*)last_updated_date : timestamp_format;The date and time that the identity source was most recently updated.
*)identity_source_id : identity_source_id;The ID of the updated identity source.
*)created_date : timestamp_format;The date and time that the updated identity source was originally created.
*)}type nonrec update_cognito_group_configuration = {group_entity_type : group_entity_type;The name of the schema entity type that's mapped to the user pool group. Defaults to AWS::CognitoGroup.
}The user group entities from an Amazon Cognito user pool identity source.
type nonrec update_cognito_user_pool_configuration = {group_configuration : update_cognito_group_configuration option;The configuration of the user groups from an Amazon Cognito user pool identity source.
*)client_ids : client_ids option;The client ID of an app client that is configured for the specified Amazon Cognito user pool.
*)user_pool_arn : user_pool_arn;The Amazon Resource Name (ARN) of the Amazon Cognito user pool associated with this identity source.
*)}Contains configuration details of a Amazon Cognito user pool for use with an identity source.
type nonrec update_configuration = | OpenIdConnectConfiguration of update_open_id_connect_configurationContains configuration details of an OpenID Connect (OIDC) identity provider, or identity source, that Verified Permissions can use to generate entities from authenticated identities. It specifies the issuer URL, token type that you want to use, and policy store entity details.
*)| CognitoUserPoolConfiguration of update_cognito_user_pool_configurationContains configuration details of a Amazon Cognito user pool.
*)Contains an update to replace the configuration in an existing identity source.
type nonrec update_identity_source_input = {principal_entity_type : principal_entity_type option;Specifies the data type of principals generated for identities authenticated by the identity source.
*)update_configuration : update_configuration;Specifies the details required to communicate with the identity provider (IdP) associated with this identity source.
*)identity_source_id : identity_source_id;Specifies the ID of the identity source that you want to update.
*)policy_store_id : policy_store_id;Specifies the ID of the policy store that contains the identity source that you want to update.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec template_linked_policy_definition_item = {resource : entity_identifier option;The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the ?resource placeholder in the policy template when it evaluates an authorization request.
principal : entity_identifier option;The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the ?principal placeholder in the policy template when it evaluates an authorization request.
policy_template_id : policy_template_id;The unique identifier of the policy template used to create this policy.
*)}Contains information about a policy created by instantiating a policy template.
type nonrec template_linked_policy_definition_detail = {resource : entity_identifier option;The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the ?resource placeholder in the policy template when it evaluates an authorization request.
principal : entity_identifier option;The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the ?principal placeholder in the policy template when it evaluates an authorization request.
policy_template_id : policy_template_id;The unique identifier of the policy template used to create this policy.
*)}Contains information about a policy that was created by instantiating a policy template.
type nonrec template_linked_policy_definition = {resource : entity_identifier option;The resource associated with this template-linked policy. Verified Permissions substitutes this resource for the ?resource placeholder in the policy template when it evaluates an authorization request.
principal : entity_identifier option;The principal associated with this template-linked policy. Verified Permissions substitutes this principal for the ?principal placeholder in the policy template when it evaluates an authorization request.
policy_template_id : policy_template_id;The unique identifier of the policy template used to create this policy.
*)}Contains information about a policy created by instantiating a policy template.
type nonrec static_policy_definition_item = {description : static_policy_description option;A description of the static policy.
*)}A structure that contains details about a static policy. It includes the description and policy statement.
This data type is used within a PolicyDefinition structure as part of a request parameter for the CreatePolicy operation.
type nonrec static_policy_definition_detail = {statement : policy_statement;The content of the static policy written in the Cedar policy language.
*)description : static_policy_description option;A description of the static policy.
*)}A structure that contains details about a static policy. It includes the description and policy body.
This data type is used within a PolicyDefinition structure as part of a request parameter for the CreatePolicy operation.
type nonrec static_policy_definition = {statement : policy_statement;The policy content of the static policy, written in the Cedar policy language.
*)description : static_policy_description option;The description of the static policy.
*)}Contains information about a static policy.
This data type is used as a field that is part of the PolicyDefinitionDetail type.
type nonrec long_attribute = Smaws_Lib.CoreTypes.Int64.ttype attribute_value = | Duration of duration| Datetime of datetime_attribute| Decimal of decimal| Ipaddr of ip_addr| Record of record_attribute| Set of set_attribute| String of string_attribute| Long of long_attribute| EntityIdentifier of entity_identifierAn attribute value of type EntityIdentifier.
Example: {"entityIdentifier": { "entityId": "alice", "entityType": "User"} }
| Boolean of boolean_attributeThe value of an attribute.
Contains information about the runtime context for a request for which an authorization decision is made.
This data type is used as a member of the ContextDefinition structure which is used as a request parameter for the IsAuthorized, BatchIsAuthorized, and IsAuthorizedWithToken operations.
and record_attribute =
(Smaws_Lib.Smithy_api.Types.string_ * attribute_value) listand set_attribute = attribute_value listtype nonrec schema_definition = | CedarJson of schema_jsonA JSON string representation of the schema supported by applications that use this policy store. To delete the schema, run PutSchema with {} for this parameter. For more information, see Policy store schema in the Amazon Verified Permissions User Guide.
Contains a list of principal types, resource types, and actions that can be specified in policies stored in the same policy store. If the validation mode for the policy store is set to STRICT, then policies that can't be validated by this schema are rejected by Verified Permissions and can't be stored in the policy store.
type nonrec namespace_list = namespace listtype nonrec put_schema_output = {last_updated_date : timestamp_format;The date and time that the schema was last updated.
*)created_date : timestamp_format;The date and time that the schema was originally created.
*)namespaces : namespace_list;Identifies the namespaces of the entities referenced by this schema.
*)policy_store_id : policy_store_id;The unique ID of the policy store that contains the schema.
*)}type nonrec put_schema_input = {definition : schema_definition;Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.
*)policy_store_id : policy_store_id;Specifies the ID of the policy store in which to place the schema.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec policy_template_item = {name : policy_template_name option;The name of the policy template, if one was assigned when the policy template was created or last updated.
*)last_updated_date : timestamp_format;The date and time that the policy template was most recently updated.
*)created_date : timestamp_format;The date and time that the policy template was created.
*)description : policy_template_description option;The description attached to the policy template.
*)policy_template_id : policy_template_id;The unique identifier of the policy template.
*)policy_store_id : policy_store_id;The unique identifier of the policy store that contains the template.
*)}Contains details about a policy template
This data type is used as a response parameter for the ListPolicyTemplates operation.
type nonrec policy_templates_list = policy_template_item listtype nonrec policy_template = Smaws_Lib.CoreTypes.Resource.ttype nonrec policy_store_item = {description : policy_store_description option;Descriptive text that you can provide to help with identification of the current policy store.
*)last_updated_date : timestamp_format option;The date and time the policy store was most recently updated.
*)created_date : timestamp_format;The date and time the policy was created.
*)arn : resource_arn;The Amazon Resource Name (ARN) of the policy store.
*)policy_store_id : policy_store_id;The unique identifier of the policy store.
*)}Contains information about a policy store.
This data type is used as a response parameter for the ListPolicyStores operation.
type nonrec policy_store_list = policy_store_item listtype nonrec policy_store_alias_item = {state : alias_state;The state of the policy store alias. Policy Store Aliases in the Active state can be used normally. When a policy store alias is deleted, it enters the PendingDeletion state. Policy Store Aliases in the PendingDeletion state cannot be used, and creating a policy store alias with the same alias name will fail.
*)created_at : timestamp_format;The date and time the policy store alias was created.
*)alias_arn : resource_arn;The Amazon Resource Name (ARN) of the policy store alias.
*)policy_store_id : policy_store_id;The ID of the policy store associated with the alias.
*)alias_name : alias;The name of the policy store alias.
*)}Contains information about a policy store alias.
This data type is used as a response parameter for the ListPolicyStoreAliases operation.
type nonrec policy_store_alias_list = policy_store_alias_item listtype nonrec policy_store_alias_filter = {policy_store_id : policy_store_id option;The ID of the policy store to filter by. Only policy store aliases associated with this policy store are returned.
*)}Contains filters for the ListPolicyStoreAliases operation.
type nonrec policy_store_alias = Smaws_Lib.CoreTypes.Resource.ttype nonrec policy_store = Smaws_Lib.CoreTypes.Resource.ttype nonrec policy_definition_item = | TemplateLinked of template_linked_policy_definition_itemInformation about a template-linked policy that was created by instantiating a policy template.
*)| Static of static_policy_definition_itemInformation about a static policy that wasn't created with a policy template.
*)A structure that describes a PolicyDefinintion. It will always have either an StaticPolicy or a TemplateLinkedPolicy element.
This data type is used as a response parameter for the CreatePolicy and ListPolicies operations.
type nonrec policy_item = {name : policy_name option;The name of the policy, if one was assigned when the policy was created or last updated.
*)effect_ : policy_effect option;The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".
last_updated_date : timestamp_format;The date and time the policy was most recently updated.
*)created_date : timestamp_format;The date and time the policy was created.
*)definition : policy_definition_item;The policy definition of an item in the list of policies returned.
*)actions : action_identifier_list option;The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}.
resource : entity_identifier option;The resource associated with the policy.
*)principal : entity_identifier option;The principal associated with the policy.
*)policy_type : policy_type;The type of the policy. This is one of the following values:
STATICTEMPLATE_LINKEDpolicy_id : policy_id;The identifier of the policy you want information about.
*)policy_store_id : policy_store_id;The identifier of the policy store where the policy you want information about is stored.
*)}Contains information about a policy.
This data type is used as a response parameter for the ListPolicies operation.
type nonrec policy_list = policy_item listtype nonrec entity_reference = | Identifier of entity_identifierThe identifier of the entity. It can consist of either an EntityType and EntityId, a principal, or a resource.
*)| Unspecified of Smaws_Lib.Smithy_api.Types.boolean_Used to indicate that a principal or resource is not specified. This can be used to search for policies that are not associated with a specific principal or resource.
*)Contains information about a principal or resource that can be referenced in a Cedar policy.
This data type is used as part of the PolicyFilter structure that is used as a request parameter for the ListPolicies operation..
type nonrec policy_filter = {policy_template_id : policy_template_id option;Filters the output to only template-linked policies that were instantiated from the specified policy template.
*)policy_type : policy_type option;Filters the output to only policies of the specified type.
*)resource : entity_reference option;Filters the output to only policies that reference the specified resource.
*)principal : entity_reference option;Filters the output to only policies that reference the specified principal.
*)}Contains information about a filter to refine policies returned in a query.
This data type is used as a response parameter for the ListPolicies operation.
type nonrec policy_definition_detail = | TemplateLinked of template_linked_policy_definition_detailInformation about a template-linked policy that was created by instantiating a policy template.
*)| Static of static_policy_definition_detailInformation about a static policy that wasn't created with a policy template.
*)A structure that describes a policy definition. It must always have either an static or a templateLinked element.
This data type is used as a response parameter for the GetPolicy operation.
type nonrec policy_definition = | TemplateLinked of template_linked_policy_definitionA structure that describes a policy that was instantiated from a template. The template can specify placeholders for principal and resource. When you use CreatePolicy to create a policy from a template, you specify the exact principal and resource to use for the instantiated policy.
| Static of static_policy_definitionA structure that describes a static policy. An static policy doesn't use a template or allow placeholders for entities.
*)A structure that contains the details for a Cedar policy definition. It includes the policy type, a description, and a policy body. This is a top level data type used to create a policy.
This data type is used as a request parameter for the CreatePolicy operation. This structure must always have either an static or a templateLinked element.
type nonrec policy = Smaws_Lib.CoreTypes.Resource.ttype nonrec parent_list = entity_identifier listtype nonrec open_id_connect_access_token_configuration_item = {audiences : audiences option;The access token aud claim values that you want to accept in your policy store. For example, https://myapp.example.com, https://myapp2.example.com.
principal_id_claim : claim option;The claim that determines the principal in OIDC access tokens. For example, sub.
}The configuration of an OpenID Connect (OIDC) identity source for handling access token claims. Contains the claim that you want to identify as the principal in an authorization request, and the values of the aud claim, or audiences, that you want to accept.
This data type is part of a OpenIdConnectTokenSelectionItem structure, which is a parameter of ListIdentitySources.
type nonrec open_id_connect_identity_token_configuration_item = {client_ids : client_ids option;The ID token audience, or client ID, claim values that you want to accept in your policy store from an OIDC identity provider. For example, 1example23456789, 2example10111213.
principal_id_claim : claim option;The claim that determines the principal in OIDC access tokens. For example, sub.
}The configuration of an OpenID Connect (OIDC) identity source for handling identity (ID) token claims. Contains the claim that you want to identify as the principal in an authorization request, and the values of the aud claim, or audiences, that you want to accept.
This data type is part of a OpenIdConnectTokenSelectionItem structure, which is a parameter of ListIdentitySources.
type nonrec open_id_connect_token_selection_item = | IdentityTokenOnly of open_id_connect_identity_token_configuration_itemThe OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example 1example23456789, and the claim that you want to map to the principal, for example sub.
| AccessTokenOnly of open_id_connect_access_token_configuration_itemThe OIDC configuration for processing access tokens. Contains allowed audience claims, for example https://auth.example.com, and the claim that you want to map to the principal, for example sub.
The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
This data type is part of a OpenIdConnectConfigurationItem structure, which is a parameter of ListIdentitySources.
type nonrec open_id_connect_access_token_configuration_detail = {audiences : audiences option;The access token aud claim values that you want to accept in your policy store. For example, https://myapp.example.com, https://myapp2.example.com.
principal_id_claim : claim option;The claim that determines the principal in OIDC access tokens. For example, sub.
}The configuration of an OpenID Connect (OIDC) identity source for handling access token claims. Contains the claim that you want to identify as the principal in an authorization request, and the values of the aud claim, or audiences, that you want to accept.
This data type is part of a OpenIdConnectTokenSelectionDetail structure, which is a parameter of GetIdentitySource.
type nonrec open_id_connect_identity_token_configuration_detail = {client_ids : client_ids option;The ID token audience, or client ID, claim values that you want to accept in your policy store from an OIDC identity provider. For example, 1example23456789, 2example10111213.
principal_id_claim : claim option;The claim that determines the principal in OIDC access tokens. For example, sub.
}The configuration of an OpenID Connect (OIDC) identity source for handling identity (ID) token claims. Contains the claim that you want to identify as the principal in an authorization request, and the values of the aud claim, or audiences, that you want to accept.
This data type is part of a OpenIdConnectTokenSelectionDetail structure, which is a parameter of GetIdentitySource.
type nonrec open_id_connect_token_selection_detail = | IdentityTokenOnly of open_id_connect_identity_token_configuration_detailThe OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example 1example23456789, and the claim that you want to map to the principal, for example sub.
| AccessTokenOnly of open_id_connect_access_token_configuration_detailThe OIDC configuration for processing access tokens. Contains allowed audience claims, for example https://auth.example.com, and the claim that you want to map to the principal, for example sub.
The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
This data type is part of a OpenIdConnectConfigurationDetail structure, which is a parameter of GetIdentitySource.
type nonrec open_id_connect_access_token_configuration = {audiences : audiences option;The access token aud claim values that you want to accept in your policy store. For example, https://myapp.example.com, https://myapp2.example.com.
principal_id_claim : claim option;The claim that determines the principal in OIDC access tokens. For example, sub.
}The configuration of an OpenID Connect (OIDC) identity source for handling access token claims. Contains the claim that you want to identify as the principal in an authorization request, and the values of the aud claim, or audiences, that you want to accept.
This data type is part of a OpenIdConnectTokenSelection structure, which is a parameter of CreateIdentitySource.
type nonrec open_id_connect_identity_token_configuration = {client_ids : client_ids option;The ID token audience, or client ID, claim values that you want to accept in your policy store from an OIDC identity provider. For example, 1example23456789, 2example10111213.
principal_id_claim : claim option;The claim that determines the principal in OIDC access tokens. For example, sub.
}The configuration of an OpenID Connect (OIDC) identity source for handling identity (ID) token claims. Contains the claim that you want to identify as the principal in an authorization request, and the values of the aud claim, or audiences, that you want to accept.
This data type is part of a OpenIdConnectTokenSelection structure, which is a parameter of CreateIdentitySource.
type nonrec open_id_connect_token_selection = | IdentityTokenOnly of open_id_connect_identity_token_configurationThe OIDC configuration for processing identity (ID) tokens. Contains allowed client ID claims, for example 1example23456789, and the claim that you want to map to the principal, for example sub.
| AccessTokenOnly of open_id_connect_access_token_configurationThe OIDC configuration for processing access tokens. Contains allowed audience claims, for example https://auth.example.com, and the claim that you want to map to the principal, for example sub.
The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
This data type is part of a OpenIdConnectConfiguration structure, which is a parameter of CreateIdentitySource.
type nonrec open_id_connect_group_configuration_item = {group_entity_type : group_entity_type;The policy store entity type that you want to map your users' group claim to. For example, MyCorp::UserGroup. A group entity type is an entity that can have a user entity type as a member.
group_claim : claim;The token claim that you want Verified Permissions to interpret as group membership. For example, groups.
}The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
This data type is part of a OpenIdConnectConfigurationItem structure, which is a parameter of ListIdentitySourcea.
type nonrec open_id_connect_group_configuration_detail = {group_entity_type : group_entity_type;The policy store entity type that you want to map your users' group claim to. For example, MyCorp::UserGroup. A group entity type is an entity that can have a user entity type as a member.
group_claim : claim;The token claim that you want Verified Permissions to interpret as group membership. For example, groups.
}The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
This data type is part of a OpenIdConnectConfigurationDetail structure, which is a parameter of GetIdentitySource.
type nonrec open_id_connect_group_configuration = {group_entity_type : group_entity_type;The policy store entity type that you want to map your users' group claim to. For example, MyCorp::UserGroup. A group entity type is an entity that can have a user entity type as a member.
group_claim : claim;The token claim that you want Verified Permissions to interpret as group membership. For example, groups.
}The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
This data type is part of a OpenIdConnectConfiguration structure, which is a parameter of CreateIdentitySource.
type nonrec open_id_connect_configuration_item = {token_selection : open_id_connect_token_selection_item;The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
*)group_configuration : open_id_connect_group_configuration_item option;The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
entity_id_prefix : entity_id_prefix option;A descriptive string that you want to prefix to user entities from your OIDC identity provider. For example, if you set an entityIdPrefix of MyOIDCProvider, you can reference principals in your policies in the format MyCorp::User::MyOIDCProvider|Carlos.
issuer : issuer;The issuer URL of an OIDC identity provider. This URL must have an OIDC discovery endpoint at the path .well-known/openid-configuration.
}Contains configuration details of an OpenID Connect (OIDC) identity provider, or identity source, that Verified Permissions can use to generate entities from authenticated identities. It specifies the issuer URL, token type that you want to use, and policy store entity details.
This data type is part of a ConfigurationItem structure, which is a parameter to ListIdentitySources.
type nonrec open_id_connect_configuration_detail = {token_selection : open_id_connect_token_selection_detail;The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
*)group_configuration : open_id_connect_group_configuration_detail option;The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
entity_id_prefix : entity_id_prefix option;A descriptive string that you want to prefix to user entities from your OIDC identity provider. For example, if you set an entityIdPrefix of MyOIDCProvider, you can reference principals in your policies in the format MyCorp::User::MyOIDCProvider|Carlos.
issuer : issuer;The issuer URL of an OIDC identity provider. This URL must have an OIDC discovery endpoint at the path .well-known/openid-configuration.
}Contains configuration details of an OpenID Connect (OIDC) identity provider, or identity source, that Verified Permissions can use to generate entities from authenticated identities. It specifies the issuer URL, token type that you want to use, and policy store entity details.
This data type is part of a ConfigurationDetail structure, which is a parameter to GetIdentitySource.
type nonrec open_id_connect_configuration = {token_selection : open_id_connect_token_selection;The token type that you want to process from your OIDC identity provider. Your policy store can process either identity (ID) or access tokens from a given OIDC identity source.
*)group_configuration : open_id_connect_group_configuration option;The claim in OIDC identity provider tokens that indicates a user's group membership, and the entity type that you want to map it to. For example, this object can map the contents of a groups claim to MyCorp::UserGroup.
entity_id_prefix : entity_id_prefix option;A descriptive string that you want to prefix to user entities from your OIDC identity provider. For example, if you set an entityIdPrefix of MyOIDCProvider, you can reference principals in your policies in the format MyCorp::User::MyOIDCProvider|Carlos.
issuer : issuer;The issuer URL of an OIDC identity provider. This URL must have an OIDC discovery endpoint at the path .well-known/openid-configuration.
}Contains configuration details of an OpenID Connect (OIDC) identity provider, or identity source, that Verified Permissions can use to generate entities from authenticated identities. It specifies the issuer URL, token type that you want to use, and policy store entity details.
This data type is part of a Configuration structure, which is a parameter to CreateIdentitySource.
type nonrec list_policy_templates_output = {policy_templates : policy_templates_list;The list of the policy templates in the specified policy store.
*)next_token : next_token option;If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.
}type nonrec list_policy_templates_input = {max_results : max_results option;Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next set of results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
If you do not specify this parameter, the operation defaults to 10 policy templates per response. You can specify a maximum of 50 policy templates per response.
*)next_token : next_token option;Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.
policy_store_id : policy_store_id;Specifies the ID of the policy store that contains the policy templates you want to list.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec list_policy_stores_output = {policy_stores : policy_store_list;The list of policy stores in the account.
*)next_token : next_token option;If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.
}type nonrec list_policy_stores_input = {max_results : max_results option;Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next set of results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
If you do not specify this parameter, the operation defaults to 10 policy stores per response. You can specify a maximum of 50 policy stores per response.
*)next_token : next_token option;Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.
}type nonrec list_policy_store_aliases_output = {policy_store_aliases : policy_store_alias_list;The list of policy store aliases in the account.
*)next_token : next_token option;If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.
}type nonrec list_policy_store_aliases_input = {filter : policy_store_alias_filter option;Specifies a filter to narrow the results. You can filter by policyStoreId to list only the policy store aliases associated with a specific policy store.
max_results : max_results option;Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next set of results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
If you do not specify this parameter, the operation defaults to 5 policy store aliases per response. You can specify a maximum of 50 policy store aliases per response.
*)next_token : next_token option;Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.
}type nonrec list_policies_output = {policies : policy_list;Lists all policies that are available in the specified policy store.
*)next_token : next_token option;If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.
}type nonrec list_policies_input = {filter : policy_filter option;Specifies a filter that limits the response to only policies that match the specified criteria. For example, you list only the policies that reference a specified principal.
*)max_results : max_results option;Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next set of results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
If you do not specify this parameter, the operation defaults to 10 policies per response. You can specify a maximum of 50 policies per response.
*)next_token : next_token option;Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.
policy_store_id : policy_store_id;Specifies the ID of the policy store you want to list policies from.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec identity_source_item_details = {open_id_issuer : open_id_issuer option;A string that identifies the type of OIDC service represented by this identity source.
At this time, the only valid value is cognito.
discovery_url : discovery_url option;The well-known URL that points to this user pool's OIDC discovery endpoint. This is a URL string in the following format. This URL replaces the placeholders for both the Amazon Web Services Region and the user pool identifier with those appropriate for this user pool.
https://cognito-idp.{i <region>}.amazonaws.com/{i <user-pool-id>}/.well-known/openid-configuration*)user_pool_arn : user_pool_arn option;The Amazon Cognito user pool whose identities are accessible to this Verified Permissions policy store.
*)client_ids : client_ids option;The application client IDs associated with the specified Amazon Cognito user pool that are enabled for this identity source.
*)}A structure that contains configuration of the identity source.
This data type was a response parameter for the ListIdentitySources operation. Replaced by ConfigurationItem.
type nonrec cognito_group_configuration_item = {group_entity_type : group_entity_type option;The name of the schema entity type that's mapped to the user pool group. Defaults to AWS::CognitoGroup.
}The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
This data type is part of an CognitoUserPoolConfigurationItem structure and is a response parameter to ListIdentitySources.
type nonrec cognito_user_pool_configuration_item = {group_configuration : cognito_group_configuration_item option;The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
*)issuer : issuer;The OpenID Connect (OIDC) issuer ID of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "issuer": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_1a2b3c4d5"
client_ids : client_ids;The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "clientIds": ["&ExampleCogClientId;"]
user_pool_arn : user_pool_arn;The Amazon Resource Name (ARN) of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "userPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
}The configuration for an identity source that represents a connection to an Amazon Cognito user pool used as an identity provider for Verified Permissions.
This data type is used as a field that is part of the ConfigurationItem structure that is part of the response to ListIdentitySources.
Example:"CognitoUserPoolConfiguration":{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds": ["a1b2c3d4e5f6g7h8i9j0kalbmc"],"groupConfiguration": {"groupEntityType": "MyCorp::Group"}}
type nonrec configuration_item = | OpenIdConnectConfiguration of open_id_connect_configuration_itemContains configuration details of an OpenID Connect (OIDC) identity provider, or identity source, that Verified Permissions can use to generate entities from authenticated identities. It specifies the issuer URL, token type that you want to use, and policy store entity details.
Example:"configuration":{"openIdConnectConfiguration":{"issuer":"https://auth.example.com","tokenSelection":{"accessTokenOnly":{"audiences":["https://myapp.example.com","https://myapp2.example.com"],"principalIdClaim":"sub"}},"entityIdPrefix":"MyOIDCProvider","groupConfiguration":{"groupClaim":"groups","groupEntityType":"MyCorp::UserGroup"}}}
| CognitoUserPoolConfiguration of cognito_user_pool_configuration_itemContains configuration details of a Amazon Cognito user pool that Verified Permissions can use as a source of authenticated identities as entities. It specifies the Amazon Resource Name (ARN) of a Amazon Cognito user pool, the policy store entity that you want to assign to user groups, and one or more application client IDs.
Example: "configuration":{"cognitoUserPoolConfiguration":{"userPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","clientIds": ["a1b2c3d4e5f6g7h8i9j0kalbmc"],"groupConfiguration": {"groupEntityType": "MyCorp::Group"}}}
Contains configuration information about an identity source.
This data type is a response parameter to the ListIdentitySources operation.
type nonrec identity_source_item = {configuration : configuration_item option;Contains configuration information about an identity source.
*)principal_entity_type : principal_entity_type;The Cedar entity type of the principals returned from the IdP associated with this identity source.
*)policy_store_id : policy_store_id;The identifier of the policy store that contains the identity source.
*)last_updated_date : timestamp_format;The date and time the identity source was most recently updated.
*)identity_source_id : identity_source_id;The unique identifier of the identity source.
*)details : identity_source_item_details option;A structure that contains the details of the associated identity provider (IdP).
*)created_date : timestamp_format;The date and time the identity source was originally created.
*)}A structure that defines an identity source.
This data type is a response parameter to the ListIdentitySources operation.
type nonrec identity_sources = identity_source_item listtype nonrec list_identity_sources_output = {identity_sources : identity_sources;The list of identity sources stored in the specified policy store.
*)next_token : next_token option;If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.
}type nonrec identity_source_filter = {principal_entity_type : principal_entity_type option;The Cedar entity type of the principals returned by the identity provider (IdP) associated with this identity source.
*)}A structure that defines characteristics of an identity source that you can use to filter.
This data type is a request parameter for the ListIdentityStores operation.
type nonrec identity_source_filters = identity_source_filter listtype nonrec list_identity_sources_input = {filters : identity_source_filters option;Specifies characteristics of an identity source that you can use to limit the output to matching identity sources.
*)max_results : list_identity_sources_max_results option;Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next set of results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.
If you do not specify this parameter, the operation defaults to 10 identity sources per response. You can specify a maximum of 50 identity sources per response.
*)next_token : next_token option;Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.
policy_store_id : policy_store_id;Specifies the ID of the policy store that contains the identity sources that you want to list.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec encryption_context =
(encryption_context_key * encryption_context_value) listtype nonrec kms_encryption_state = {encryption_context : encryption_context;User-defined, additional context added to encryption processes.
*)key : kms_key;}A structure that contains the KMS encryption configuration for the policy store. The encryption state shows what customer-managed KMS key is being used to encrypt all resources within the policy store, and any user-defined context key-value pairs added during encryption processes.
This data type is used as a field that is part of the EncryptionState type.
type nonrec kms_encryption_settings = {encryption_context : encryption_context option;User-defined, additional context to be added to encryption processes.
*)key : kms_key;The customer-managed KMS key Amazon Resource Name (ARN), alias or ID to be used for encryption processes.
Users can provide the full KMS key ARN, a KMS key alias, or a KMS key ID, but it will be mapped to the full KMS key ARN after policy store creation, and referenced when encrypting child resources.
*)}A structure that contains the KMS encryption configuration for the policy store. The encryption settings determine what customer-managed KMS key will be used to encrypt all resources within the policy store, and any user-defined context key-value pairs to append during encryption processes.
This data type is used as a field that is part of the EncryptionSettings type.
type nonrec determining_policy_item = {policy_id : policy_id;The Id of a policy that determined to an authorization decision.
Example: "policyId":"SPEXAMPLEabcdefg111111"
}Contains information about one of the policies that determined an authorization decision.
This data type is used as an element in a response parameter for the IsAuthorized, BatchIsAuthorized, and IsAuthorizedWithToken operations.
Example: "determiningPolicies":[{"policyId":"SPEXAMPLEabcdefg111111"}]
type nonrec determining_policy_list = determining_policy_item listtype nonrec evaluation_error_item = {error_description : Smaws_Lib.Smithy_api.Types.string_;The error description.
*)}Contains a description of an evaluation error.
This data type is a response parameter of the IsAuthorized, BatchIsAuthorized, and IsAuthorizedWithToken operations.
type nonrec evaluation_error_list = evaluation_error_item listtype nonrec context_map =
(Smaws_Lib.Smithy_api.Types.string_ * attribute_value) listtype nonrec context_definition = | CedarJson of cedar_jsonA Cedar JSON string representation of the context needed to successfully evaluate an authorization request.
Example: {"cedarJson":"{\"<KeyName1>\": true, \"<KeyName2>\": 1234}" }
| ContextMap of context_mapAn list of attributes that are needed to successfully evaluate an authorization request. Each attribute in this array must include a map of a data type and its value.
Example: "contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}
Contains additional details about the context of the request. Verified Permissions evaluates this information in an authorization request as part of the when and unless clauses in a policy.
This data type is used as a request parameter for the IsAuthorized, BatchIsAuthorized, and IsAuthorizedWithToken operations.
If you're passing context as part of the request, exactly one instance of context must be passed. If you don't want to pass context, omit the context parameter from your request rather than sending context {}.
Example: "context":{"contextMap":{"<KeyName1>":{"boolean":true},"<KeyName2>":{"long":1234}}}
type nonrec entity_attributes =
(Smaws_Lib.Smithy_api.Types.string_ * attribute_value) listtype cedar_tag_record_attribute =
(Smaws_Lib.Smithy_api.Types.string_ * cedar_tag_value) listand cedar_tag_set_attribute = cedar_tag_value listand cedar_tag_value = | Duration of duration| Datetime of datetime_attribute| Decimal of decimal| Ipaddr of ip_addr| Record of cedar_tag_record_attribute| Set of cedar_tag_set_attribute| String of string_attribute| Long of long_attribute| EntityIdentifier of entity_identifierA Cedar tag value of type EntityIdentifier.
Example: {"entityIdentifier": { "entityId": "alice", "entityType": "User"} }
| Boolean of boolean_attributeThe value of an entity's Cedar tag.
This data type is used as a member of the EntityItem structure that forms the body of the Entities request parameter for the IsAuthorized, BatchIsAuthorized, IsAuthorizedWithToken, and BatchIsAuthorizedWithToken operations.
type nonrec entity_cedar_tags =
(Smaws_Lib.Smithy_api.Types.string_ * cedar_tag_value) listtype nonrec entity_item = {parents : parent_list option;The parent entities in the hierarchy that contains the entity. A principal or resource entity can be defined with at most 99 transitive parents per authorization request.
A transitive parent is an entity in the hierarchy of entities including all direct parents, and parents of parents. For example, a user can be a member of 91 groups if one of those groups is a member of eight groups, for a total of 100: one entity, 91 entity parents, and eight parents of parents.
*)attributes : entity_attributes option;A list of attributes for the entity.
*)identifier : entity_identifier;The identifier of the entity.
*)}Contains information about an entity that can be referenced in a Cedar policy.
This data type is used as one of the fields in the EntitiesDefinition structure.
{ "identifier": { "entityType": "Photo", "entityId": "VacationPhoto94.jpg" }, "attributes": {}, "parents": [ { "entityType": "Album", "entityId": "alice_folder" } ] }
type nonrec entity_list = entity_item listtype nonrec entities_definition = | CedarJson of cedar_jsonA Cedar JSON string representation of the entities needed to successfully evaluate an authorization request.
Example: {"cedarJson": "[{\"uid\":{\"type\":\"Photo\",\"id\":\"VacationPhoto94.jpg\"},\"attrs\":{\"accessLevel\":\"public\"},\"parents\":[]}]"}
| EntityList of entity_listAn array of entities that are needed to successfully evaluate an authorization request. Each entity in this array must include an identifier for the entity, the attributes of the entity, and a list of any parent entities.
If you include multiple entities with the same identifier, only the last one is processed in the request.
Contains the list of entities to be considered during an authorization request. This includes all principals, resources, and actions required to successfully evaluate the request.
This data type is used as a field in the response parameter for the IsAuthorized and IsAuthorizedWithToken operations.
The policy store can't be deleted because deletion protection is enabled. To delete this policy store, disable deletion protection.
type nonrec identity_source_details = {open_id_issuer : open_id_issuer option;A string that identifies the type of OIDC service represented by this identity source.
At this time, the only valid value is cognito.
discovery_url : discovery_url option;The well-known URL that points to this user pool's OIDC discovery endpoint. This is a URL string in the following format. This URL replaces the placeholders for both the Amazon Web Services Region and the user pool identifier with those appropriate for this user pool.
https://cognito-idp.{i <region>}.amazonaws.com/{i <user-pool-id>}/.well-known/openid-configuration*)user_pool_arn : user_pool_arn option;The Amazon Resource Name (ARN) of the Amazon Cognito user pool whose identities are accessible to this Verified Permissions policy store.
*)client_ids : client_ids option;The application client IDs associated with the specified Amazon Cognito user pool that are enabled for this identity source.
*)}A structure that contains configuration of the identity source.
This data type was a response parameter for the GetIdentitySource operation. Replaced by ConfigurationDetail.
type nonrec identity_source = Smaws_Lib.CoreTypes.Resource.ttype nonrec get_schema_output = {namespaces : namespace_list option;The namespaces of the entities referenced by this schema.
*)last_updated_date : timestamp_format;The date and time that the schema was most recently updated.
*)created_date : timestamp_format;The date and time that the schema was originally created.
*)schema : schema_json;The body of the schema, written in Cedar schema JSON.
*)policy_store_id : policy_store_id;The ID of the policy store that contains the schema.
*)}type nonrec get_schema_input = {policy_store_id : policy_store_id;Specifies the ID of the policy store that contains the schema.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec get_policy_template_output = {name : policy_template_name option;The name of the policy template, if one was assigned when the policy template was created or last updated.
*)last_updated_date : timestamp_format;The date and time that the policy template was most recently updated.
*)created_date : timestamp_format;The date and time that the policy template was originally created.
*)statement : policy_statement;The content of the body of the policy template written in the Cedar policy language.
*)description : policy_template_description option;The description of the policy template.
*)policy_template_id : policy_template_id;The ID of the policy template.
*)policy_store_id : policy_store_id;The ID of the policy store that contains the policy template.
*)}type nonrec get_policy_template_input = {policy_template_id : policy_template_id;Specifies the ID of the policy template that you want information about.
You can use the policy template name in place of the policy template ID. When using a name, prefix it with name/. For example:
PTEXAMPLEabcdefg111111name/example-policy-templatepolicy_store_id : policy_store_id;Specifies the ID of the policy store that contains the policy template that you want information about.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec encryption_state = | Default of Smaws_Lib.Smithy_api.Types.unit_This is the default encryption state. The policy store is encrypted using an Amazon Web Services owned key.
*)| KmsEncryptionState of kms_encryption_stateThe KMS encryption settings currently configured for this policy store to encrypt data with. It contains the customer-managed KMS key, and a user-defined encryption context.
*)A structure that contains the encryption configuration for the policy store and child resources.
This data type is used as a response parameter field for the GetPolicyStore operation.
type nonrec get_policy_store_output = {cedar_version : cedar_version option;The version of the Cedar language used with policies, policy templates, and schemas in this policy store. For more information, see Amazon Verified Permissions upgrade to Cedar v4 FAQ.
*)encryption_state : encryption_state option;A structure that contains the encryption configuration for the policy store.
*)deletion_protection : deletion_protection option;Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted.
The default state is DISABLED.
description : policy_store_description option;Descriptive text that you can provide to help with identification of the current policy store.
*)last_updated_date : timestamp_format;The date and time that the policy store was last updated.
*)created_date : timestamp_format;The date and time that the policy store was originally created.
*)validation_settings : validation_settings;The current validation settings for the policy store.
*)arn : resource_arn;The Amazon Resource Name (ARN) of the policy store.
*)policy_store_id : policy_store_id;The ID of the policy store;
*)}type nonrec get_policy_store_input = {policy_store_id : policy_store_id;Specifies the policy store that you want information about.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec get_policy_store_alias_output = {state : alias_state;The state of the policy store alias. Policy Store Aliases in the Active state can be used normally. When a policy store alias is deleted, it enters the PendingDeletion state. Policy Store Aliases in the PendingDeletion cannot be used, and creating a policy store alias with the same alias name will fail.
*)created_at : timestamp_format;The date and time the policy store alias was created.
*)alias_arn : resource_arn;The Amazon Resource Name (ARN) of the policy store alias.
*)policy_store_id : policy_store_id;The ID of the policy store associated with the alias.
*)alias_name : alias;The name of the policy store alias.
*)}type nonrec get_policy_store_alias_input = {alias_name : alias;Specifies the name of the policy store alias that you want information about.
The alias name must always be prefixed with policy-store-alias/.
}type nonrec get_policy_output = {name : policy_name option;The name of the policy, if one was assigned when the policy was created or last updated.
*)effect_ : policy_effect option;The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".
last_updated_date : timestamp_format;The date and time that the policy was last updated.
*)created_date : timestamp_format;The date and time that the policy was originally created.
*)definition : policy_definition_detail;The definition of the requested policy.
*)actions : action_identifier_list option;The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}.
resource : entity_identifier option;The resource specified in the policy's scope. This element isn't included in the response when Resource isn't present in the policy content.
principal : entity_identifier option;The principal specified in the policy's scope. This element isn't included in the response when Principal isn't present in the policy content.
policy_type : policy_type;The type of the policy.
*)policy_id : policy_id;The unique ID of the policy that you want information about.
*)policy_store_id : policy_store_id;The ID of the policy store that contains the policy that you want information about.
*)}type nonrec get_policy_input = {policy_id : policy_id;Specifies the ID of the policy you want information about.
You can use the policy name in place of the policy ID. When using a name, prefix it with name/. For example:
SPEXAMPLEabcdefg111111name/example-policypolicy_store_id : policy_store_id;Specifies the ID of the policy store that contains the policy that you want information about.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec cognito_group_configuration_detail = {group_entity_type : group_entity_type option;The name of the schema entity type that's mapped to the user pool group. Defaults to AWS::CognitoGroup.
}The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
This data type is part of an CognitoUserPoolConfigurationDetail structure and is a response parameter to GetIdentitySource.
type nonrec cognito_user_pool_configuration_detail = {group_configuration : cognito_group_configuration_detail option;The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
*)issuer : issuer;The OpenID Connect (OIDC) issuer ID of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "issuer": "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_1a2b3c4d5"
client_ids : client_ids;The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "clientIds": ["&ExampleCogClientId;"]
user_pool_arn : user_pool_arn;The Amazon Resource Name (ARN) of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "userPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
}The configuration for an identity source that represents a connection to an Amazon Cognito user pool used as an identity provider for Verified Permissions.
This data type is used as a field that is part of an ConfigurationDetail structure that is part of the response to GetIdentitySource.
Example:"CognitoUserPoolConfiguration":{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds": ["a1b2c3d4e5f6g7h8i9j0kalbmc"],"groupConfiguration": {"groupEntityType": "MyCorp::Group"}}
type nonrec configuration_detail = | OpenIdConnectConfiguration of open_id_connect_configuration_detailContains configuration details of an OpenID Connect (OIDC) identity provider, or identity source, that Verified Permissions can use to generate entities from authenticated identities. It specifies the issuer URL, token type that you want to use, and policy store entity details.
Example:"configuration":{"openIdConnectConfiguration":{"issuer":"https://auth.example.com","tokenSelection":{"accessTokenOnly":{"audiences":["https://myapp.example.com","https://myapp2.example.com"],"principalIdClaim":"sub"}},"entityIdPrefix":"MyOIDCProvider","groupConfiguration":{"groupClaim":"groups","groupEntityType":"MyCorp::UserGroup"}}}
| CognitoUserPoolConfiguration of cognito_user_pool_configuration_detailContains configuration details of a Amazon Cognito user pool that Verified Permissions can use as a source of authenticated identities as entities. It specifies the Amazon Resource Name (ARN) of a Amazon Cognito user pool, the policy store entity that you want to assign to user groups, and one or more application client IDs.
Example: "configuration":{"cognitoUserPoolConfiguration":{"userPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","clientIds": ["a1b2c3d4e5f6g7h8i9j0kalbmc"],"groupConfiguration": {"groupEntityType": "MyCorp::Group"}}}
Contains configuration information about an identity source.
This data type is a response parameter to the GetIdentitySource operation.
type nonrec get_identity_source_output = {configuration : configuration_detail option;Contains configuration information about an identity source.
*)principal_entity_type : principal_entity_type;The data type of principals generated for identities authenticated by this identity source.
*)policy_store_id : policy_store_id;The ID of the policy store that contains the identity source.
*)last_updated_date : timestamp_format;The date and time that the identity source was most recently updated.
*)identity_source_id : identity_source_id;The ID of the identity source.
*)details : identity_source_details option;A structure that describes the configuration of the identity source.
*)created_date : timestamp_format;The date and time that the identity source was originally created.
*)}type nonrec get_identity_source_input = {identity_source_id : identity_source_id;Specifies the ID of the identity source you want information about.
*)policy_store_id : policy_store_id;Specifies the ID of the policy store that contains the identity source you want information about.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec encryption_settings = | Default of Smaws_Lib.Smithy_api.Types.unit_This is the default encryption setting. The policy store uses an Amazon Web Services owned key for encrypting data.
*)| KmsEncryptionSettings of kms_encryption_settingsThe KMS encryption settings for this policy store to encrypt data with. It will contain the customer-managed KMS key, and a user-defined encryption context.
*)A structure that contains the encryption configuration for the policy store and child resources.
This data type is used as a request parameter in the CreatePolicyStore operation.
The deletion mode for a resource. The valid values are:
PendingDeletion state. This is the default behavior.PendingDeletion state.type nonrec delete_policy_template_input = {policy_template_id : policy_template_id;Specifies the ID of the policy template that you want to delete.
You can use the policy template name in place of the policy template ID. When using a name, prefix it with name/. For example:
PTEXAMPLEabcdefg111111name/example-policy-templatepolicy_store_id : policy_store_id;Specifies the ID of the policy store that contains the policy template that you want to delete.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec delete_policy_store_input = {policy_store_id : policy_store_id;Specifies the ID of the policy store that you want to delete.
To specify a policy store, the alias name cannot be used. Only the ID can be used.
*)}type nonrec delete_policy_store_alias_input = {deletion_mode : deletion_mode option;Specifies the deletion mode for the policy store alias. The valid values are:
PendingDeletion state. This is the default behavior when no deletionMode is specified.PendingDeletion state.alias_name : alias;Specifies the name of the policy store alias that you want to delete.
The alias name must always be prefixed with policy-store-alias/.
}type nonrec delete_policy_input = {policy_id : policy_id;Specifies the ID of the policy that you want to delete.
You can use the policy name in place of the policy ID. When using a name, prefix it with name/. For example:
SPEXAMPLEabcdefg111111name/example-policypolicy_store_id : policy_store_id;Specifies the ID of the policy store that contains the policy that you want to delete.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec delete_identity_source_input = {identity_source_id : identity_source_id;Specifies the ID of the identity source that you want to delete.
*)policy_store_id : policy_store_id;Specifies the ID of the policy store that contains the identity source that you want to delete.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)}type nonrec create_policy_template_output = {last_updated_date : timestamp_format;The date and time the policy template was most recently updated.
*)created_date : timestamp_format;The date and time the policy template was originally created.
*)policy_template_id : policy_template_id;The unique ID of the new policy template.
*)policy_store_id : policy_store_id;The ID of the policy store that contains the policy template.
*)}type nonrec create_policy_template_input = {name : policy_template_name option;Specifies a name for the policy template that is unique among all policy templates within the policy store. You can use the name in place of the policy template ID in API operations that reference the policy template. The name must be prefixed with name/.
If you specify a name that is already associated with another policy template in the policy store, you receive a ConflictException error.
statement : policy_statement;Specifies the content that you want to use for the new policy template, written in the Cedar policy language.
*)description : policy_template_description option;Specifies a description for the policy template.
*)policy_store_id : policy_store_id;The ID of the policy store in which to create the policy template.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)client_token : idempotency_token option;Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.
Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.
}type nonrec create_policy_store_output = {last_updated_date : timestamp_format;The date and time the policy store was last updated.
*)created_date : timestamp_format;The date and time the policy store was originally created.
*)arn : resource_arn;The Amazon Resource Name (ARN) of the new policy store.
*)policy_store_id : policy_store_id;The unique ID of the new policy store.
*)}type nonrec create_policy_store_input = {encryption_settings : encryption_settings option;Specifies the encryption settings used to encrypt the policy store and their child resources. Allows for the ability to use a customer owned KMS key for encryption of data.
This is an optional field to be used when providing a customer-managed KMS key for encryption.
*)deletion_protection : deletion_protection option;Specifies whether the policy store can be deleted. If enabled, the policy store can't be deleted.
The default state is DISABLED.
description : policy_store_description option;Descriptive text that you can provide to help with identification of the current policy store.
*)validation_settings : validation_settings;Specifies the validation setting for this policy store.
Currently, the only valid and required value is Mode.
We recommend that you turn on STRICT mode only after you define a schema. If a schema doesn't exist, then STRICT mode causes any policy to fail validation, and Verified Permissions rejects the policy. You can turn off validation by using the UpdatePolicyStore. Then, when you have a schema defined, use UpdatePolicyStore again to turn validation back on.
client_token : idempotency_token option;Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.
Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.
}type nonrec create_policy_store_alias_output = {created_at : timestamp_format;The date and time the policy store alias was created.
*)alias_arn : resource_arn;The Amazon Resource Name (ARN) of the policy store alias.
*)policy_store_id : policy_store_id;The ID of the policy store associated with the alias.
*)alias_name : alias;The name of the policy store alias.
*)}type nonrec create_policy_store_alias_input = {policy_store_id : policy_store_id;Specifies the ID of the policy store to associate with the alias.
The associated policy store must be specified using its ID. The alias name cannot be used.
*)alias_name : alias;Specifies the name of the policy store alias to create. The name must be unique within your Amazon Web Services account and Amazon Web Services Region.
The alias name must always be prefixed with policy-store-alias/.
}type nonrec create_policy_output = {effect_ : policy_effect option;The effect of the decision that a policy returns to an authorization request. For example, "effect": "Permit".
last_updated_date : timestamp_format;The date and time the policy was last updated.
*)created_date : timestamp_format;The date and time the policy was originally created.
*)actions : action_identifier_list option;The action that a policy permits or forbids. For example, {"actions": [{"actionId": "ViewPhoto", "actionType": "PhotoFlash::Action"}, {"entityID": "SharePhoto", "entityType": "PhotoFlash::Action"}]}.
resource : entity_identifier option;The resource specified in the new policy's scope. This response element isn't present when the resource isn't specified in the policy content.
principal : entity_identifier option;The principal specified in the new policy's scope. This response element isn't present when principal isn't specified in the policy content.
policy_type : policy_type;The policy type of the new policy.
*)policy_id : policy_id;The unique ID of the new policy.
*)policy_store_id : policy_store_id;The ID of the policy store that contains the new policy.
*)}type nonrec create_policy_input = {name : policy_name option;Specifies a name for the policy that is unique among all policies within the policy store. You can use the name in place of the policy ID in API operations that reference the policy. The name must be prefixed with name/.
If you specify a name that is already associated with another policy in the policy store, you receive a ConflictException error.
definition : policy_definition;A structure that specifies the policy type and content to use for the new policy. You must include either a static or a templateLinked element. The policy content must be written in the Cedar policy language.
*)policy_store_id : policy_store_id;Specifies the PolicyStoreId of the policy store you want to store the policy in.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)client_token : idempotency_token option;Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.
Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.
}type nonrec create_identity_source_output = {policy_store_id : policy_store_id;The ID of the policy store that contains the identity source.
*)last_updated_date : timestamp_format;The date and time the identity source was most recently updated.
*)identity_source_id : identity_source_id;The unique ID of the new identity source.
*)created_date : timestamp_format;The date and time the identity source was originally created.
*)}type nonrec cognito_group_configuration = {group_entity_type : group_entity_type;The name of the schema entity type that's mapped to the user pool group. Defaults to AWS::CognitoGroup.
}The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
This data type is part of a CognitoUserPoolConfiguration structure and is a request parameter in CreateIdentitySource.
type nonrec cognito_user_pool_configuration = {group_configuration : cognito_group_configuration option;The type of entity that a policy store maps to groups from an Amazon Cognito user pool identity source.
*)client_ids : client_ids option;The unique application client IDs that are associated with the specified Amazon Cognito user pool.
Example: "ClientIds": ["&ExampleCogClientId;"]
user_pool_arn : user_pool_arn;The Amazon Resource Name (ARN) of the Amazon Cognito user pool that contains the identities to be authorized.
Example: "UserPoolArn": "arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5"
}The configuration for an identity source that represents a connection to an Amazon Cognito user pool used as an identity provider for Verified Permissions.
This data type part of a Configuration structure that is used as a parameter to CreateIdentitySource.
Example:"CognitoUserPoolConfiguration":{"UserPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","ClientIds": ["a1b2c3d4e5f6g7h8i9j0kalbmc"],"groupConfiguration": {"groupEntityType": "MyCorp::Group"}}
type nonrec configuration = | OpenIdConnectConfiguration of open_id_connect_configurationContains configuration details of an OpenID Connect (OIDC) identity provider, or identity source, that Verified Permissions can use to generate entities from authenticated identities. It specifies the issuer URL, token type that you want to use, and policy store entity details.
Example:"configuration":{"openIdConnectConfiguration":{"issuer":"https://auth.example.com","tokenSelection":{"accessTokenOnly":{"audiences":["https://myapp.example.com","https://myapp2.example.com"],"principalIdClaim":"sub"}},"entityIdPrefix":"MyOIDCProvider","groupConfiguration":{"groupClaim":"groups","groupEntityType":"MyCorp::UserGroup"}}}
| CognitoUserPoolConfiguration of cognito_user_pool_configurationContains configuration details of a Amazon Cognito user pool that Verified Permissions can use as a source of authenticated identities as entities. It specifies the Amazon Resource Name (ARN) of a Amazon Cognito user pool and one or more application client IDs.
Example: "configuration":{"cognitoUserPoolConfiguration":{"userPoolArn":"arn:aws:cognito-idp:us-east-1:123456789012:userpool/us-east-1_1a2b3c4d5","clientIds": ["a1b2c3d4e5f6g7h8i9j0kalbmc"],"groupConfiguration": {"groupEntityType": "MyCorp::Group"}}}
Contains configuration information used when creating a new identity source.
This data type is used as a request parameter for the CreateIdentitySource operation.
type nonrec create_identity_source_input = {principal_entity_type : principal_entity_type option;Specifies the namespace and data type of the principals generated for identities authenticated by the new identity source.
*)configuration : configuration;Specifies the details required to communicate with the identity provider (IdP) associated with this identity source.
*)policy_store_id : policy_store_id;Specifies the ID of the policy store in which you want to store this identity source. Only policies and requests made using this policy store can reference identities from the identity provider configured in the new identity source.
To specify a policy store, use its ID or alias name. When using an alias name, prefix it with policy-store-alias/. For example:
PSEXAMPLEabcdefg111111policy-store-alias/example-policy-storeTo view aliases, use ListPolicyStoreAliases.
*)client_token : idempotency_token option;Specifies a unique, case-sensitive ID that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..
If you don't provide this value, then Amazon Web Services generates a random one for you.
If you retry the operation with the same ClientToken, but with different parameters, the retry fails with an ConflictException error.
Verified Permissions recognizes a ClientToken for eight hours. After eight hours, the next request with the same parameters performs the operation again regardless of the value of ClientToken.
}An authorization request that you include in a BatchIsAuthorizedWithToken API request.
The decision, based on policy evaluation, from an individual authorization request in a BatchIsAuthorizedWithToken API request.
type nonrec batch_is_authorized_with_token_output_list =
batch_is_authorized_with_token_output_item listtype nonrec batch_is_authorized_with_token_input_list =
batch_is_authorized_with_token_input_item listAn authorization request that you include in a BatchIsAuthorized API request.
The decision, based on policy evaluation, from an individual authorization request in a BatchIsAuthorized API request.
type nonrec batch_is_authorized_output_list =
batch_is_authorized_output_item listtype nonrec batch_is_authorized_input_list =
batch_is_authorized_input_item listtype nonrec batch_get_policy_output_item = {name : policy_name option;The name of the policy, if one was assigned when the policy was created or last updated.
*)last_updated_date : timestamp_format;The date and time the policy was most recently updated.
*)created_date : timestamp_format;The date and time the policy was created.
*)definition : policy_definition_detail;The policy definition of an item in the list of policies returned.
*)policy_type : policy_type;The type of the policy. This is one of the following values:
STATICTEMPLATE_LINKEDpolicy_id : policy_id;The identifier of the policy you want information about.
*)policy_store_id : policy_store_id;The identifier of the policy store where the policy you want information about is stored.
*)}Contains information about a policy returned from a BatchGetPolicy API request.
type nonrec batch_get_policy_output_list = batch_get_policy_output_item listtype nonrec batch_get_policy_error_item = {message : Smaws_Lib.Smithy_api.Types.string_;A detailed error message.
*)policy_id : Smaws_Lib.Smithy_api.Types.string_;The identifier of the policy associated with the failed request.
*)policy_store_id : Smaws_Lib.Smithy_api.Types.string_;The identifier of the policy store associated with the failed request.
*)code : batch_get_policy_error_code;The error code that was returned.
*)}Contains the information about an error resulting from a BatchGetPolicy API call.
type nonrec batch_get_policy_error_list = batch_get_policy_error_item listtype nonrec batch_get_policy_output = {errors : batch_get_policy_error_list;Information about the policies from the request that resulted in an error. These results are returned in the order they were requested.
*)results : batch_get_policy_output_list;Information about the policies listed in the request that were successfully returned. These results are returned in the order they were requested.
*)}type nonrec batch_get_policy_input_item = {policy_id : policy_id;The identifier of the policy you want information about.
You can use the policy name in place of the policy ID. When using a name, prefix it with name/. For example:
SPEXAMPLEabcdefg111111name/example-policypolicy_store_id : policy_store_id;The identifier of the policy store where the policy you want information about is stored.
*)}Information about a policy that you include in a BatchGetPolicy API request.
type nonrec batch_get_policy_input_list = batch_get_policy_input_item listtype nonrec batch_get_policy_input = {requests : batch_get_policy_input_list;An array of up to 100 policies you want information about.
*)}