| 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.CodeBuild.PutResourcePolicy
Description
Stores a resource policy for the ARN of a Project or ReportGroup
object.
Synopsis
- data PutResourcePolicy = PutResourcePolicy' {
- policy :: Text
- resourceArn :: Text
- newPutResourcePolicy :: Text -> Text -> PutResourcePolicy
- putResourcePolicy_policy :: Lens' PutResourcePolicy Text
- putResourcePolicy_resourceArn :: Lens' PutResourcePolicy Text
- data PutResourcePolicyResponse = PutResourcePolicyResponse' {
- resourceArn :: Maybe Text
- httpStatus :: Int
- newPutResourcePolicyResponse :: Int -> PutResourcePolicyResponse
- putResourcePolicyResponse_resourceArn :: Lens' PutResourcePolicyResponse (Maybe Text)
- putResourcePolicyResponse_httpStatus :: Lens' PutResourcePolicyResponse Int
Creating a Request
data PutResourcePolicy Source #
See: newPutResourcePolicy smart constructor.
Constructors
| PutResourcePolicy' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> PutResourcePolicy |
Create a value of PutResourcePolicy 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:PutResourcePolicy', putResourcePolicy_policy - A JSON-formatted resource policy. For more information, see
Sharing a Project
and
Sharing a Report Group
in the CodeBuild User Guide.
PutResourcePolicy, putResourcePolicy_resourceArn - The ARN of the Project or ReportGroup resource you want to associate
with a resource policy.
Request Lenses
putResourcePolicy_policy :: Lens' PutResourcePolicy Text Source #
A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.
putResourcePolicy_resourceArn :: Lens' PutResourcePolicy Text Source #
The ARN of the Project or ReportGroup resource you want to associate
with a resource policy.
Destructuring the Response
data PutResourcePolicyResponse Source #
See: newPutResourcePolicyResponse smart constructor.
Constructors
| PutResourcePolicyResponse' | |
Fields
| |
Instances
newPutResourcePolicyResponse Source #
Create a value of PutResourcePolicyResponse 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:
PutResourcePolicy, putResourcePolicyResponse_resourceArn - The ARN of the Project or ReportGroup resource that is associated
with a resource policy.
$sel:httpStatus:PutResourcePolicyResponse', putResourcePolicyResponse_httpStatus - The response's http status code.
Response Lenses
putResourcePolicyResponse_resourceArn :: Lens' PutResourcePolicyResponse (Maybe Text) Source #
The ARN of the Project or ReportGroup resource that is associated
with a resource policy.
putResourcePolicyResponse_httpStatus :: Lens' PutResourcePolicyResponse Int Source #
The response's http status code.