createPolicySnapshot

Creates a snapshot of the current published version of the specified policy.

Samples

// Creates an immutable snapshot of the current published version of a policy. The snapshot is
// addressable by a version qualified ARN.
val resp = networkSecurityManagerClient.createPolicySnapshot {
    policyIdentifier = "arn:aws:network-security-manager:us-east-1:123456789012:policy:xyz789"
    clientToken = "550e8400-e29b-41d4-a716-446655440013"
}