/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #include #include #include using namespace Aws::SSM::Model; using namespace Aws::Utils::Json; using namespace Aws::Utils; DeleteResourcePolicyRequest::DeleteResourcePolicyRequest() : m_resourceArnHasBeenSet(false), m_policyIdHasBeenSet(false), m_policyHashHasBeenSet(false) { } Aws::String DeleteResourcePolicyRequest::SerializePayload() const { JsonValue payload; if(m_resourceArnHasBeenSet) { payload.WithString("ResourceArn", m_resourceArn); } if(m_policyIdHasBeenSet) { payload.WithString("PolicyId", m_policyId); } if(m_policyHashHasBeenSet) { payload.WithString("PolicyHash", m_policyHash); } return payload.View().WriteReadable(); } Aws::Http::HeaderValueCollection DeleteResourcePolicyRequest::GetRequestSpecificHeaders() const { Aws::Http::HeaderValueCollection headers; headers.insert(Aws::Http::HeaderValuePair("X-Amz-Target", "AmazonSSM.DeleteResourcePolicy")); return headers; }