UNPKG

@pulumi/aws

Version:

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

69 lines 2.61 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.AdminAccount = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Provides a resource to associate/disassociate an AWS Firewall Manager administrator account. This operation must be performed in the `us-east-1` region. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.fms.AdminAccount("example", {}); * ``` * * ## Import * * Using `pulumi import`, import Firewall Manager administrator account association using the account ID. For example: * * ```sh * $ pulumi import aws:fms/adminAccount:AdminAccount example 123456789012 * ``` */ class AdminAccount extends pulumi.CustomResource { /** * Get an existing AdminAccount 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 AdminAccount(name, state, { ...opts, id: id }); } /** * Returns true if the given object is an instance of AdminAccount. 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'] === AdminAccount.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; resourceInputs["accountId"] = state?.accountId; } else { const args = argsOrState; resourceInputs["accountId"] = args?.accountId; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(AdminAccount.__pulumiType, name, resourceInputs, opts); } } exports.AdminAccount = AdminAccount; /** @internal */ AdminAccount.__pulumiType = 'aws:fms/adminAccount:AdminAccount'; //# sourceMappingURL=adminAccount.js.map