flexibleengine.IdentityRoleV3
Explore with Pulumi AI
custom role management in FlexibleEngine
Example Usage
Role
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const role = new flexibleengine.IdentityRoleV3("role", {
description: "created by terraform",
policy: `{
"Version": "1.1",
"Statement": [
{
"Action": [
"obs:bucket:GetBucketAcl"
],
"Effect": "Allow",
"Resource": [
"obs:*:*:bucket:*"
],
"Condition": {
"StringStartWith": {
"g:ProjectName": [
"eu-west-0"
]
}
}
}
]
}
`,
type: "AX",
});
import pulumi
import pulumi_flexibleengine as flexibleengine
role = flexibleengine.IdentityRoleV3("role",
description="created by terraform",
policy="""{
"Version": "1.1",
"Statement": [
{
"Action": [
"obs:bucket:GetBucketAcl"
],
"Effect": "Allow",
"Resource": [
"obs:*:*:bucket:*"
],
"Condition": {
"StringStartWith": {
"g:ProjectName": [
"eu-west-0"
]
}
}
}
]
}
""",
type="AX")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := flexibleengine.NewIdentityRoleV3(ctx, "role", &flexibleengine.IdentityRoleV3Args{
Description: pulumi.String("created by terraform"),
Policy: pulumi.String(`{
"Version": "1.1",
"Statement": [
{
"Action": [
"obs:bucket:GetBucketAcl"
],
"Effect": "Allow",
"Resource": [
"obs:*:*:bucket:*"
],
"Condition": {
"StringStartWith": {
"g:ProjectName": [
"eu-west-0"
]
}
}
}
]
}
`),
Type: pulumi.String("AX"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var role = new Flexibleengine.IdentityRoleV3("role", new()
{
Description = "created by terraform",
Policy = @"{
""Version"": ""1.1"",
""Statement"": [
{
""Action"": [
""obs:bucket:GetBucketAcl""
],
""Effect"": ""Allow"",
""Resource"": [
""obs:*:*:bucket:*""
],
""Condition"": {
""StringStartWith"": {
""g:ProjectName"": [
""eu-west-0""
]
}
}
}
]
}
",
Type = "AX",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.IdentityRoleV3;
import com.pulumi.flexibleengine.IdentityRoleV3Args;
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 role = new IdentityRoleV3("role", IdentityRoleV3Args.builder()
.description("created by terraform")
.policy("""
{
"Version": "1.1",
"Statement": [
{
"Action": [
"obs:bucket:GetBucketAcl"
],
"Effect": "Allow",
"Resource": [
"obs:*:*:bucket:*"
],
"Condition": {
"StringStartWith": {
"g:ProjectName": [
"eu-west-0"
]
}
}
}
]
}
""")
.type("AX")
.build());
}
}
resources:
role:
type: flexibleengine:IdentityRoleV3
properties:
description: created by terraform
policy: |+
{
"Version": "1.1",
"Statement": [
{
"Action": [
"obs:bucket:GetBucketAcl"
],
"Effect": "Allow",
"Resource": [
"obs:*:*:bucket:*"
],
"Condition": {
"StringStartWith": {
"g:ProjectName": [
"eu-west-0"
]
}
}
}
]
}
type: AX
Create IdentityRoleV3 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityRoleV3(name: string, args: IdentityRoleV3Args, opts?: CustomResourceOptions);
@overload
def IdentityRoleV3(resource_name: str,
args: IdentityRoleV3Args,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityRoleV3(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
policy: Optional[str] = None,
type: Optional[str] = None,
identity_role_v3_id: Optional[str] = None,
name: Optional[str] = None)
func NewIdentityRoleV3(ctx *Context, name string, args IdentityRoleV3Args, opts ...ResourceOption) (*IdentityRoleV3, error)
public IdentityRoleV3(string name, IdentityRoleV3Args args, CustomResourceOptions? opts = null)
public IdentityRoleV3(String name, IdentityRoleV3Args args)
public IdentityRoleV3(String name, IdentityRoleV3Args args, CustomResourceOptions options)
type: flexibleengine:IdentityRoleV3
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 IdentityRoleV3Args
- 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 IdentityRoleV3Args
- 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 IdentityRoleV3Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityRoleV3Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityRoleV3Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var identityRoleV3Resource = new Flexibleengine.IdentityRoleV3("identityRoleV3Resource", new()
{
Description = "string",
Policy = "string",
Type = "string",
IdentityRoleV3Id = "string",
Name = "string",
});
example, err := flexibleengine.NewIdentityRoleV3(ctx, "identityRoleV3Resource", &flexibleengine.IdentityRoleV3Args{
Description: pulumi.String("string"),
Policy: pulumi.String("string"),
Type: pulumi.String("string"),
IdentityRoleV3Id: pulumi.String("string"),
Name: pulumi.String("string"),
})
var identityRoleV3Resource = new IdentityRoleV3("identityRoleV3Resource", IdentityRoleV3Args.builder()
.description("string")
.policy("string")
.type("string")
.identityRoleV3Id("string")
.name("string")
.build());
identity_role_v3_resource = flexibleengine.IdentityRoleV3("identityRoleV3Resource",
description="string",
policy="string",
type="string",
identity_role_v3_id="string",
name="string")
const identityRoleV3Resource = new flexibleengine.IdentityRoleV3("identityRoleV3Resource", {
description: "string",
policy: "string",
type: "string",
identityRoleV3Id: "string",
name: "string",
});
type: flexibleengine:IdentityRoleV3
properties:
description: string
identityRoleV3Id: string
name: string
policy: string
type: string
IdentityRoleV3 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The IdentityRoleV3 resource accepts the following input properties:
- Description string
- Description of the custom policy.
- Policy string
- Document of the custom policy.
- Type string
- Display mode. Valid options are AX: Account level and XA: Project level.
- Identity
Role stringV3Id - The role id.
- Name string
- Name of the custom policy.
- Description string
- Description of the custom policy.
- Policy string
- Document of the custom policy.
- Type string
- Display mode. Valid options are AX: Account level and XA: Project level.
- Identity
Role stringV3Id - The role id.
- Name string
- Name of the custom policy.
- description String
- Description of the custom policy.
- policy String
- Document of the custom policy.
- type String
- Display mode. Valid options are AX: Account level and XA: Project level.
- identity
Role StringV3Id - The role id.
- name String
- Name of the custom policy.
- description string
- Description of the custom policy.
- policy string
- Document of the custom policy.
- type string
- Display mode. Valid options are AX: Account level and XA: Project level.
- identity
Role stringV3Id - The role id.
- name string
- Name of the custom policy.
- description str
- Description of the custom policy.
- policy str
- Document of the custom policy.
- type str
- Display mode. Valid options are AX: Account level and XA: Project level.
- identity_
role_ strv3_ id - The role id.
- name str
- Name of the custom policy.
- description String
- Description of the custom policy.
- policy String
- Document of the custom policy.
- type String
- Display mode. Valid options are AX: Account level and XA: Project level.
- identity
Role StringV3Id - The role id.
- name String
- Name of the custom policy.
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityRoleV3 resource produces the following output properties:
- Domain
Id string - The account id.
- Id string
- The provider-assigned unique ID for this managed resource.
- References double
- The number of references.
- Domain
Id string - The account id.
- Id string
- The provider-assigned unique ID for this managed resource.
- References float64
- The number of references.
- domain
Id String - The account id.
- id String
- The provider-assigned unique ID for this managed resource.
- references Double
- The number of references.
- domain
Id string - The account id.
- id string
- The provider-assigned unique ID for this managed resource.
- references number
- The number of references.
- domain_
id str - The account id.
- id str
- The provider-assigned unique ID for this managed resource.
- references float
- The number of references.
- domain
Id String - The account id.
- id String
- The provider-assigned unique ID for this managed resource.
- references Number
- The number of references.
Look up Existing IdentityRoleV3 Resource
Get an existing IdentityRoleV3 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?: IdentityRoleV3State, opts?: CustomResourceOptions): IdentityRoleV3
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
domain_id: Optional[str] = None,
identity_role_v3_id: Optional[str] = None,
name: Optional[str] = None,
policy: Optional[str] = None,
references: Optional[float] = None,
type: Optional[str] = None) -> IdentityRoleV3
func GetIdentityRoleV3(ctx *Context, name string, id IDInput, state *IdentityRoleV3State, opts ...ResourceOption) (*IdentityRoleV3, error)
public static IdentityRoleV3 Get(string name, Input<string> id, IdentityRoleV3State? state, CustomResourceOptions? opts = null)
public static IdentityRoleV3 get(String name, Output<String> id, IdentityRoleV3State state, CustomResourceOptions options)
resources: _: type: flexibleengine:IdentityRoleV3 get: id: ${id}
- 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.
- Description string
- Description of the custom policy.
- Domain
Id string - The account id.
- Identity
Role stringV3Id - The role id.
- Name string
- Name of the custom policy.
- Policy string
- Document of the custom policy.
- References double
- The number of references.
- Type string
- Display mode. Valid options are AX: Account level and XA: Project level.
- Description string
- Description of the custom policy.
- Domain
Id string - The account id.
- Identity
Role stringV3Id - The role id.
- Name string
- Name of the custom policy.
- Policy string
- Document of the custom policy.
- References float64
- The number of references.
- Type string
- Display mode. Valid options are AX: Account level and XA: Project level.
- description String
- Description of the custom policy.
- domain
Id String - The account id.
- identity
Role StringV3Id - The role id.
- name String
- Name of the custom policy.
- policy String
- Document of the custom policy.
- references Double
- The number of references.
- type String
- Display mode. Valid options are AX: Account level and XA: Project level.
- description string
- Description of the custom policy.
- domain
Id string - The account id.
- identity
Role stringV3Id - The role id.
- name string
- Name of the custom policy.
- policy string
- Document of the custom policy.
- references number
- The number of references.
- type string
- Display mode. Valid options are AX: Account level and XA: Project level.
- description str
- Description of the custom policy.
- domain_
id str - The account id.
- identity_
role_ strv3_ id - The role id.
- name str
- Name of the custom policy.
- policy str
- Document of the custom policy.
- references float
- The number of references.
- type str
- Display mode. Valid options are AX: Account level and XA: Project level.
- description String
- Description of the custom policy.
- domain
Id String - The account id.
- identity
Role StringV3Id - The role id.
- name String
- Name of the custom policy.
- policy String
- Document of the custom policy.
- references Number
- The number of references.
- type String
- Display mode. Valid options are AX: Account level and XA: Project level.
Import
Role can be imported using their id
:
$ pulumi import flexibleengine:index/identityRoleV3:IdentityRoleV3 default <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.