Package com.pulumi.openstack.identity
Class Ec2CredentialV3
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.openstack.identity.Ec2CredentialV3
-
public class Ec2CredentialV3 extends com.pulumi.resources.CustomResourceManages a V3 EC2 Credential resource within OpenStack Keystone. EC2 credentials in OpenStack are used to access S3 compatible Swift/RadosGW endpoints or to authenticate against Keystone. > **Note:** All arguments including the EC2 credential access key and secret will be stored in the raw state as plain-text. Read more about sensitive data in state. ## Example Usage ### EC2 credential in current project scope ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.identity.Ec2CredentialV3; 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 ec2Key1 = new Ec2CredentialV3("ec2Key1"); } } ``` ### EC2 credential in pre-defined project scope This allows administrative users to create EC2 credentials for a scope different from the current auth scope. ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.openstack.identity.Ec2CredentialV3; import com.pulumi.openstack.identity.Ec2CredentialV3Args; 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 ec2Key1 = new Ec2CredentialV3("ec2Key1", Ec2CredentialV3Args.builder() .projectId("f7ac731cc11f40efbc03a9f9e1d1d21f") .build()); } } ``` ## Import EC2 Credentials can be imported using the `access`, e.g. ```sh $ pulumi import openstack:identity/ec2CredentialV3:Ec2CredentialV3 ec2_cred_1 2d0ac4a2f81b4b0f9513ee49e780647d ```
-
-
Constructor Summary
Constructors Constructor Description Ec2CredentialV3(java.lang.String name)Ec2CredentialV3(java.lang.String name, Ec2CredentialV3Args args)Ec2CredentialV3(java.lang.String name, Ec2CredentialV3Args args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>access()static Ec2CredentialV3get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, Ec2CredentialV3State 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>projectId()com.pulumi.core.Output<java.lang.String>region()com.pulumi.core.Output<java.lang.String>secret()com.pulumi.core.Output<java.lang.String>trustId()com.pulumi.core.Output<java.lang.String>userId()
-
-
-
Constructor Detail
-
Ec2CredentialV3
public Ec2CredentialV3(java.lang.String name)
- Parameters:
name- The _unique_ name of the resulting resource.
-
Ec2CredentialV3
public Ec2CredentialV3(java.lang.String name, @Nullable Ec2CredentialV3Args args)- Parameters:
name- The _unique_ name of the resulting resource.args- The arguments to use to populate this resource's properties.
-
Ec2CredentialV3
public Ec2CredentialV3(java.lang.String name, @Nullable Ec2CredentialV3Args 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
-
access
public com.pulumi.core.Output<java.lang.String> access()
- Returns:
- contains an EC2 credential access UUID
-
projectId
public com.pulumi.core.Output<java.lang.String> projectId()
- Returns:
- The ID of the project the EC2 credential is created for and that authentication requests using this EC2 credential will be scoped to. Only administrative users can specify a project ID different from the current auth scope.
-
region
public com.pulumi.core.Output<java.lang.String> region()
- Returns:
- The region in which to obtain the V3 Keystone client. If omitted, the `region` argument of the provider is used. Changing this creates a new EC2 credential.
-
secret
public com.pulumi.core.Output<java.lang.String> secret()
- Returns:
- contains an EC2 credential secret UUID
-
trustId
public com.pulumi.core.Output<java.lang.String> trustId()
- Returns:
- contains an EC2 credential trust ID scope
-
userId
public com.pulumi.core.Output<java.lang.String> userId()
- Returns:
- The ID of the user the EC2 credential is created for. Only administrative users can specify a user ID different from the current auth scope.
-
get
public static Ec2CredentialV3 get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable Ec2CredentialV3State 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.
-
-