| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.MigrationHubReFactorSpaces.GetResourcePolicy
Description
Gets the resource-based permission policy that is set for the given environment.
Synopsis
- data GetResourcePolicy = GetResourcePolicy' {
- identifier :: Text
- newGetResourcePolicy :: Text -> GetResourcePolicy
- getResourcePolicy_identifier :: Lens' GetResourcePolicy Text
- data GetResourcePolicyResponse = GetResourcePolicyResponse' {
- policy :: Maybe Text
- httpStatus :: Int
- newGetResourcePolicyResponse :: Int -> GetResourcePolicyResponse
- getResourcePolicyResponse_policy :: Lens' GetResourcePolicyResponse (Maybe Text)
- getResourcePolicyResponse_httpStatus :: Lens' GetResourcePolicyResponse Int
Creating a Request
data GetResourcePolicy Source #
See: newGetResourcePolicy smart constructor.
Constructors
| GetResourcePolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> GetResourcePolicy |
Create a value of GetResourcePolicy with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:identifier:GetResourcePolicy', getResourcePolicy_identifier - The Amazon Resource Name (ARN) of the resource associated with the
policy.
Request Lenses
getResourcePolicy_identifier :: Lens' GetResourcePolicy Text Source #
The Amazon Resource Name (ARN) of the resource associated with the policy.
Destructuring the Response
data GetResourcePolicyResponse Source #
See: newGetResourcePolicyResponse smart constructor.
Constructors
| GetResourcePolicyResponse' | |
Fields
| |
Instances
newGetResourcePolicyResponse Source #
Create a value of GetResourcePolicyResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:policy:GetResourcePolicyResponse', getResourcePolicyResponse_policy - A JSON-formatted string for an Amazon Web Services resource-based
policy.
$sel:httpStatus:GetResourcePolicyResponse', getResourcePolicyResponse_httpStatus - The response's http status code.
Response Lenses
getResourcePolicyResponse_policy :: Lens' GetResourcePolicyResponse (Maybe Text) Source #
A JSON-formatted string for an Amazon Web Services resource-based policy.
getResourcePolicyResponse_httpStatus :: Lens' GetResourcePolicyResponse Int Source #
The response's http status code.