UNPKG

@pulumi/aws-native

Version:

The Pulumi AWS Cloud Control Provider enables you to build, deploy, and manage [any AWS resource that's supported by the AWS Cloud Control API](https://github.com/pulumi/pulumi-aws-native/blob/master/provider/cmd/pulumi-gen-aws-native/supported-types.txt)

68 lines 3.82 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.DelegatedAdmin = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * The ``AWS::SecurityHub::DelegatedAdmin`` resource designates the delegated ASHlong administrator account for an organization. You must enable the integration between ASH and AOlong before you can designate a delegated ASH administrator. Only the management account for an organization can designate the delegated ASH administrator account. For more information, see [Designating the delegated administrator](https://docs.aws.amazon.com/securityhub/latest/userguide/designate-orgs-admin-account.html#designate-admin-instructions) in the *User Guide*. * To change the delegated administrator account, remove the current delegated administrator account, and then designate the new account. * To designate multiple delegated administrators in different organizations and AWS-Regions, we recommend using [mappings](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/mappings-section-structure.html). * Tags aren't supported for this resource. */ class DelegatedAdmin extends pulumi.CustomResource { /** * Get an existing DelegatedAdmin 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 opts Optional settings to control the behavior of the CustomResource. */ static get(name, id, opts) { return new DelegatedAdmin(name, undefined, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of DelegatedAdmin. 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'] === DelegatedAdmin.__pulumiType; } /** * Create a DelegatedAdmin resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name, args, opts) { let resourceInputs = {}; opts = opts || {}; if (!opts.id) { if ((!args || args.adminAccountId === undefined) && !opts.urn) { throw new Error("Missing required property 'adminAccountId'"); } resourceInputs["adminAccountId"] = args ? args.adminAccountId : undefined; resourceInputs["delegatedAdminIdentifier"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; } else { resourceInputs["adminAccountId"] = undefined /*out*/; resourceInputs["delegatedAdminIdentifier"] = undefined /*out*/; resourceInputs["status"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); const replaceOnChanges = { replaceOnChanges: ["adminAccountId"] }; opts = pulumi.mergeOptions(opts, replaceOnChanges); super(DelegatedAdmin.__pulumiType, name, resourceInputs, opts); } } exports.DelegatedAdmin = DelegatedAdmin; /** @internal */ DelegatedAdmin.__pulumiType = 'aws-native:securityhub:DelegatedAdmin'; //# sourceMappingURL=delegatedAdmin.js.map