createIntegration
Creates an integration with a third-party provider. Returns the integration identifier and its initial status; when the provider requires interactive consent, an authorization URL is returned for the user to complete setup.
Samples
// The following example creates an AWS_INTEGRATION named my aws integration, authorized by an IAM
// role. Payloads are shown as JSON on the wire they are CBOR encoded.
val resp = cloudWatchOmniClient.createIntegration {
integrationType = IntegrationType.fromValue("AWS_INTEGRATION")
name = "my-aws-integration"
roleArn = "arn:aws:iam::123456789012:role/service-role/CloudWatchIntegrationRole"
clientToken = "b3f8c7d6-5b4a-4c3d-9e2f-1a0b2c3d4e5f"
}Content copied to clipboard