Skip to main content

application_access_scopes

Creates, updates, deletes, gets or lists an application_access_scopes resource.

Overview

Nameapplication_access_scopes
TypeResource
Idaws.sso_admin.application_access_scopes

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
authorized_targetsarrayAn array of authorized targets associated with this access scope.
scopestringThe name of the access scope that can be used with the authorized targets. (pattern: <code>([A-Za-z0-9_]{1,50})(:[A-Za-z0-9_]{1,50}){0,1}(:[A-Za-z0-9_]{1,50}){0,1}</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_application_access_scopeselectregionRetrieves the authorized targets for an IAM Identity Center access scope for an application.
put_application_access_scopereplaceregion, ApplicationArnAdds or updates the list of authorized targets for an IAM Identity Center access scope for an application.
delete_application_access_scopedeleteregionDeletes an IAM Identity Center access scope from an application.
list_application_access_scopesexecregion, ApplicationArnLists the access scopes and authorized targets associated with an application.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the authorized targets for an IAM Identity Center access scope for an application.

SELECT
authorized_targets,
scope
FROM aws.sso_admin.application_access_scopes
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Adds or updates the list of authorized targets for an IAM Identity Center access scope for an application.

REPLACE aws.sso_admin.application_access_scopes
SET
Scope = '{{ Scope }}',
AuthorizedTargets = '{{ AuthorizedTargets }}',
ApplicationArn = '{{ ApplicationArn }}'
WHERE
region = '{{ region }}' --required
AND ApplicationArn = '{{ ApplicationArn }}' --required;

DELETE examples

Deletes an IAM Identity Center access scope from an application.

DELETE FROM aws.sso_admin.application_access_scopes
WHERE region = '{{ region }}' --required
;

Lifecycle Methods

Lists the access scopes and authorized targets associated with an application.

EXEC aws.sso_admin.application_access_scopes.list_application_access_scopes
@region='{{ region }}' --required
@@json=
'{
"ApplicationArn": "{{ ApplicationArn }}",
"MaxResults": {{ MaxResults }},
"NextToken": "{{ NextToken }}"
}'
;