1. Packages
  2. Exoscale
  3. API Docs
  4. IamOrgPolicy
Exoscale v0.62.7 published on Tuesday, Dec 10, 2024 by Pulumiverse

exoscale.IamOrgPolicy

Explore with Pulumi AI

Example Usage

Coming soon!
Coming soon!
Coming soon!
Coming soon!
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.exoscale.IamOrgPolicy;
import com.pulumi.exoscale.IamOrgPolicyArgs;
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 orgPolicy = new IamOrgPolicy("orgPolicy", IamOrgPolicyArgs.builder()
            .defaultServiceStrategy("allow")
            .services(Map.of("sos", Map.of("type", "deny")))
            .build());

    }
}
Copy
resources:
  orgPolicy:
    type: exoscale:IamOrgPolicy
    properties:
      defaultServiceStrategy: allow
      services:
        sos:
          - type: deny
Copy

Please refer to the examples directory for complete configuration examples.

Create IamOrgPolicy Resource

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

Constructor syntax

new IamOrgPolicy(name: string, args: IamOrgPolicyArgs, opts?: CustomResourceOptions);
@overload
def IamOrgPolicy(resource_name: str,
                 args: IamOrgPolicyArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def IamOrgPolicy(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 default_service_strategy: Optional[str] = None,
                 services: Optional[Mapping[str, IamOrgPolicyServicesArgs]] = None,
                 timeouts: Optional[IamOrgPolicyTimeoutsArgs] = None)
func NewIamOrgPolicy(ctx *Context, name string, args IamOrgPolicyArgs, opts ...ResourceOption) (*IamOrgPolicy, error)
public IamOrgPolicy(string name, IamOrgPolicyArgs args, CustomResourceOptions? opts = null)
public IamOrgPolicy(String name, IamOrgPolicyArgs args)
public IamOrgPolicy(String name, IamOrgPolicyArgs args, CustomResourceOptions options)
type: exoscale:IamOrgPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IamOrgPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IamOrgPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IamOrgPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IamOrgPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IamOrgPolicyArgs
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 iamOrgPolicyResource = new Exoscale.IamOrgPolicy("iamOrgPolicyResource", new()
{
    DefaultServiceStrategy = "string",
    Services = 
    {
        { "string", new Exoscale.Inputs.IamOrgPolicyServicesArgs
        {
            Rules = new[]
            {
                new Exoscale.Inputs.IamOrgPolicyServicesRuleArgs
                {
                    Action = "string",
                    Expression = "string",
                },
            },
            Type = "string",
        } },
    },
    Timeouts = new Exoscale.Inputs.IamOrgPolicyTimeoutsArgs
    {
        Read = "string",
    },
});
Copy
example, err := exoscale.NewIamOrgPolicy(ctx, "iamOrgPolicyResource", &exoscale.IamOrgPolicyArgs{
	DefaultServiceStrategy: pulumi.String("string"),
	Services: exoscale.IamOrgPolicyServicesMap{
		"string": &exoscale.IamOrgPolicyServicesArgs{
			Rules: exoscale.IamOrgPolicyServicesRuleArray{
				&exoscale.IamOrgPolicyServicesRuleArgs{
					Action:     pulumi.String("string"),
					Expression: pulumi.String("string"),
				},
			},
			Type: pulumi.String("string"),
		},
	},
	Timeouts: &exoscale.IamOrgPolicyTimeoutsArgs{
		Read: pulumi.String("string"),
	},
})
Copy
var iamOrgPolicyResource = new IamOrgPolicy("iamOrgPolicyResource", IamOrgPolicyArgs.builder()
    .defaultServiceStrategy("string")
    .services(Map.of("string", Map.ofEntries(
        Map.entry("rules", Map.ofEntries(
            Map.entry("action", "string"),
            Map.entry("expression", "string")
        )),
        Map.entry("type", "string")
    )))
    .timeouts(IamOrgPolicyTimeoutsArgs.builder()
        .read("string")
        .build())
    .build());
Copy
iam_org_policy_resource = exoscale.IamOrgPolicy("iamOrgPolicyResource",
    default_service_strategy="string",
    services={
        "string": {
            "rules": [{
                "action": "string",
                "expression": "string",
            }],
            "type": "string",
        },
    },
    timeouts={
        "read": "string",
    })
Copy
const iamOrgPolicyResource = new exoscale.IamOrgPolicy("iamOrgPolicyResource", {
    defaultServiceStrategy: "string",
    services: {
        string: {
            rules: [{
                action: "string",
                expression: "string",
            }],
            type: "string",
        },
    },
    timeouts: {
        read: "string",
    },
});
Copy
type: exoscale:IamOrgPolicy
properties:
    defaultServiceStrategy: string
    services:
        string:
            rules:
                - action: string
                  expression: string
            type: string
    timeouts:
        read: string
Copy

IamOrgPolicy 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 IamOrgPolicy resource accepts the following input properties:

DefaultServiceStrategy This property is required. string
Default service strategy (allow or deny).
Services This property is required. Dictionary<string, Pulumiverse.Exoscale.Inputs.IamOrgPolicyServicesArgs>
IAM policy services.
Timeouts Pulumiverse.Exoscale.Inputs.IamOrgPolicyTimeouts
DefaultServiceStrategy This property is required. string
Default service strategy (allow or deny).
Services This property is required. map[string]IamOrgPolicyServicesArgs
IAM policy services.
Timeouts IamOrgPolicyTimeoutsArgs
defaultServiceStrategy This property is required. String
Default service strategy (allow or deny).
services This property is required. Map<String,IamOrgPolicyServicesArgs>
IAM policy services.
timeouts IamOrgPolicyTimeouts
defaultServiceStrategy This property is required. string
Default service strategy (allow or deny).
services This property is required. {[key: string]: IamOrgPolicyServicesArgs}
IAM policy services.
timeouts IamOrgPolicyTimeouts
default_service_strategy This property is required. str
Default service strategy (allow or deny).
services This property is required. Mapping[str, IamOrgPolicyServicesArgs]
IAM policy services.
timeouts IamOrgPolicyTimeoutsArgs
defaultServiceStrategy This property is required. String
Default service strategy (allow or deny).
services This property is required. Map<Property Map>
IAM policy services.
timeouts Property Map

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing IamOrgPolicy Resource

Get an existing IamOrgPolicy 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?: IamOrgPolicyState, opts?: CustomResourceOptions): IamOrgPolicy
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        default_service_strategy: Optional[str] = None,
        services: Optional[Mapping[str, IamOrgPolicyServicesArgs]] = None,
        timeouts: Optional[IamOrgPolicyTimeoutsArgs] = None) -> IamOrgPolicy
func GetIamOrgPolicy(ctx *Context, name string, id IDInput, state *IamOrgPolicyState, opts ...ResourceOption) (*IamOrgPolicy, error)
public static IamOrgPolicy Get(string name, Input<string> id, IamOrgPolicyState? state, CustomResourceOptions? opts = null)
public static IamOrgPolicy get(String name, Output<String> id, IamOrgPolicyState state, CustomResourceOptions options)
resources:  _:    type: exoscale:IamOrgPolicy    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
DefaultServiceStrategy string
Default service strategy (allow or deny).
Services Dictionary<string, Pulumiverse.Exoscale.Inputs.IamOrgPolicyServicesArgs>
IAM policy services.
Timeouts Pulumiverse.Exoscale.Inputs.IamOrgPolicyTimeouts
DefaultServiceStrategy string
Default service strategy (allow or deny).
Services map[string]IamOrgPolicyServicesArgs
IAM policy services.
Timeouts IamOrgPolicyTimeoutsArgs
defaultServiceStrategy String
Default service strategy (allow or deny).
services Map<String,IamOrgPolicyServicesArgs>
IAM policy services.
timeouts IamOrgPolicyTimeouts
defaultServiceStrategy string
Default service strategy (allow or deny).
services {[key: string]: IamOrgPolicyServicesArgs}
IAM policy services.
timeouts IamOrgPolicyTimeouts
default_service_strategy str
Default service strategy (allow or deny).
services Mapping[str, IamOrgPolicyServicesArgs]
IAM policy services.
timeouts IamOrgPolicyTimeoutsArgs
defaultServiceStrategy String
Default service strategy (allow or deny).
services Map<Property Map>
IAM policy services.
timeouts Property Map

Supporting Types

IamOrgPolicyServices
, IamOrgPolicyServicesArgs

Rules List<Pulumiverse.Exoscale.Inputs.IamOrgPolicyServicesRule>
List of IAM service rules (if type is rules).
Type string
Service type (rules, allow, or deny).
Rules []IamOrgPolicyServicesRule
List of IAM service rules (if type is rules).
Type string
Service type (rules, allow, or deny).
rules List<IamOrgPolicyServicesRule>
List of IAM service rules (if type is rules).
type String
Service type (rules, allow, or deny).
rules IamOrgPolicyServicesRule[]
List of IAM service rules (if type is rules).
type string
Service type (rules, allow, or deny).
rules Sequence[IamOrgPolicyServicesRule]
List of IAM service rules (if type is rules).
type str
Service type (rules, allow, or deny).
rules List<Property Map>
List of IAM service rules (if type is rules).
type String
Service type (rules, allow, or deny).

IamOrgPolicyServicesRule
, IamOrgPolicyServicesRuleArgs

Action string
IAM policy rule action (allow or deny).
Expression string
IAM policy rule expression.
Resources List<string>

Deprecated: This field is not suported. Specify resources using CEL expressions.

Action string
IAM policy rule action (allow or deny).
Expression string
IAM policy rule expression.
Resources []string

Deprecated: This field is not suported. Specify resources using CEL expressions.

action String
IAM policy rule action (allow or deny).
expression String
IAM policy rule expression.
resources List<String>

Deprecated: This field is not suported. Specify resources using CEL expressions.

action string
IAM policy rule action (allow or deny).
expression string
IAM policy rule expression.
resources string[]

Deprecated: This field is not suported. Specify resources using CEL expressions.

action str
IAM policy rule action (allow or deny).
expression str
IAM policy rule expression.
resources Sequence[str]

Deprecated: This field is not suported. Specify resources using CEL expressions.

action String
IAM policy rule action (allow or deny).
expression String
IAM policy rule expression.
resources List<String>

Deprecated: This field is not suported. Specify resources using CEL expressions.

IamOrgPolicyTimeouts
, IamOrgPolicyTimeoutsArgs

Read string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Read string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
read String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
read string
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
read str
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
read String
A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.

Package Details

Repository
exoscale pulumiverse/pulumi-exoscale
License
Apache-2.0
Notes
This Pulumi package is based on the exoscale Terraform Provider.