Transfer / Client / list_security_policies

list_security_policies#

Transfer.Client.list_security_policies(**kwargs)#

Lists the security policies that are attached to your servers and SFTP connectors. For more information about security policies, see Working with security policies for servers or Working with security policies for SFTP connectors.

See also: AWS API Documentation

Request Syntax

response = client.list_security_policies(
    MaxResults=123,
    NextToken='string'
)
Parameters:
  • MaxResults (integer) – Specifies the number of security policies to return as a response to the ListSecurityPolicies query.

  • NextToken (string) – When additional results are obtained from the 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.

Return type:

dict

Returns:

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.

      • (string) –

Exceptions