Transfer.Client.
list_security_policies
(**kwargs)¶Lists the security policies that are attached to your file transfer protocol-enabled servers.
See also: AWS API Documentation
Request Syntax
response = client.list_security_policies(
MaxResults=123,
NextToken='string'
)
ListSecurityPolicies
query.ListSecurityPolicies
command, a NextToken
parameter is returned in the output. You can then pass the NextToken
parameter in a subsequent command to continue listing additional security policies.dict
Response Syntax
{
'NextToken': 'string',
'SecurityPolicyNames': [
'string',
]
}
Response Structure
(dict) --
NextToken (string) --
When you can get additional results from the ListSecurityPolicies
operation, a NextToken
parameter is returned in the output. In a following command, you can pass in the NextToken
parameter to continue listing security policies.
SecurityPolicyNames (list) --
An array of security policies that were listed.
Exceptions
Transfer.Client.exceptions.ServiceUnavailableException
Transfer.Client.exceptions.InternalServiceError
Transfer.Client.exceptions.InvalidNextTokenException
Transfer.Client.exceptions.InvalidRequestException