Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Sets the access control policy on the specified Source.
See: Cloud Security Command Center API Reference for securitycenter.organizations.sources.setIamPolicy
.
Synopsis
- type OrganizationsSourcesSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy))))))))
- organizationsSourcesSetIAMPolicy :: SetIAMPolicyRequest -> Text -> OrganizationsSourcesSetIAMPolicy
- data OrganizationsSourcesSetIAMPolicy
- ossipXgafv :: Lens' OrganizationsSourcesSetIAMPolicy (Maybe Xgafv)
- ossipUploadProtocol :: Lens' OrganizationsSourcesSetIAMPolicy (Maybe Text)
- ossipAccessToken :: Lens' OrganizationsSourcesSetIAMPolicy (Maybe Text)
- ossipUploadType :: Lens' OrganizationsSourcesSetIAMPolicy (Maybe Text)
- ossipPayload :: Lens' OrganizationsSourcesSetIAMPolicy SetIAMPolicyRequest
- ossipResource :: Lens' OrganizationsSourcesSetIAMPolicy Text
- ossipCallback :: Lens' OrganizationsSourcesSetIAMPolicy (Maybe Text)
REST Resource
type OrganizationsSourcesSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #
A resource alias for securitycenter.organizations.sources.setIamPolicy
method which the
OrganizationsSourcesSetIAMPolicy
request conforms to.
Creating a Request
organizationsSourcesSetIAMPolicy Source #
Creates a value of OrganizationsSourcesSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsSourcesSetIAMPolicy Source #
Sets the access control policy on the specified Source.
See: organizationsSourcesSetIAMPolicy
smart constructor.
Instances
Request Lenses
ossipXgafv :: Lens' OrganizationsSourcesSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
ossipUploadProtocol :: Lens' OrganizationsSourcesSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ossipAccessToken :: Lens' OrganizationsSourcesSetIAMPolicy (Maybe Text) Source #
OAuth access token.
ossipUploadType :: Lens' OrganizationsSourcesSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ossipPayload :: Lens' OrganizationsSourcesSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
ossipResource :: Lens' OrganizationsSourcesSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.