- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
GetDeliveryDestinationPolicyCommand
Retrieves the delivery destination policy assigned to the delivery destination that you specify. For more information about delivery destinations and their policies, see PutDeliveryDestinationPolicy .
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { CloudWatchLogsClient, GetDeliveryDestinationPolicyCommand } from "@aws-sdk/client-cloudwatch-logs"; // ES Modules import
// const { CloudWatchLogsClient, GetDeliveryDestinationPolicyCommand } = require("@aws-sdk/client-cloudwatch-logs"); // CommonJS import
const client = new CloudWatchLogsClient(config);
const input = { // GetDeliveryDestinationPolicyRequest
deliveryDestinationName: "STRING_VALUE", // required
};
const command = new GetDeliveryDestinationPolicyCommand(input);
const response = await client.send(command);
// { // GetDeliveryDestinationPolicyResponse
// policy: { // Policy
// deliveryDestinationPolicy: "STRING_VALUE",
// },
// };
GetDeliveryDestinationPolicyCommand Input
See GetDeliveryDestinationPolicyCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
deliveryDestinationName Required | string | undefined | The name of the delivery destination that you want to retrieve the policy of. |
GetDeliveryDestinationPolicyCommand Output
See GetDeliveryDestinationPolicyCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
policy | Policy | undefined | The IAM policy for this delivery destination. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
ResourceNotFoundException | client | The specified resource does not exist. |
ServiceUnavailableException | server | The service cannot complete the request. |
ValidationException | client | One of the parameters for the request is not valid. |
CloudWatchLogsServiceException | Base exception class for all service exceptions from CloudWatchLogs service. |