Documentation
¶
Index ¶
- type GeneratedScopedAccessToken
- func (*GeneratedScopedAccessToken) ElementType() reflect.Type
- func (i *GeneratedScopedAccessToken) ToGeneratedScopedAccessTokenOutput() GeneratedScopedAccessTokenOutput
- func (i *GeneratedScopedAccessToken) ToGeneratedScopedAccessTokenOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenOutput
- type GeneratedScopedAccessTokenArgs
- type GeneratedScopedAccessTokenArray
- func (GeneratedScopedAccessTokenArray) ElementType() reflect.Type
- func (i GeneratedScopedAccessTokenArray) ToGeneratedScopedAccessTokenArrayOutput() GeneratedScopedAccessTokenArrayOutput
- func (i GeneratedScopedAccessTokenArray) ToGeneratedScopedAccessTokenArrayOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenArrayOutput
- type GeneratedScopedAccessTokenArrayInput
- type GeneratedScopedAccessTokenArrayOutput
- func (GeneratedScopedAccessTokenArrayOutput) ElementType() reflect.Type
- func (o GeneratedScopedAccessTokenArrayOutput) Index(i pulumi.IntInput) GeneratedScopedAccessTokenOutput
- func (o GeneratedScopedAccessTokenArrayOutput) ToGeneratedScopedAccessTokenArrayOutput() GeneratedScopedAccessTokenArrayOutput
- func (o GeneratedScopedAccessTokenArrayOutput) ToGeneratedScopedAccessTokenArrayOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenArrayOutput
- type GeneratedScopedAccessTokenInput
- type GeneratedScopedAccessTokenMap
- func (GeneratedScopedAccessTokenMap) ElementType() reflect.Type
- func (i GeneratedScopedAccessTokenMap) ToGeneratedScopedAccessTokenMapOutput() GeneratedScopedAccessTokenMapOutput
- func (i GeneratedScopedAccessTokenMap) ToGeneratedScopedAccessTokenMapOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenMapOutput
- type GeneratedScopedAccessTokenMapInput
- type GeneratedScopedAccessTokenMapOutput
- func (GeneratedScopedAccessTokenMapOutput) ElementType() reflect.Type
- func (o GeneratedScopedAccessTokenMapOutput) MapIndex(k pulumi.StringInput) GeneratedScopedAccessTokenOutput
- func (o GeneratedScopedAccessTokenMapOutput) ToGeneratedScopedAccessTokenMapOutput() GeneratedScopedAccessTokenMapOutput
- func (o GeneratedScopedAccessTokenMapOutput) ToGeneratedScopedAccessTokenMapOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenMapOutput
- type GeneratedScopedAccessTokenOutput
- func (GeneratedScopedAccessTokenOutput) ElementType() reflect.Type
- func (o GeneratedScopedAccessTokenOutput) PublicKey() pulumi.StringOutput
- func (o GeneratedScopedAccessTokenOutput) Scope() pulumi.StringOutput
- func (o GeneratedScopedAccessTokenOutput) ToGeneratedScopedAccessTokenOutput() GeneratedScopedAccessTokenOutput
- func (o GeneratedScopedAccessTokenOutput) ToGeneratedScopedAccessTokenOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenOutput
- func (o GeneratedScopedAccessTokenOutput) Token() pulumi.StringOutput
- type GeneratedScopedAccessTokenState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GeneratedScopedAccessToken ¶
type GeneratedScopedAccessToken struct { pulumi.CustomResourceState // 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. PublicKey pulumi.StringOutput `pulumi:"publicKey"` // 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 Scope pulumi.StringOutput `pulumi:"scope"` // The security token, signed by auth service Token pulumi.StringOutput `pulumi:"token"` }
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
```go package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/IdentityDataPlane" "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() { pulumi.Run(func(ctx *pulumi.Context) error { _, err := IdentityDataPlane.NewGeneratedScopedAccessToken(ctx, "test_generate_scoped_access_token", &IdentityDataPlane.GeneratedScopedAccessTokenArgs{ PublicKey: pulumi.Any(generateScopedAccessTokenPublicKey), Scope: pulumi.Any(generateScopedAccessTokenScope), }) if err != nil { return err } return nil }) }
```
## Import
GenerateScopedAccessToken can be imported using the `id`, e.g.
```sh $ pulumi import oci:IdentityDataPlane/generatedScopedAccessToken:GeneratedScopedAccessToken test_generate_scoped_access_token "id" ```
func GetGeneratedScopedAccessToken ¶
func GetGeneratedScopedAccessToken(ctx *pulumi.Context, name string, id pulumi.IDInput, state *GeneratedScopedAccessTokenState, opts ...pulumi.ResourceOption) (*GeneratedScopedAccessToken, error)
GetGeneratedScopedAccessToken gets an existing GeneratedScopedAccessToken resource's state with the given name, ID, and optional state properties that are used to uniquely qualify the lookup (nil if not required).
func NewGeneratedScopedAccessToken ¶
func NewGeneratedScopedAccessToken(ctx *pulumi.Context, name string, args *GeneratedScopedAccessTokenArgs, opts ...pulumi.ResourceOption) (*GeneratedScopedAccessToken, error)
NewGeneratedScopedAccessToken registers a new resource with the given unique name, arguments, and options.
func (*GeneratedScopedAccessToken) ElementType ¶
func (*GeneratedScopedAccessToken) ElementType() reflect.Type
func (*GeneratedScopedAccessToken) ToGeneratedScopedAccessTokenOutput ¶
func (i *GeneratedScopedAccessToken) ToGeneratedScopedAccessTokenOutput() GeneratedScopedAccessTokenOutput
func (*GeneratedScopedAccessToken) ToGeneratedScopedAccessTokenOutputWithContext ¶
func (i *GeneratedScopedAccessToken) ToGeneratedScopedAccessTokenOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenOutput
type GeneratedScopedAccessTokenArgs ¶
type GeneratedScopedAccessTokenArgs struct { // 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. PublicKey pulumi.StringInput // 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 Scope pulumi.StringInput }
The set of arguments for constructing a GeneratedScopedAccessToken resource.
func (GeneratedScopedAccessTokenArgs) ElementType ¶
func (GeneratedScopedAccessTokenArgs) ElementType() reflect.Type
type GeneratedScopedAccessTokenArray ¶
type GeneratedScopedAccessTokenArray []GeneratedScopedAccessTokenInput
func (GeneratedScopedAccessTokenArray) ElementType ¶
func (GeneratedScopedAccessTokenArray) ElementType() reflect.Type
func (GeneratedScopedAccessTokenArray) ToGeneratedScopedAccessTokenArrayOutput ¶
func (i GeneratedScopedAccessTokenArray) ToGeneratedScopedAccessTokenArrayOutput() GeneratedScopedAccessTokenArrayOutput
func (GeneratedScopedAccessTokenArray) ToGeneratedScopedAccessTokenArrayOutputWithContext ¶
func (i GeneratedScopedAccessTokenArray) ToGeneratedScopedAccessTokenArrayOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenArrayOutput
type GeneratedScopedAccessTokenArrayInput ¶
type GeneratedScopedAccessTokenArrayInput interface { pulumi.Input ToGeneratedScopedAccessTokenArrayOutput() GeneratedScopedAccessTokenArrayOutput ToGeneratedScopedAccessTokenArrayOutputWithContext(context.Context) GeneratedScopedAccessTokenArrayOutput }
GeneratedScopedAccessTokenArrayInput is an input type that accepts GeneratedScopedAccessTokenArray and GeneratedScopedAccessTokenArrayOutput values. You can construct a concrete instance of `GeneratedScopedAccessTokenArrayInput` via:
GeneratedScopedAccessTokenArray{ GeneratedScopedAccessTokenArgs{...} }
type GeneratedScopedAccessTokenArrayOutput ¶
type GeneratedScopedAccessTokenArrayOutput struct{ *pulumi.OutputState }
func (GeneratedScopedAccessTokenArrayOutput) ElementType ¶
func (GeneratedScopedAccessTokenArrayOutput) ElementType() reflect.Type
func (GeneratedScopedAccessTokenArrayOutput) Index ¶
func (o GeneratedScopedAccessTokenArrayOutput) Index(i pulumi.IntInput) GeneratedScopedAccessTokenOutput
func (GeneratedScopedAccessTokenArrayOutput) ToGeneratedScopedAccessTokenArrayOutput ¶
func (o GeneratedScopedAccessTokenArrayOutput) ToGeneratedScopedAccessTokenArrayOutput() GeneratedScopedAccessTokenArrayOutput
func (GeneratedScopedAccessTokenArrayOutput) ToGeneratedScopedAccessTokenArrayOutputWithContext ¶
func (o GeneratedScopedAccessTokenArrayOutput) ToGeneratedScopedAccessTokenArrayOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenArrayOutput
type GeneratedScopedAccessTokenInput ¶
type GeneratedScopedAccessTokenInput interface { pulumi.Input ToGeneratedScopedAccessTokenOutput() GeneratedScopedAccessTokenOutput ToGeneratedScopedAccessTokenOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenOutput }
type GeneratedScopedAccessTokenMap ¶
type GeneratedScopedAccessTokenMap map[string]GeneratedScopedAccessTokenInput
func (GeneratedScopedAccessTokenMap) ElementType ¶
func (GeneratedScopedAccessTokenMap) ElementType() reflect.Type
func (GeneratedScopedAccessTokenMap) ToGeneratedScopedAccessTokenMapOutput ¶
func (i GeneratedScopedAccessTokenMap) ToGeneratedScopedAccessTokenMapOutput() GeneratedScopedAccessTokenMapOutput
func (GeneratedScopedAccessTokenMap) ToGeneratedScopedAccessTokenMapOutputWithContext ¶
func (i GeneratedScopedAccessTokenMap) ToGeneratedScopedAccessTokenMapOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenMapOutput
type GeneratedScopedAccessTokenMapInput ¶
type GeneratedScopedAccessTokenMapInput interface { pulumi.Input ToGeneratedScopedAccessTokenMapOutput() GeneratedScopedAccessTokenMapOutput ToGeneratedScopedAccessTokenMapOutputWithContext(context.Context) GeneratedScopedAccessTokenMapOutput }
GeneratedScopedAccessTokenMapInput is an input type that accepts GeneratedScopedAccessTokenMap and GeneratedScopedAccessTokenMapOutput values. You can construct a concrete instance of `GeneratedScopedAccessTokenMapInput` via:
GeneratedScopedAccessTokenMap{ "key": GeneratedScopedAccessTokenArgs{...} }
type GeneratedScopedAccessTokenMapOutput ¶
type GeneratedScopedAccessTokenMapOutput struct{ *pulumi.OutputState }
func (GeneratedScopedAccessTokenMapOutput) ElementType ¶
func (GeneratedScopedAccessTokenMapOutput) ElementType() reflect.Type
func (GeneratedScopedAccessTokenMapOutput) MapIndex ¶
func (o GeneratedScopedAccessTokenMapOutput) MapIndex(k pulumi.StringInput) GeneratedScopedAccessTokenOutput
func (GeneratedScopedAccessTokenMapOutput) ToGeneratedScopedAccessTokenMapOutput ¶
func (o GeneratedScopedAccessTokenMapOutput) ToGeneratedScopedAccessTokenMapOutput() GeneratedScopedAccessTokenMapOutput
func (GeneratedScopedAccessTokenMapOutput) ToGeneratedScopedAccessTokenMapOutputWithContext ¶
func (o GeneratedScopedAccessTokenMapOutput) ToGeneratedScopedAccessTokenMapOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenMapOutput
type GeneratedScopedAccessTokenOutput ¶
type GeneratedScopedAccessTokenOutput struct{ *pulumi.OutputState }
func (GeneratedScopedAccessTokenOutput) ElementType ¶
func (GeneratedScopedAccessTokenOutput) ElementType() reflect.Type
func (GeneratedScopedAccessTokenOutput) PublicKey ¶
func (o GeneratedScopedAccessTokenOutput) PublicKey() pulumi.StringOutput
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.
func (GeneratedScopedAccessTokenOutput) Scope ¶
func (o GeneratedScopedAccessTokenOutput) Scope() pulumi.StringOutput
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
func (GeneratedScopedAccessTokenOutput) ToGeneratedScopedAccessTokenOutput ¶
func (o GeneratedScopedAccessTokenOutput) ToGeneratedScopedAccessTokenOutput() GeneratedScopedAccessTokenOutput
func (GeneratedScopedAccessTokenOutput) ToGeneratedScopedAccessTokenOutputWithContext ¶
func (o GeneratedScopedAccessTokenOutput) ToGeneratedScopedAccessTokenOutputWithContext(ctx context.Context) GeneratedScopedAccessTokenOutput
func (GeneratedScopedAccessTokenOutput) Token ¶
func (o GeneratedScopedAccessTokenOutput) Token() pulumi.StringOutput
The security token, signed by auth service
type GeneratedScopedAccessTokenState ¶
type GeneratedScopedAccessTokenState struct { // 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. PublicKey pulumi.StringPtrInput // 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 Scope pulumi.StringPtrInput // The security token, signed by auth service Token pulumi.StringPtrInput }
func (GeneratedScopedAccessTokenState) ElementType ¶
func (GeneratedScopedAccessTokenState) ElementType() reflect.Type