UNPKG

@pulumi/aws

Version:

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

69 lines 3.07 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.SharingWithOrganization = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Manages Resource Access Manager (RAM) Resource Sharing with AWS Organizations. If you enable sharing with your organization, you can share resources without using invitations. Refer to the [AWS RAM user guide](https://docs.aws.amazon.com/ram/latest/userguide/getting-started-sharing.html#getting-started-sharing-orgs) for more details. * * > **NOTE:** Use this resource to manage resource sharing within your organization, **not** the `aws.organizations.Organization` resource with `ram.amazonaws.com` configured in `awsServiceAccessPrincipals`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = new aws.ram.SharingWithOrganization("example", {}); * ``` * * ## Import * * Using `pulumi import`, import the resource using the current AWS account ID. For example: * * ```sh * $ pulumi import aws:ram/sharingWithOrganization:SharingWithOrganization example 123456789012 * ``` */ class SharingWithOrganization extends pulumi.CustomResource { /** * Get an existing SharingWithOrganization 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 SharingWithOrganization(name, state, Object.assign(Object.assign({}, opts), { id: id })); } /** * Returns true if the given object is an instance of SharingWithOrganization. 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'] === SharingWithOrganization.__pulumiType; } constructor(name, argsOrState, opts) { let resourceInputs = {}; opts = opts || {}; if (opts.id) { const state = argsOrState; } else { const args = argsOrState; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(SharingWithOrganization.__pulumiType, name, resourceInputs, opts); } } exports.SharingWithOrganization = SharingWithOrganization; /** @internal */ SharingWithOrganization.__pulumiType = 'aws:ram/sharingWithOrganization:SharingWithOrganization'; //# sourceMappingURL=sharingWithOrganization.js.map