Resource Share Args
data class ResourceShareArgs(val allowExternalPrincipals: Output<Boolean>? = null, val name: Output<String>? = null, val permissionArns: Output<List<String>>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ResourceShareArgs>
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
Using pulumi import
, import resource shares using the arn
of the resource share. For example:
$ 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
Constructors
Functions
Properties
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.