Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Describes read and write permissions on a template.
Synopsis
- data DescribeTemplatePermissions = DescribeTemplatePermissions' {
- awsAccountId :: Text
- templateId :: Text
- newDescribeTemplatePermissions :: Text -> Text -> DescribeTemplatePermissions
- describeTemplatePermissions_awsAccountId :: Lens' DescribeTemplatePermissions Text
- describeTemplatePermissions_templateId :: Lens' DescribeTemplatePermissions Text
- data DescribeTemplatePermissionsResponse = DescribeTemplatePermissionsResponse' {
- requestId :: Maybe Text
- templateId :: Maybe Text
- templateArn :: Maybe Text
- permissions :: Maybe (NonEmpty ResourcePermission)
- status :: Int
- newDescribeTemplatePermissionsResponse :: Int -> DescribeTemplatePermissionsResponse
- describeTemplatePermissionsResponse_requestId :: Lens' DescribeTemplatePermissionsResponse (Maybe Text)
- describeTemplatePermissionsResponse_templateId :: Lens' DescribeTemplatePermissionsResponse (Maybe Text)
- describeTemplatePermissionsResponse_templateArn :: Lens' DescribeTemplatePermissionsResponse (Maybe Text)
- describeTemplatePermissionsResponse_permissions :: Lens' DescribeTemplatePermissionsResponse (Maybe (NonEmpty ResourcePermission))
- describeTemplatePermissionsResponse_status :: Lens' DescribeTemplatePermissionsResponse Int
Creating a Request
data DescribeTemplatePermissions Source #
See: newDescribeTemplatePermissions
smart constructor.
DescribeTemplatePermissions' | |
|
Instances
newDescribeTemplatePermissions Source #
:: Text | |
-> Text | |
-> DescribeTemplatePermissions |
Create a value of DescribeTemplatePermissions
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:awsAccountId:DescribeTemplatePermissions'
, describeTemplatePermissions_awsAccountId
- The ID of the Amazon Web Services account that contains the template
that you're describing.
$sel:templateId:DescribeTemplatePermissions'
, describeTemplatePermissions_templateId
- The ID for the template.
Request Lenses
describeTemplatePermissions_awsAccountId :: Lens' DescribeTemplatePermissions Text Source #
The ID of the Amazon Web Services account that contains the template that you're describing.
describeTemplatePermissions_templateId :: Lens' DescribeTemplatePermissions Text Source #
The ID for the template.
Destructuring the Response
data DescribeTemplatePermissionsResponse Source #
See: newDescribeTemplatePermissionsResponse
smart constructor.
DescribeTemplatePermissionsResponse' | |
|
Instances
newDescribeTemplatePermissionsResponse Source #
Create a value of DescribeTemplatePermissionsResponse
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:requestId:DescribeTemplatePermissionsResponse'
, describeTemplatePermissionsResponse_requestId
- The Amazon Web Services request ID for this operation.
$sel:templateId:DescribeTemplatePermissions'
, describeTemplatePermissionsResponse_templateId
- The ID for the template.
$sel:templateArn:DescribeTemplatePermissionsResponse'
, describeTemplatePermissionsResponse_templateArn
- The Amazon Resource Name (ARN) of the template.
$sel:permissions:DescribeTemplatePermissionsResponse'
, describeTemplatePermissionsResponse_permissions
- A list of resource permissions to be set on the template.
$sel:status:DescribeTemplatePermissionsResponse'
, describeTemplatePermissionsResponse_status
- The HTTP status of the request.
Response Lenses
describeTemplatePermissionsResponse_requestId :: Lens' DescribeTemplatePermissionsResponse (Maybe Text) Source #
The Amazon Web Services request ID for this operation.
describeTemplatePermissionsResponse_templateId :: Lens' DescribeTemplatePermissionsResponse (Maybe Text) Source #
The ID for the template.
describeTemplatePermissionsResponse_templateArn :: Lens' DescribeTemplatePermissionsResponse (Maybe Text) Source #
The Amazon Resource Name (ARN) of the template.
describeTemplatePermissionsResponse_permissions :: Lens' DescribeTemplatePermissionsResponse (Maybe (NonEmpty ResourcePermission)) Source #
A list of resource permissions to be set on the template.
describeTemplatePermissionsResponse_status :: Lens' DescribeTemplatePermissionsResponse Int Source #
The HTTP status of the request.