getRule

Retrieves the details of the specified rule.

Samples

// Retrieves the current published version of a rule by its base ARN.
val resp = networkSecurityManagerClient.getRule {
    ruleIdentifier = "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123"
}
// Retrieves a specific immutable version (snapshot) of a rule using a version qualified ARN. The
// response has isSnapshot set to true. Omitting the version qualifier returns the current published rule
// instead.
val resp = networkSecurityManagerClient.getRule {
    ruleIdentifier = "arn:aws:network-security-manager:us-east-1:123456789012:rule:abc123:3"
}