1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. IdentityDataPlane
  5. GeneratedScopedAccessToken
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

oci.IdentityDataPlane.GeneratedScopedAccessToken

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi

    This resource provides the Generate Scoped Access Token resource in Oracle Cloud Infrastructure Identity Data Plane service.

    Based on the calling principal and the input payload, derive the claims and create a security token.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testGenerateScopedAccessToken = new oci.identitydataplane.GeneratedScopedAccessToken("testGenerateScopedAccessToken", {
        publicKey: _var.generate_scoped_access_token_public_key,
        scope: _var.generate_scoped_access_token_scope,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_generate_scoped_access_token = oci.identity_data_plane.GeneratedScopedAccessToken("testGenerateScopedAccessToken",
        public_key=var["generate_scoped_access_token_public_key"],
        scope=var["generate_scoped_access_token_scope"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/IdentityDataPlane"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := IdentityDataPlane.NewGeneratedScopedAccessToken(ctx, "testGenerateScopedAccessToken", &IdentityDataPlane.GeneratedScopedAccessTokenArgs{
    			PublicKey: pulumi.Any(_var.Generate_scoped_access_token_public_key),
    			Scope:     pulumi.Any(_var.Generate_scoped_access_token_scope),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testGenerateScopedAccessToken = new Oci.IdentityDataPlane.GeneratedScopedAccessToken("testGenerateScopedAccessToken", new()
        {
            PublicKey = @var.Generate_scoped_access_token_public_key,
            Scope = @var.Generate_scoped_access_token_scope,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.IdentityDataPlane.GeneratedScopedAccessToken;
    import com.pulumi.oci.IdentityDataPlane.GeneratedScopedAccessTokenArgs;
    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 testGenerateScopedAccessToken = new GeneratedScopedAccessToken("testGenerateScopedAccessToken", GeneratedScopedAccessTokenArgs.builder()        
                .publicKey(var_.generate_scoped_access_token_public_key())
                .scope(var_.generate_scoped_access_token_scope())
                .build());
    
        }
    }
    
    resources:
      testGenerateScopedAccessToken:
        type: oci:IdentityDataPlane:GeneratedScopedAccessToken
        properties:
          #Required
          publicKey: ${var.generate_scoped_access_token_public_key}
          scope: ${var.generate_scoped_access_token_scope}
    

    Create GeneratedScopedAccessToken Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new GeneratedScopedAccessToken(name: string, args: GeneratedScopedAccessTokenArgs, opts?: CustomResourceOptions);
    @overload
    def GeneratedScopedAccessToken(resource_name: str,
                                   args: GeneratedScopedAccessTokenArgs,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def GeneratedScopedAccessToken(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   public_key: Optional[str] = None,
                                   scope: Optional[str] = None)
    func NewGeneratedScopedAccessToken(ctx *Context, name string, args GeneratedScopedAccessTokenArgs, opts ...ResourceOption) (*GeneratedScopedAccessToken, error)
    public GeneratedScopedAccessToken(string name, GeneratedScopedAccessTokenArgs args, CustomResourceOptions? opts = null)
    public GeneratedScopedAccessToken(String name, GeneratedScopedAccessTokenArgs args)
    public GeneratedScopedAccessToken(String name, GeneratedScopedAccessTokenArgs args, CustomResourceOptions options)
    
    type: oci:IdentityDataPlane:GeneratedScopedAccessToken
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args GeneratedScopedAccessTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args GeneratedScopedAccessTokenArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args GeneratedScopedAccessTokenArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args GeneratedScopedAccessTokenArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args GeneratedScopedAccessTokenArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var generatedScopedAccessTokenResource = new Oci.IdentityDataPlane.GeneratedScopedAccessToken("generatedScopedAccessTokenResource", new()
    {
        PublicKey = "string",
        Scope = "string",
    });
    
    example, err := IdentityDataPlane.NewGeneratedScopedAccessToken(ctx, "generatedScopedAccessTokenResource", &IdentityDataPlane.GeneratedScopedAccessTokenArgs{
    	PublicKey: pulumi.String("string"),
    	Scope:     pulumi.String("string"),
    })
    
    var generatedScopedAccessTokenResource = new GeneratedScopedAccessToken("generatedScopedAccessTokenResource", GeneratedScopedAccessTokenArgs.builder()        
        .publicKey("string")
        .scope("string")
        .build());
    
    generated_scoped_access_token_resource = oci.identity_data_plane.GeneratedScopedAccessToken("generatedScopedAccessTokenResource",
        public_key="string",
        scope="string")
    
    const generatedScopedAccessTokenResource = new oci.identitydataplane.GeneratedScopedAccessToken("generatedScopedAccessTokenResource", {
        publicKey: "string",
        scope: "string",
    });
    
    type: oci:IdentityDataPlane:GeneratedScopedAccessToken
    properties:
        publicKey: string
        scope: string
    

    GeneratedScopedAccessToken Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The GeneratedScopedAccessToken resource accepts the following input properties:

    PublicKey string
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    Scope string

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    PublicKey string
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    Scope string

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    publicKey String
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    scope String

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    publicKey string
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    scope string

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    public_key str
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    scope str

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    publicKey String
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    scope String

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Outputs

    All input properties are implicitly available as output properties. Additionally, the GeneratedScopedAccessToken resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The security token, signed by auth service
    Id string
    The provider-assigned unique ID for this managed resource.
    Token string
    The security token, signed by auth service
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The security token, signed by auth service
    id string
    The provider-assigned unique ID for this managed resource.
    token string
    The security token, signed by auth service
    id str
    The provider-assigned unique ID for this managed resource.
    token str
    The security token, signed by auth service
    id String
    The provider-assigned unique ID for this managed resource.
    token String
    The security token, signed by auth service

    Look up Existing GeneratedScopedAccessToken Resource

    Get an existing GeneratedScopedAccessToken resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: GeneratedScopedAccessTokenState, opts?: CustomResourceOptions): GeneratedScopedAccessToken
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            public_key: Optional[str] = None,
            scope: Optional[str] = None,
            token: Optional[str] = None) -> GeneratedScopedAccessToken
    func GetGeneratedScopedAccessToken(ctx *Context, name string, id IDInput, state *GeneratedScopedAccessTokenState, opts ...ResourceOption) (*GeneratedScopedAccessToken, error)
    public static GeneratedScopedAccessToken Get(string name, Input<string> id, GeneratedScopedAccessTokenState? state, CustomResourceOptions? opts = null)
    public static GeneratedScopedAccessToken get(String name, Output<String> id, GeneratedScopedAccessTokenState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    PublicKey string
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    Scope string

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Token string
    The security token, signed by auth service
    PublicKey string
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    Scope string

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    Token string
    The security token, signed by auth service
    publicKey String
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    scope String

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    token String
    The security token, signed by auth service
    publicKey string
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    scope string

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    token string
    The security token, signed by auth service
    public_key str
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    scope str

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    token str
    The security token, signed by auth service
    publicKey String
    A temporary public key, owned by the service. The service also owns the corresponding private key. This public key will by put inside the security token by the auth service after successful validation of the certificate.
    scope String

    Scope definition for the scoped access token

    ** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

    token String
    The security token, signed by auth service

    Import

    GenerateScopedAccessToken can be imported using the id, e.g.

    $ pulumi import oci:IdentityDataPlane/generatedScopedAccessToken:GeneratedScopedAccessToken test_generate_scoped_access_token "id"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.32.0 published on Thursday, Apr 18, 2024 by Pulumi