amazonka-amp-2.0: Amazon Prometheus Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.AMP.CreateLoggingConfiguration

Description

Create logging configuration.

Synopsis

Creating a Request

data CreateLoggingConfiguration Source #

Represents the input of a CreateLoggingConfiguration operation.

See: newCreateLoggingConfiguration smart constructor.

Constructors

CreateLoggingConfiguration' 

Fields

  • clientToken :: Maybe Text

    Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.

  • logGroupArn :: Text

    The ARN of the CW log group to which the vended log data will be published.

  • workspaceId :: Text

    The ID of the workspace to vend logs to.

Instances

Instances details
ToJSON CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

ToHeaders CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

ToPath CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

ToQuery CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

AWSRequest CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

Generic CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

Associated Types

type Rep CreateLoggingConfiguration :: Type -> Type #

Read CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

Show CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

NFData CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

Eq CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

Hashable CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

type AWSResponse CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

type Rep CreateLoggingConfiguration Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

type Rep CreateLoggingConfiguration = D1 ('MetaData "CreateLoggingConfiguration" "Amazonka.AMP.CreateLoggingConfiguration" "amazonka-amp-2.0-5Nt9wsU74T2I91dslthaby" 'False) (C1 ('MetaCons "CreateLoggingConfiguration'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "logGroupArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "workspaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateLoggingConfiguration Source #

Create a value of CreateLoggingConfiguration 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:clientToken:CreateLoggingConfiguration', createLoggingConfiguration_clientToken - Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.

CreateLoggingConfiguration, createLoggingConfiguration_logGroupArn - The ARN of the CW log group to which the vended log data will be published.

CreateLoggingConfiguration, createLoggingConfiguration_workspaceId - The ID of the workspace to vend logs to.

Request Lenses

createLoggingConfiguration_clientToken :: Lens' CreateLoggingConfiguration (Maybe Text) Source #

Optional, unique, case-sensitive, user-provided identifier to ensure the idempotency of the request.

createLoggingConfiguration_logGroupArn :: Lens' CreateLoggingConfiguration Text Source #

The ARN of the CW log group to which the vended log data will be published.

Destructuring the Response

data CreateLoggingConfigurationResponse Source #

Represents the output of a CreateLoggingConfiguration operation.

See: newCreateLoggingConfigurationResponse smart constructor.

Constructors

CreateLoggingConfigurationResponse' 

Fields

Instances

Instances details
Generic CreateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

Associated Types

type Rep CreateLoggingConfigurationResponse :: Type -> Type #

Read CreateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

Show CreateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

NFData CreateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

Eq CreateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

type Rep CreateLoggingConfigurationResponse Source # 
Instance details

Defined in Amazonka.AMP.CreateLoggingConfiguration

type Rep CreateLoggingConfigurationResponse = D1 ('MetaData "CreateLoggingConfigurationResponse" "Amazonka.AMP.CreateLoggingConfiguration" "amazonka-amp-2.0-5Nt9wsU74T2I91dslthaby" 'False) (C1 ('MetaCons "CreateLoggingConfigurationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 LoggingConfigurationStatus)))

newCreateLoggingConfigurationResponse Source #

Create a value of CreateLoggingConfigurationResponse 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:httpStatus:CreateLoggingConfigurationResponse', createLoggingConfigurationResponse_httpStatus - The response's http status code.

CreateLoggingConfigurationResponse, createLoggingConfigurationResponse_status - The status of the logging configuration.

Response Lenses