Resource Share
Manages a Resource Access Manager (RAM) Resource Share. To associate principals with the share, see the aws.ram.PrincipalAssociation
resource. To associate resources with the share, see the aws.ram.ResourceAssociation
resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ram.ResourceShare;
import com.pulumi.aws.ram.ResourceShareArgs;
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 ResourceShare("example", ResourceShareArgs.builder()
.allowExternalPrincipals(true)
.tags(Map.of("Environment", "Production"))
.build());
}
}
Content copied to clipboard
Import
Resource shares can be imported using the arn
of the resource share, e.g.,
$ pulumi import aws:ram/resourceShare:ResourceShare example arn:aws:ram:eu-west-1:123456789012:resource-share/73da1ab9-b94a-4ba3-8eb4-45917f7f4b12
Content copied to clipboard
Properties
Link copied to clipboard
Indicates whether principals outside your organization can be associated with a resource share.
Link copied to clipboard
Specifies the Amazon Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard