amazonka-connect-2.0: Amazon Connect 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.Connect.CreateHoursOfOperation

Description

This API is in preview release for Amazon Connect and is subject to change.

Creates hours of operation.

Synopsis

Creating a Request

data CreateHoursOfOperation Source #

See: newCreateHoursOfOperation smart constructor.

Constructors

CreateHoursOfOperation' 

Fields

  • description :: Maybe Text

    The description of the hours of operation.

  • tags :: Maybe (HashMap Text Text)

    The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

  • instanceId :: Text

    The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

  • name :: Text

    The name of the hours of operation.

  • timeZone :: Text

    The time zone of the hours of operation.

  • config :: [HoursOfOperationConfig]

    Configuration information for the hours of operation: day, start time, and end time.

Instances

Instances details
ToJSON CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

ToHeaders CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

ToPath CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

ToQuery CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

AWSRequest CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

Associated Types

type AWSResponse CreateHoursOfOperation #

Generic CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

Associated Types

type Rep CreateHoursOfOperation :: Type -> Type #

Read CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

Show CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

NFData CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

Methods

rnf :: CreateHoursOfOperation -> () #

Eq CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

Hashable CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

type AWSResponse CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

type Rep CreateHoursOfOperation Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

type Rep CreateHoursOfOperation = D1 ('MetaData "CreateHoursOfOperation" "Amazonka.Connect.CreateHoursOfOperation" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "CreateHoursOfOperation'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "instanceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "timeZone") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "config") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [HoursOfOperationConfig])))))

newCreateHoursOfOperation Source #

Create a value of CreateHoursOfOperation 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:

CreateHoursOfOperation, createHoursOfOperation_description - The description of the hours of operation.

CreateHoursOfOperation, createHoursOfOperation_tags - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

CreateHoursOfOperation, createHoursOfOperation_instanceId - The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

CreateHoursOfOperation, createHoursOfOperation_name - The name of the hours of operation.

CreateHoursOfOperation, createHoursOfOperation_timeZone - The time zone of the hours of operation.

CreateHoursOfOperation, createHoursOfOperation_config - Configuration information for the hours of operation: day, start time, and end time.

Request Lenses

createHoursOfOperation_description :: Lens' CreateHoursOfOperation (Maybe Text) Source #

The description of the hours of operation.

createHoursOfOperation_tags :: Lens' CreateHoursOfOperation (Maybe (HashMap Text Text)) Source #

The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

createHoursOfOperation_instanceId :: Lens' CreateHoursOfOperation Text Source #

The identifier of the Amazon Connect instance. You can find the instanceId in the ARN of the instance.

createHoursOfOperation_timeZone :: Lens' CreateHoursOfOperation Text Source #

The time zone of the hours of operation.

createHoursOfOperation_config :: Lens' CreateHoursOfOperation [HoursOfOperationConfig] Source #

Configuration information for the hours of operation: day, start time, and end time.

Destructuring the Response

data CreateHoursOfOperationResponse Source #

See: newCreateHoursOfOperationResponse smart constructor.

Constructors

CreateHoursOfOperationResponse' 

Fields

Instances

Instances details
Generic CreateHoursOfOperationResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

Associated Types

type Rep CreateHoursOfOperationResponse :: Type -> Type #

Read CreateHoursOfOperationResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

Show CreateHoursOfOperationResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

NFData CreateHoursOfOperationResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

Eq CreateHoursOfOperationResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

type Rep CreateHoursOfOperationResponse Source # 
Instance details

Defined in Amazonka.Connect.CreateHoursOfOperation

type Rep CreateHoursOfOperationResponse = D1 ('MetaData "CreateHoursOfOperationResponse" "Amazonka.Connect.CreateHoursOfOperation" "amazonka-connect-2.0-IAACrecRcUS5AABe9BOFyN" 'False) (C1 ('MetaCons "CreateHoursOfOperationResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "hoursOfOperationArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "hoursOfOperationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateHoursOfOperationResponse Source #

Create a value of CreateHoursOfOperationResponse 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:

CreateHoursOfOperationResponse, createHoursOfOperationResponse_hoursOfOperationArn - The Amazon Resource Name (ARN) for the hours of operation.

CreateHoursOfOperationResponse, createHoursOfOperationResponse_hoursOfOperationId - The identifier for the hours of operation.

$sel:httpStatus:CreateHoursOfOperationResponse', createHoursOfOperationResponse_httpStatus - The response's http status code.

Response Lenses

createHoursOfOperationResponse_hoursOfOperationArn :: Lens' CreateHoursOfOperationResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) for the hours of operation.