UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

103 lines 4.17 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.VectorsVectorBucket = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Resource for managing an Amazon S3 Vectors Vector Bucket. * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.s3.VectorsVectorBucket("example", {vectorBucketName: "example-bucket"}); * ``` * * ### Encryption * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.s3.VectorsVectorBucket("example", { * vectorBucketName: "example-bucket", * encryptionConfigurations: [{ * sseType: "aws:kms", * kmsKeyArn: exampleAwsKmsKey.arn, * }], * }); * ``` * * ## Import * * Using `pulumi import`, import S3 Vectors Vector Bucket using the `vector_bucket_arn`. For example: * * ```sh * $ pulumi import aws:s3/vectorsVectorBucket:VectorsVectorBucket example arn:aws:s3vectors:us-west-2:123456789012:bucket/example-bucket * ``` */ class VectorsVectorBucket extends pulumi.CustomResource { /** * Get an existing VectorsVectorBucket resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, state, opts) { return new VectorsVectorBucket(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of VectorsVectorBucket. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj) { if (obj === undefined || obj === null) { return false; } return obj['__pulumiType'] === VectorsVectorBucket.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["creationTime"] = state?.creationTime; resourceInputs["encryptionConfigurations"] = state?.encryptionConfigurations; resourceInputs["forceDestroy"] = state?.forceDestroy; resourceInputs["region"] = state?.region; resourceInputs["tags"] = state?.tags; resourceInputs["tagsAll"] = state?.tagsAll; resourceInputs["vectorBucketArn"] = state?.vectorBucketArn; resourceInputs["vectorBucketName"] = state?.vectorBucketName; } else { const args = argsOrState; if (args?.vectorBucketName === undefined && !opts.urn) { throw new Error("Missing required property 'vectorBucketName'"); } resourceInputs["encryptionConfigurations"] = args?.encryptionConfigurations; resourceInputs["forceDestroy"] = args?.forceDestroy; resourceInputs["region"] = args?.region; resourceInputs["tags"] = args?.tags; resourceInputs["vectorBucketName"] = args?.vectorBucketName; resourceInputs["creationTime"] = undefined /*out*/; resourceInputs["tagsAll"] = undefined /*out*/; resourceInputs["vectorBucketArn"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(VectorsVectorBucket.__pulumiType, name, resourceInputs, opts); } } exports.VectorsVectorBucket = VectorsVectorBucket; /** @internal */ VectorsVectorBucket.__pulumiType = 'aws:s3/vectorsVectorBucket:VectorsVectorBucket'; //# sourceMappingURL=vectorsVectorBucket.js.map