associateResourcesToSubscription

Adds one or more resources to an existing subscription. The subscription must be in an active state that is not pending other changes.

For subscriptions in the CloudFront plan family, the associated resources must include exactly one Amazon CloudFront distribution and one AWS WAF web ACL. You can also include other supported resources, such as Amazon Route 53 hosted zones, and CloudFront KeyValueStores.

Samples

// Associate additional resources to a subscription
val resp = pricingPlanManagerClient.associateResourcesToSubscription {
    arn = "arn:aws:pricingplanmanager::123456789012:subscription/sub-1234567890"
    resourceArns = listOf<String>(
        "arn:aws:route53:::hostedzone/Z0123456789EXAMPLE"
    )
    ifMatch = "1"
}