All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.ram.SharingWithOrganization Maven / Gradle / Ivy

Go to download

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

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.ram;

import com.pulumi.aws.Utilities;
import com.pulumi.aws.ram.SharingWithOrganizationArgs;
import com.pulumi.aws.ram.inputs.SharingWithOrganizationState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import javax.annotation.Nullable;

/**
 * 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 `aws_service_access_principals`.
 * 
 * ## Example Usage
 * 
 * <!--Start PulumiCodeChooser -->
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.ram.SharingWithOrganization;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var example = new SharingWithOrganization("example");
 * 
 *     }
 * }
 * }
 * 
* <!--End PulumiCodeChooser --> * * ## Import * * Using `pulumi import`, import the resource using the current AWS account ID. For example: * * ```sh * $ pulumi import aws:ram/sharingWithOrganization:SharingWithOrganization example 123456789012 * ``` * */ @ResourceType(type="aws:ram/sharingWithOrganization:SharingWithOrganization") public class SharingWithOrganization extends com.pulumi.resources.CustomResource { /** * * @param name The _unique_ name of the resulting resource. */ public SharingWithOrganization(java.lang.String name) { this(name, SharingWithOrganizationArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public SharingWithOrganization(java.lang.String name, @Nullable SharingWithOrganizationArgs args) { this(name, args, null); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. * @param options A bag of options that control this resource's behavior. */ public SharingWithOrganization(java.lang.String name, @Nullable SharingWithOrganizationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:ram/sharingWithOrganization:SharingWithOrganization", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private SharingWithOrganization(java.lang.String name, Output id, @Nullable SharingWithOrganizationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("aws:ram/sharingWithOrganization:SharingWithOrganization", name, state, makeResourceOptions(options, id), false); } private static SharingWithOrganizationArgs makeArgs(@Nullable SharingWithOrganizationArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? SharingWithOrganizationArgs.Empty : args; } private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) { var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder() .version(Utilities.getVersion()) .build(); return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id); } /** * Get an existing Host 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 * @param options Optional settings to control the behavior of the CustomResource. */ public static SharingWithOrganization get(java.lang.String name, Output id, @Nullable SharingWithOrganizationState state, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new SharingWithOrganization(name, id, state, options); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy