Method: Aws::ServerlessApplicationRepository::Client#get_application_policy

Defined in:
lib/aws-sdk-serverlessapplicationrepository/client.rb

#get_application_policy(params = {}) ⇒ Types::GetApplicationPolicyResponse

Retrieves the policy for the application.

Examples:

Request syntax with placeholder values


resp = client.get_application_policy({
  application_id: "__string", # required
})

Response structure


resp.statements #=> Array
resp.statements[0].actions #=> Array
resp.statements[0].actions[0] #=> String
resp.statements[0].principal_org_i_ds #=> Array
resp.statements[0].principal_org_i_ds[0] #=> String
resp.statements[0].principals #=> Array
resp.statements[0].principals[0] #=> String
resp.statements[0].statement_id #=> String

Parameters:

  • (defaults to: {})

    ({})

Options Hash (params):

  • :application_id (required, String)

Returns:

  • Returns a response object which responds to the following methods:

    • #statements => Array<Types::ApplicationPolicyStatement>

See Also:



933
934
935
936
# File 'lib/aws-sdk-serverlessapplicationrepository/client.rb', line 933

def get_application_policy(params = {}, options = {})
  req = build_request(:get_application_policy, params)
  req.send_request(options)
end