amazonka-support-app-2.0: Amazon Support App 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.SupportApp.UpdateSlackChannelConfiguration

Description

Updates the configuration for a Slack channel, such as case update notifications.

Synopsis

Creating a Request

data UpdateSlackChannelConfiguration Source #

See: newUpdateSlackChannelConfiguration smart constructor.

Constructors

UpdateSlackChannelConfiguration' 

Fields

  • channelName :: Maybe Text

    The Slack channel name that you want to update.

  • channelRoleArn :: Maybe Text

    The Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations on Amazon Web Services. For more information, see Managing access to the Amazon Web Services Support App in the Amazon Web Services Support User Guide.

  • notifyOnAddCorrespondenceToCase :: Maybe Bool

    Whether you want to get notified when a support case has a new correspondence.

  • notifyOnCaseSeverity :: Maybe NotificationSeverityLevel

    The case severity for a support case that you want to receive notifications.

    If you specify high or all, at least one of the following parameters must be true:

    • notifyOnAddCorrespondenceToCase
    • notifyOnCreateOrReopenCase
    • notifyOnResolveCase

    If you specify none, any of the following parameters that you specify in your request must be false:

    • notifyOnAddCorrespondenceToCase
    • notifyOnCreateOrReopenCase
    • notifyOnResolveCase

    If you don't specify these parameters in your request, the Amazon Web Services Support App uses the current values by default.

  • notifyOnCreateOrReopenCase :: Maybe Bool

    Whether you want to get notified when a support case is created or reopened.

  • notifyOnResolveCase :: Maybe Bool

    Whether you want to get notified when a support case is resolved.

  • channelId :: Text

    The channel ID in Slack. This ID identifies a channel within a Slack workspace.

  • teamId :: Text

    The team ID in Slack. This ID uniquely identifies a Slack workspace, such as T012ABCDEFG.

Instances

Instances details
ToJSON UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

ToHeaders UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

ToPath UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

ToQuery UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

AWSRequest UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

Generic UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

Associated Types

type Rep UpdateSlackChannelConfiguration :: Type -> Type #

Read UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

Show UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

NFData UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

Eq UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

Hashable UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

type AWSResponse UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

type Rep UpdateSlackChannelConfiguration Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

type Rep UpdateSlackChannelConfiguration = D1 ('MetaData "UpdateSlackChannelConfiguration" "Amazonka.SupportApp.UpdateSlackChannelConfiguration" "amazonka-support-app-2.0-K70l4Z7c1tk36e2ucvecLC" 'False) (C1 ('MetaCons "UpdateSlackChannelConfiguration'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "channelName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "channelRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "notifyOnAddCorrespondenceToCase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "notifyOnCaseSeverity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NotificationSeverityLevel)))) :*: ((S1 ('MetaSel ('Just "notifyOnCreateOrReopenCase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "notifyOnResolveCase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "channelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "teamId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

newUpdateSlackChannelConfiguration Source #

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

UpdateSlackChannelConfiguration, updateSlackChannelConfiguration_channelName - The Slack channel name that you want to update.

UpdateSlackChannelConfiguration, updateSlackChannelConfiguration_channelRoleArn - The Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations on Amazon Web Services. For more information, see Managing access to the Amazon Web Services Support App in the Amazon Web Services Support User Guide.

UpdateSlackChannelConfiguration, updateSlackChannelConfiguration_notifyOnAddCorrespondenceToCase - Whether you want to get notified when a support case has a new correspondence.

UpdateSlackChannelConfiguration, updateSlackChannelConfiguration_notifyOnCaseSeverity - The case severity for a support case that you want to receive notifications.

If you specify high or all, at least one of the following parameters must be true:

  • notifyOnAddCorrespondenceToCase
  • notifyOnCreateOrReopenCase
  • notifyOnResolveCase

If you specify none, any of the following parameters that you specify in your request must be false:

  • notifyOnAddCorrespondenceToCase
  • notifyOnCreateOrReopenCase
  • notifyOnResolveCase

If you don't specify these parameters in your request, the Amazon Web Services Support App uses the current values by default.

UpdateSlackChannelConfiguration, updateSlackChannelConfiguration_notifyOnCreateOrReopenCase - Whether you want to get notified when a support case is created or reopened.

UpdateSlackChannelConfiguration, updateSlackChannelConfiguration_notifyOnResolveCase - Whether you want to get notified when a support case is resolved.

UpdateSlackChannelConfiguration, updateSlackChannelConfiguration_channelId - The channel ID in Slack. This ID identifies a channel within a Slack workspace.

UpdateSlackChannelConfiguration, updateSlackChannelConfiguration_teamId - The team ID in Slack. This ID uniquely identifies a Slack workspace, such as T012ABCDEFG.

Request Lenses

updateSlackChannelConfiguration_channelRoleArn :: Lens' UpdateSlackChannelConfiguration (Maybe Text) Source #

The Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations on Amazon Web Services. For more information, see Managing access to the Amazon Web Services Support App in the Amazon Web Services Support User Guide.

updateSlackChannelConfiguration_notifyOnAddCorrespondenceToCase :: Lens' UpdateSlackChannelConfiguration (Maybe Bool) Source #

Whether you want to get notified when a support case has a new correspondence.

updateSlackChannelConfiguration_notifyOnCaseSeverity :: Lens' UpdateSlackChannelConfiguration (Maybe NotificationSeverityLevel) Source #

The case severity for a support case that you want to receive notifications.

If you specify high or all, at least one of the following parameters must be true:

  • notifyOnAddCorrespondenceToCase
  • notifyOnCreateOrReopenCase
  • notifyOnResolveCase

If you specify none, any of the following parameters that you specify in your request must be false:

  • notifyOnAddCorrespondenceToCase
  • notifyOnCreateOrReopenCase
  • notifyOnResolveCase

If you don't specify these parameters in your request, the Amazon Web Services Support App uses the current values by default.

updateSlackChannelConfiguration_notifyOnCreateOrReopenCase :: Lens' UpdateSlackChannelConfiguration (Maybe Bool) Source #

Whether you want to get notified when a support case is created or reopened.

updateSlackChannelConfiguration_notifyOnResolveCase :: Lens' UpdateSlackChannelConfiguration (Maybe Bool) Source #

Whether you want to get notified when a support case is resolved.

updateSlackChannelConfiguration_channelId :: Lens' UpdateSlackChannelConfiguration Text Source #

The channel ID in Slack. This ID identifies a channel within a Slack workspace.

updateSlackChannelConfiguration_teamId :: Lens' UpdateSlackChannelConfiguration Text Source #

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as T012ABCDEFG.

Destructuring the Response

data UpdateSlackChannelConfigurationResponse Source #

Constructors

UpdateSlackChannelConfigurationResponse' 

Fields

Instances

Instances details
Generic UpdateSlackChannelConfigurationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

Read UpdateSlackChannelConfigurationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

Show UpdateSlackChannelConfigurationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

NFData UpdateSlackChannelConfigurationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

Eq UpdateSlackChannelConfigurationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

type Rep UpdateSlackChannelConfigurationResponse Source # 
Instance details

Defined in Amazonka.SupportApp.UpdateSlackChannelConfiguration

type Rep UpdateSlackChannelConfigurationResponse = D1 ('MetaData "UpdateSlackChannelConfigurationResponse" "Amazonka.SupportApp.UpdateSlackChannelConfiguration" "amazonka-support-app-2.0-K70l4Z7c1tk36e2ucvecLC" 'False) (C1 ('MetaCons "UpdateSlackChannelConfigurationResponse'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "channelId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "channelName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "channelRoleArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "notifyOnAddCorrespondenceToCase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "notifyOnCaseSeverity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe NotificationSeverityLevel)) :*: S1 ('MetaSel ('Just "notifyOnCreateOrReopenCase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool))) :*: (S1 ('MetaSel ('Just "notifyOnResolveCase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "teamId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))))

newUpdateSlackChannelConfigurationResponse Source #

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

UpdateSlackChannelConfiguration, updateSlackChannelConfigurationResponse_channelId - The channel ID in Slack. This ID identifies a channel within a Slack workspace.

UpdateSlackChannelConfiguration, updateSlackChannelConfigurationResponse_channelName - The name of the Slack channel that you configure for the Amazon Web Services Support App.

UpdateSlackChannelConfiguration, updateSlackChannelConfigurationResponse_channelRoleArn - The Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations on Amazon Web Services. For more information, see Managing access to the Amazon Web Services Support App in the Amazon Web Services Support User Guide.

UpdateSlackChannelConfiguration, updateSlackChannelConfigurationResponse_notifyOnAddCorrespondenceToCase - Whether you want to get notified when a support case has a new correspondence.

UpdateSlackChannelConfiguration, updateSlackChannelConfigurationResponse_notifyOnCaseSeverity - The case severity for a support case that you want to receive notifications.

UpdateSlackChannelConfiguration, updateSlackChannelConfigurationResponse_notifyOnCreateOrReopenCase - Whether you want to get notified when a support case is created or reopened.

UpdateSlackChannelConfiguration, updateSlackChannelConfigurationResponse_notifyOnResolveCase - Whether you want to get notified when a support case is resolved.

UpdateSlackChannelConfiguration, updateSlackChannelConfigurationResponse_teamId - The team ID in Slack. This ID uniquely identifies a Slack workspace, such as T012ABCDEFG.

$sel:httpStatus:UpdateSlackChannelConfigurationResponse', updateSlackChannelConfigurationResponse_httpStatus - The response's http status code.

Response Lenses

updateSlackChannelConfigurationResponse_channelId :: Lens' UpdateSlackChannelConfigurationResponse (Maybe Text) Source #

The channel ID in Slack. This ID identifies a channel within a Slack workspace.

updateSlackChannelConfigurationResponse_channelName :: Lens' UpdateSlackChannelConfigurationResponse (Maybe Text) Source #

The name of the Slack channel that you configure for the Amazon Web Services Support App.

updateSlackChannelConfigurationResponse_channelRoleArn :: Lens' UpdateSlackChannelConfigurationResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of an IAM role that you want to use to perform operations on Amazon Web Services. For more information, see Managing access to the Amazon Web Services Support App in the Amazon Web Services Support User Guide.

updateSlackChannelConfigurationResponse_notifyOnAddCorrespondenceToCase :: Lens' UpdateSlackChannelConfigurationResponse (Maybe Bool) Source #

Whether you want to get notified when a support case has a new correspondence.

updateSlackChannelConfigurationResponse_notifyOnCreateOrReopenCase :: Lens' UpdateSlackChannelConfigurationResponse (Maybe Bool) Source #

Whether you want to get notified when a support case is created or reopened.

updateSlackChannelConfigurationResponse_teamId :: Lens' UpdateSlackChannelConfigurationResponse (Maybe Text) Source #

The team ID in Slack. This ID uniquely identifies a Slack workspace, such as T012ABCDEFG.