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 |
Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.
See: Stackdriver Logging API Reference for logging.folders.sinks.create
.
Synopsis
- type FoldersSinksCreateResource = "v2" :> (Capture "parent" Text :> ("sinks" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "uniqueWriterIdentity" Bool :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogSink :> Post '[JSON] LogSink))))))))))
- foldersSinksCreate :: Text -> LogSink -> FoldersSinksCreate
- data FoldersSinksCreate
- fscParent :: Lens' FoldersSinksCreate Text
- fscXgafv :: Lens' FoldersSinksCreate (Maybe Xgafv)
- fscUniqueWriterIdentity :: Lens' FoldersSinksCreate (Maybe Bool)
- fscUploadProtocol :: Lens' FoldersSinksCreate (Maybe Text)
- fscAccessToken :: Lens' FoldersSinksCreate (Maybe Text)
- fscUploadType :: Lens' FoldersSinksCreate (Maybe Text)
- fscPayload :: Lens' FoldersSinksCreate LogSink
- fscCallback :: Lens' FoldersSinksCreate (Maybe Text)
REST Resource
type FoldersSinksCreateResource = "v2" :> (Capture "parent" Text :> ("sinks" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "uniqueWriterIdentity" Bool :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] LogSink :> Post '[JSON] LogSink)))))))))) Source #
A resource alias for logging.folders.sinks.create
method which the
FoldersSinksCreate
request conforms to.
Creating a Request
Creates a value of FoldersSinksCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FoldersSinksCreate Source #
Creates a sink that exports specified log entries to a destination. The export of newly-ingested log entries begins immediately, unless the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.
See: foldersSinksCreate
smart constructor.
Instances
Request Lenses
fscParent :: Lens' FoldersSinksCreate Text Source #
Required. The resource in which to create the sink: "projects/[PROJECT_ID]" "organizations/[ORGANIZATION_ID]" "billingAccounts/[BILLING_ACCOUNT_ID]" "folders/[FOLDER_ID]" Examples: "projects/my-logging-project", "organizations/123456789".
fscUniqueWriterIdentity :: Lens' FoldersSinksCreate (Maybe Bool) Source #
Optional. Determines the kind of IAM identity returned as writer_identity in the new sink. If this value is omitted or set to false, and if the sink's parent is a project, then the value returned as writer_identity is the same group or service account used by Logging before the addition of writer identities to this API. The sink's destination must be in the same project as the sink itself.If this field is set to true, or if the sink is owned by a non-project resource such as an organization, then the value of writer_identity will be a unique service account used only for exports from the new sink. For more information, see writer_identity in LogSink.
fscUploadProtocol :: Lens' FoldersSinksCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
fscAccessToken :: Lens' FoldersSinksCreate (Maybe Text) Source #
OAuth access token.
fscUploadType :: Lens' FoldersSinksCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
fscPayload :: Lens' FoldersSinksCreate LogSink Source #
Multipart request metadata.
fscCallback :: Lens' FoldersSinksCreate (Maybe Text) Source #
JSONP