createRuleSnapshot
inline suspend fun NetworkSecurityManagerClient.createRuleSnapshot(crossinline block: CreateRuleSnapshotRequest.Builder.() -> Unit): CreateRuleSnapshotResponse
Creates a snapshot of the current published version of the specified rule. A snapshot is an immutable, versioned copy that other resources can reference.
Samples
// Creates an immutable snapshot of the current published version of a rule. The snapshot is
// addressable by a version qualified ARN.
val resp = networkSecurityManagerClient.createRuleSnapshot {
ruleIdentifier = "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123"
clientToken = "550e8400-e29b-41d4-a716-446655440011"
}Content copied to clipboard