GetAccountSettingsCommand

Get the account settings for Artifact.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { ArtifactClient, GetAccountSettingsCommand } from "@aws-sdk/client-artifact"; // ES Modules import
// const { ArtifactClient, GetAccountSettingsCommand } = require("@aws-sdk/client-artifact"); // CommonJS import
const client = new ArtifactClient(config);
const input = {};
const command = new GetAccountSettingsCommand(input);
const response = await client.send(command);
// { // GetAccountSettingsResponse
//   accountSettings: { // AccountSettings
//     notificationSubscriptionStatus: "SUBSCRIBED" || "NOT_SUBSCRIBED",
//   },
// };

Example Usage

 Loading code editorLoading code editor

GetAccountSettingsCommand Input

See GetAccountSettingsCommandInput for more details
GetAccountSettingsCommandInput extends GetAccountSettingsRequest 

GetAccountSettingsCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
accountSettings
AccountSettings | undefined

Account settings for the customer.

Throws

Name
Fault
Details
AccessDeniedException
client

User does not have sufficient access to perform this action.

ConflictException
client

Request to create/modify content would result in a conflict.

InternalServerException
server

An unknown server exception has occurred.

ResourceNotFoundException
client

Request references a resource which does not exist.

ServiceQuotaExceededException
client

Request would cause a service quota to be exceeded.

ThrottlingException
client

Request was denied due to request throttling.

ValidationException
client

Request fails to satisfy the constraints specified by an AWS service.

ArtifactServiceException
Base exception class for all service exceptions from Artifact service.