identity_providers
Creates, updates, deletes or gets an identity_provider resource or lists identity_providers in a region
Overview
| Name | identity_providers |
| Type | Resource |
| Description | Definition of AWS::WorkSpacesWeb::IdentityProvider Resource Type |
| Id | awscc.workspacesweb.identity_providers |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
identity_provider_arn | string | |
identity_provider_details | object | |
identity_provider_name | string | |
identity_provider_type | string | |
portal_arn | string | |
tags | array | |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
identity_provider_arn | string | |
region | string | AWS region. |
For more information, see AWS::WorkSpacesWeb::IdentityProvider.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | identity_providers | INSERT | IdentityProviderDetails, IdentityProviderName, IdentityProviderType, region |
delete_resource | identity_providers | DELETE | Identifier, region |
update_resource | identity_providers | UPDATE | Identifier, PatchDocument, region |
list_resources | identity_providers_list_only | SELECT | region |
get_resource | identity_providers | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual identity_provider.
SELECT
region,
identity_provider_arn,
identity_provider_details,
identity_provider_name,
identity_provider_type,
portal_arn,
tags
FROM awscc.workspacesweb.identity_providers
WHERE
region = '{{ region }}' AND
Identifier = '{{ identity_provider_arn }}';
Lists all identity_providers in a region.
SELECT
region,
identity_provider_arn
FROM awscc.workspacesweb.identity_providers_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new identity_provider resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.workspacesweb.identity_providers (
IdentityProviderDetails,
IdentityProviderName,
IdentityProviderType,
region
)
SELECT
'{{ identity_provider_details }}',
'{{ identity_provider_name }}',
'{{ identity_provider_type }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.workspacesweb.identity_providers (
IdentityProviderDetails,
IdentityProviderName,
IdentityProviderType,
PortalArn,
Tags,
region
)
SELECT
'{{ identity_provider_details }}',
'{{ identity_provider_name }}',
'{{ identity_provider_type }}',
'{{ portal_arn }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: identity_provider
props:
- name: identity_provider_details
value: {}
- name: identity_provider_name
value: '{{ identity_provider_name }}'
- name: identity_provider_type
value: '{{ identity_provider_type }}'
- name: portal_arn
value: '{{ portal_arn }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a identity_provider resource, using stack-deploy.
/*+ update */
UPDATE awscc.workspacesweb.identity_providers
SET PatchDocument = string('{{ {
"IdentityProviderDetails": identity_provider_details,
"IdentityProviderName": identity_provider_name,
"IdentityProviderType": identity_provider_type,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ identity_provider_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.workspacesweb.identity_providers
WHERE
Identifier = '{{ identity_provider_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the identity_providers resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
workspaces-web:CreateIdentityProvider,
workspaces-web:GetIdentityProvider,
workspaces-web:ListTagsForResource,
workspaces-web:TagResource
workspaces-web:GetIdentityProvider,
workspaces-web:ListIdentityProviders,
workspaces-web:ListTagsForResource
workspaces-web:UpdateIdentityProvider,
workspaces-web:TagResource,
workspaces-web:UntagResource,
workspaces-web:GetIdentityProvider,
workspaces-web:ListIdentityProviders,
workspaces-web:ListTagsForResource
workspaces-web:GetIdentityProvider,
workspaces-web:DeleteIdentityProvider
workspaces-web:ListIdentityProviders