NetworkSecurityManagerCustomerAPI / Client / list_rule_snapshots
list_rule_snapshots¶
- NetworkSecurityManagerCustomerAPI.Client.list_rule_snapshots(**kwargs)¶
Lists the snapshots of the specified rule.
See also: AWS API Documentation
Request Syntax
response = client.list_rule_snapshots( ruleIdentifier='string', maxResults=123, nextToken='string' )
- Parameters:
ruleIdentifier (string) –
[REQUIRED]
The identifier of the rule. This is the rule’s Amazon Resource Name (ARN).
maxResults (integer) – The maximum number of results to return in a single call. Valid range: 1-100. To retrieve the remaining results, use the returned
nextTokenvalue in a subsequent call.nextToken (string) – The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.
- Return type:
dict
- Returns:
Response Syntax
{ 'nextToken': 'string', 'snapshots': [ { 'ruleId': 'string', 'ruleArn': 'string', 'ruleName': 'string', 'firewallType': 'WAF', 'ruleType': 'CONFIGURATION'|'INSPECTION', 'status': 'DRAFT'|'ACTIVE'|'DISABLED', 'version': 'string', 'hasPublishedVersion': True|False, 'updatedAt': datetime(2015, 1, 1) }, ] }
Response Structure
(dict) –
nextToken (string) –
The token for the next page of results. To retrieve the next page, call the operation again and provide this value. When there are no more results, this value is null.
snapshots (list) –
The snapshots of the rule.
(dict) –
Summary information about a rule.
ruleId (string) –
The service-generated id of the rule.
ruleArn (string) –
The Amazon Resource Name (ARN) of the rule.
ruleName (string) –
The name of the rule.
firewallType (string) –
The firewall type associated with the resource.
ruleType (string) –
The type of the rule.
CONFIGURATIONrules contain firewall settings, andINSPECTIONrules contain rule groups.status (string) –
The current status of the resource:
DRAFT(unpublished, editable) orACTIVE(published, in use).version (string) –
The version of the resource.
hasPublishedVersion (boolean) –
Specifies whether a published version of the resource exists.
updatedAt (datetime) –
The time when the resource was last updated. For a snapshot, this is the time when the snapshot was created.
Exceptions
NetworkSecurityManagerCustomerAPI.Client.exceptions.ValidationExceptionNetworkSecurityManagerCustomerAPI.Client.exceptions.InternalServerExceptionNetworkSecurityManagerCustomerAPI.Client.exceptions.AccessDeniedExceptionNetworkSecurityManagerCustomerAPI.Client.exceptions.ResourceNotFoundExceptionNetworkSecurityManagerCustomerAPI.Client.exceptions.ThrottlingException