Package com.pulumi.aws.lakeformation
Class OptIn
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.aws.lakeformation.OptIn
-
public class OptIn extends com.pulumi.resources.CustomResourceResource for managing an AWS Lake Formation Opt In. ## Example Usage ### Basic Usagepackage generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.aws.lakeformation.OptIn; import com.pulumi.aws.lakeformation.OptInArgs; import com.pulumi.aws.lakeformation.inputs.OptInPrincipalArgs; import com.pulumi.aws.lakeformation.inputs.OptInResourceDataArgs; import com.pulumi.aws.lakeformation.inputs.OptInResourceDataDatabaseArgs; import java.util.ArrayList; import java.util.Arrays; 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 OptIn("example", OptInArgs.builder() .principals(OptInPrincipalArgs.builder() .dataLakePrincipalIdentifier(exampleAwsIamRole.arn()) .build()) .resourceDatas(OptInResourceDataArgs.builder() .database(OptInResourceDataDatabaseArgs.builder() .name(exampleAwsGlueCatalogDatabase.name()) .catalogId(current.accountId()) .build()) .build()) .build()); } }
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.util.List<OptInCondition>>>conditions()static OptInget(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, OptInState state, com.pulumi.resources.CustomResourceOptions options)Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>lastModified()com.pulumi.core.Output<java.lang.String>lastUpdatedBy()com.pulumi.core.Output<java.util.List<OptInPrincipal>>principals()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.util.Optional<java.util.List<OptInResourceData>>>resourceDatas()
-
-
-
Constructor Detail
-
OptIn
public OptIn(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
OptIn
public OptIn(java.lang.String name, OptInArgs args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
OptIn
public OptIn(java.lang.String name, OptInArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.options- A bag of options that control this resource's behavior.
-
-
Method Detail
-
conditions
public com.pulumi.core.Output<java.util.Optional<java.util.List<OptInCondition>>> conditions()
- Returns:
- Lake Formation condition, which applies to permissions and opt-ins that contain an expression. See `condition` Block for more details.
-
lastModified
public com.pulumi.core.Output<java.lang.String> lastModified()
- Returns:
- Last modified date and time of the record.
-
lastUpdatedBy
public com.pulumi.core.Output<java.lang.String> lastUpdatedBy()
- Returns:
- User who updated the record.
-
principals
public com.pulumi.core.Output<java.util.List<OptInPrincipal>> principals()
- Returns:
- Lake Formation principal. Supported principals are IAM users or IAM roles. See `principal` Block for more details.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
-
resourceDatas
public com.pulumi.core.Output<java.util.Optional<java.util.List<OptInResourceData>>> resourceDatas()
- Returns:
- Structure for the resource. See `resourceData` Block for more details.
-
get
public static OptIn get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable OptInState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name- The _unique_ name of the resulting resource.id- The _unique_ provider ID of the resource to lookup.state-options- Optional settings to control the behavior of the CustomResource.
-
-