import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AccessAnalyzerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AccessAnalyzerClient"; import type { GetAccessPreviewRequest, GetAccessPreviewResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetAccessPreviewCommand}. */ export interface GetAccessPreviewCommandInput extends GetAccessPreviewRequest { } /** * @public * * The output of {@link GetAccessPreviewCommand}. */ export interface GetAccessPreviewCommandOutput extends GetAccessPreviewResponse, __MetadataBearer { } declare const GetAccessPreviewCommand_base: { new (input: GetAccessPreviewCommandInput): import("@smithy/core/client").CommandImpl; new (input: GetAccessPreviewCommandInput): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieves information about an access preview for the specified analyzer.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { AccessAnalyzerClient, GetAccessPreviewCommand } from "@aws-sdk/client-accessanalyzer"; // ES Modules import * // const { AccessAnalyzerClient, GetAccessPreviewCommand } = require("@aws-sdk/client-accessanalyzer"); // CommonJS import * // import type { AccessAnalyzerClientConfig } from "@aws-sdk/client-accessanalyzer"; * const config = {}; // type is AccessAnalyzerClientConfig * const client = new AccessAnalyzerClient(config); * const input = { // GetAccessPreviewRequest * accessPreviewId: "STRING_VALUE", // required * analyzerArn: "STRING_VALUE", // required * }; * const command = new GetAccessPreviewCommand(input); * const response = await client.send(command); * // { // GetAccessPreviewResponse * // accessPreview: { // AccessPreview * // id: "STRING_VALUE", // required * // analyzerArn: "STRING_VALUE", // required * // configurations: { // ConfigurationsMap // required * // "": { // Configuration Union: only one key present * // ebsSnapshot: { // EbsSnapshotConfiguration * // userIds: [ // EbsUserIdList * // "STRING_VALUE", * // ], * // groups: [ // EbsGroupList * // "STRING_VALUE", * // ], * // kmsKeyId: "STRING_VALUE", * // }, * // ecrRepository: { // EcrRepositoryConfiguration * // repositoryPolicy: "STRING_VALUE", * // }, * // iamRole: { // IamRoleConfiguration * // trustPolicy: "STRING_VALUE", * // }, * // efsFileSystem: { // EfsFileSystemConfiguration * // fileSystemPolicy: "STRING_VALUE", * // }, * // kmsKey: { // KmsKeyConfiguration * // keyPolicies: { // KmsKeyPoliciesMap * // "": "STRING_VALUE", * // }, * // grants: [ // KmsGrantConfigurationsList * // { // KmsGrantConfiguration * // operations: [ // KmsGrantOperationsList // required * // "STRING_VALUE", * // ], * // granteePrincipal: "STRING_VALUE", // required * // retiringPrincipal: "STRING_VALUE", * // constraints: { // KmsGrantConstraints * // encryptionContextEquals: { // KmsConstraintsMap * // "": "STRING_VALUE", * // }, * // encryptionContextSubset: { * // "": "STRING_VALUE", * // }, * // }, * // issuingAccount: "STRING_VALUE", // required * // }, * // ], * // }, * // rdsDbClusterSnapshot: { // RdsDbClusterSnapshotConfiguration * // attributes: { // RdsDbClusterSnapshotAttributesMap * // "": { // RdsDbClusterSnapshotAttributeValue Union: only one key present * // accountIds: [ // RdsDbClusterSnapshotAccountIdsList * // "STRING_VALUE", * // ], * // }, * // }, * // kmsKeyId: "STRING_VALUE", * // }, * // rdsDbSnapshot: { // RdsDbSnapshotConfiguration * // attributes: { // RdsDbSnapshotAttributesMap * // "": { // RdsDbSnapshotAttributeValue Union: only one key present * // accountIds: [ // RdsDbSnapshotAccountIdsList * // "STRING_VALUE", * // ], * // }, * // }, * // kmsKeyId: "STRING_VALUE", * // }, * // secretsManagerSecret: { // SecretsManagerSecretConfiguration * // kmsKeyId: "STRING_VALUE", * // secretPolicy: "STRING_VALUE", * // }, * // s3Bucket: { // S3BucketConfiguration * // bucketPolicy: "STRING_VALUE", * // bucketAclGrants: [ // S3BucketAclGrantConfigurationsList * // { // S3BucketAclGrantConfiguration * // permission: "STRING_VALUE", // required * // grantee: { // AclGrantee Union: only one key present * // id: "STRING_VALUE", * // uri: "STRING_VALUE", * // }, * // }, * // ], * // bucketPublicAccessBlock: { // S3PublicAccessBlockConfiguration * // ignorePublicAcls: true || false, // required * // restrictPublicBuckets: true || false, // required * // }, * // accessPoints: { // S3AccessPointConfigurationsMap * // "": { // S3AccessPointConfiguration * // accessPointPolicy: "STRING_VALUE", * // publicAccessBlock: { * // ignorePublicAcls: true || false, // required * // restrictPublicBuckets: true || false, // required * // }, * // networkOrigin: { // NetworkOriginConfiguration Union: only one key present * // vpcConfiguration: { // VpcConfiguration * // vpcId: "STRING_VALUE", // required * // }, * // internetConfiguration: {}, * // }, * // }, * // }, * // }, * // snsTopic: { // SnsTopicConfiguration * // topicPolicy: "STRING_VALUE", * // }, * // sqsQueue: { // SqsQueueConfiguration * // queuePolicy: "STRING_VALUE", * // }, * // s3ExpressDirectoryBucket: { // S3ExpressDirectoryBucketConfiguration * // bucketPolicy: "STRING_VALUE", * // accessPoints: { // S3ExpressDirectoryAccessPointConfigurationsMap * // "": { // S3ExpressDirectoryAccessPointConfiguration * // accessPointPolicy: "STRING_VALUE", * // networkOrigin: {// Union: only one key present * // vpcConfiguration: { * // vpcId: "STRING_VALUE", // required * // }, * // internetConfiguration: {}, * // }, * // }, * // }, * // }, * // dynamodbStream: { // DynamodbStreamConfiguration * // streamPolicy: "STRING_VALUE", * // }, * // dynamodbTable: { // DynamodbTableConfiguration * // tablePolicy: "STRING_VALUE", * // }, * // }, * // }, * // createdAt: new Date("TIMESTAMP"), // required * // status: "STRING_VALUE", // required * // statusReason: { // AccessPreviewStatusReason * // code: "STRING_VALUE", // required * // }, * // }, * // }; * * ``` * * @param GetAccessPreviewCommandInput - {@link GetAccessPreviewCommandInput} * @returns {@link GetAccessPreviewCommandOutput} * @see {@link GetAccessPreviewCommandInput} for command's `input` shape. * @see {@link GetAccessPreviewCommandOutput} for command's `response` shape. * @see {@link AccessAnalyzerClientResolvedConfig | config} for AccessAnalyzerClient's `config` shape. * * @throws {@link AccessDeniedException} (client fault) *

You do not have sufficient access to perform this action.

* * @throws {@link InternalServerException} (server fault) *

Internal server error.

* * @throws {@link ResourceNotFoundException} (client fault) *

The specified resource could not be found.

* * @throws {@link ThrottlingException} (client fault) *

Throttling limit exceeded error.

* * @throws {@link ValidationException} (client fault) *

Validation exception error.

* * @throws {@link AccessAnalyzerServiceException} *

Base exception class for all service exceptions from AccessAnalyzer service.

* * * @public */ export declare class GetAccessPreviewCommand extends GetAccessPreviewCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetAccessPreviewRequest; output: GetAccessPreviewResponse; }; sdk: { input: GetAccessPreviewCommandInput; output: GetAccessPreviewCommandOutput; }; }; }