Skip to main content

integrations

Creates, updates, deletes or gets an integration resource or lists integrations in a region

Overview

Nameintegrations
TypeResource
DescriptionResource Schema for Logs Integration Resource
Idawscc.logs.integrations

Fields

NameDatatypeDescription
integration_namestringUser provided identifier for integration, unique to the user account.
integration_typestringThe type of the Integration.
resource_configobjectOpenSearchResourceConfig for the given Integration
integration_statusstringStatus of creation for the Integration and its resources
regionstringAWS region.

For more information, see AWS::Logs::Integration.

Methods

NameResourceAccessible byRequired Params
create_resourceintegrationsINSERTIntegrationName, IntegrationType, ResourceConfig, region
delete_resourceintegrationsDELETEIdentifier, region
list_resourcesintegrations_list_onlySELECTregion
get_resourceintegrationsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual integration.

SELECT
region,
integration_name,
integration_type,
resource_config,
integration_status
FROM awscc.logs.integrations
WHERE
region = '{{ region }}' AND
Identifier = '{{ integration_name }}';

INSERT example

Use the following StackQL query and manifest file to create a new integration resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.logs.integrations (
IntegrationName,
IntegrationType,
ResourceConfig,
region
)
SELECT
'{{ integration_name }}',
'{{ integration_type }}',
'{{ resource_config }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.logs.integrations
WHERE
Identifier = '{{ integration_name }}' 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:

ParameterDescription
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 integrations resource, the following permissions are required:

logs:PutIntegration,
logs:GetIntegration,
aoss:CreateCollection,
aoss:CreateSecurityPolicy,
aoss:CreateAccessPolicy,
aoss:CreateLifeCyclePolicy,
aoss:BatchGetCollection,
aoss:DeleteCollection,
aoss:DeleteSecurityPolicy,
aoss:DeleteAccessPolicy,
aoss:DeleteLifeCyclePolicy,
aoss:GetAccessPolicy,
aoss:GetSecurityPolicy,
aoss:BatchGetLifecyclePolicy,
aoss:TagResource,
aoss:APIAccessAll,
opensearch:AddDirectQueryDataSource,
opensearch:DeleteDirectQueryDataSource,
opensearch:GetDirectQueryDataSource,
opensearch:CreateApplication,
opensearch:GetApplication,
opensearch:UpdateApplication,
opensearch:DeleteApplication,
opensearch:ApplicationAccessAll,
opensearch:DashboardsAccessAll,
opensearch:StartDirectQuery,
opensearch:GetDirectQuery,
iam:PassRole,
iam:CreateServiceLinkedRole,
iam:AttachRolePolicy,
iam:AttachUserPolicy,
es:AddDirectQueryDataSource,
es:CreateApplication,
es:UpdateApplication,
es:GetApplication,
es:DeleteApplication,
es:DeleteDirectQueryDataSource,
es:GetDirectQueryDataSource,
es:AddTags,
es:ListApplications