getRule
inline suspend fun NetworkSecurityManagerClient.getRule(crossinline block: GetRuleRequest.Builder.() -> Unit): GetRuleResponse
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"
}Content copied to clipboard
// 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"
}Content copied to clipboard