proactive_engagements
Creates, updates, deletes or gets a proactive_engagement resource or lists proactive_engagements in a region
Overview
| Name | proactive_engagements |
| Type | Resource |
| Description | Authorizes the Shield Response Team (SRT) to use email and phone to notify contacts about escalations to the SRT and to initiate proactive customer support. |
| Id | awscc.shield.proactive_engagements |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
account_id | string | |
proactive_engagement_status | string | If If |
emergency_contact_list | array | A list of email addresses and phone numbers that the Shield Response Team (SRT) can use to contact you for escalations to the SRT and to initiate proactive customer support.To enable proactive engagement, the contact list must include at least one phone number. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
account_id | string | |
region | string | AWS region. |
For more information, see AWS::Shield::ProactiveEngagement.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | proactive_engagements | INSERT | ProactiveEngagementStatus, EmergencyContactList, region |
delete_resource | proactive_engagements | DELETE | Identifier, region |
update_resource | proactive_engagements | UPDATE | Identifier, PatchDocument, region |
list_resources | proactive_engagements_list_only | SELECT | region |
get_resource | proactive_engagements | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual proactive_engagement.
SELECT
region,
account_id,
proactive_engagement_status,
emergency_contact_list
FROM awscc.shield.proactive_engagements
WHERE
region = 'us-east-1' AND
Identifier = '{{ account_id }}';
Lists all proactive_engagements in a region.
SELECT
region,
account_id
FROM awscc.shield.proactive_engagements_list_only
WHERE
region = 'us-east-1';
INSERT example
Use the following StackQL query and manifest file to create a new proactive_engagement resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.shield.proactive_engagements (
ProactiveEngagementStatus,
EmergencyContactList,
region
)
SELECT
'{{ proactive_engagement_status }}',
'{{ emergency_contact_list }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.shield.proactive_engagements (
ProactiveEngagementStatus,
EmergencyContactList,
region
)
SELECT
'{{ proactive_engagement_status }}',
'{{ emergency_contact_list }}',
'{{ 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: proactive_engagement
props:
- name: proactive_engagement_status
value: '{{ proactive_engagement_status }}'
- name: emergency_contact_list
value:
- contact_notes: '{{ contact_notes }}'
email_address: '{{ email_address }}'
phone_number: '{{ phone_number }}'
UPDATE example
Use the following StackQL query and manifest file to update a proactive_engagement resource, using stack-deploy.
/*+ update */
UPDATE awscc.shield.proactive_engagements
SET PatchDocument = string('{{ {
"ProactiveEngagementStatus": proactive_engagement_status,
"EmergencyContactList": emergency_contact_list
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ account_id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.shield.proactive_engagements
WHERE
Identifier = '{{ account_id }}' AND
region = 'us-east-1'
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 proactive_engagements resource, the following permissions are required:
- Create
- Delete
- Read
- Update
- List
shield:DescribeSubscription,
shield:DescribeEmergencyContactSettings,
shield:AssociateProactiveEngagementDetails,
shield:UpdateEmergencyContactSettings,
shield:EnableProactiveEngagement
shield:DescribeSubscription,
shield:DescribeEmergencyContactSettings,
shield:UpdateEmergencyContactSettings,
shield:DisableProactiveEngagement
shield:DescribeSubscription,
shield:DescribeEmergencyContactSettings
shield:DescribeSubscription,
shield:DescribeEmergencyContactSettings,
shield:UpdateEmergencyContactSettings,
shield:EnableProactiveEngagement,
shield:DisableProactiveEngagement
shield:DescribeSubscription,
shield:DescribeEmergencyContactSettings