GetResourcePolicy - Elastic Load Balancing

GetResourcePolicy

Retrieves the resource policy for a specified resource.

Request Parameters

For information about the parameters that are common to all actions, see Common Parameters.

ResourceArn

The Amazon Resource Name (ARN) of the resource.

Type: String

Required: Yes

Response Elements

The following element is returned by the service.

Policy

The content of the resource policy.

Type: String

Length Constraints: Minimum length of 1.

Errors

For information about the errors that are common to all actions, see Common Errors.

ResourceNotFound

The specified resource does not exist.

HTTP Status Code: 400

Examples

Retrieve a resource policy

This example retrieves the resource policy for the specified trust store.

Sample Request

https://elasticloadbalancing.amazonaws.com/?Action=GetResourcePolicy &ResourceArn=arn:aws:elasticloadbalancing:us-east-1:123456789012:truststore/my-trust-store/73e2d6bc24d8a067 &Version=2015-12-01 &AUTHPARAMS

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: