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());
    }
}
resources:
  orgPolicy:
    type: exoscale:IamOrgPolicy
    properties:
      defaultServiceStrategy: allow
      services:
        sos:
          - type: deny
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 string
- The unique name of the resource.
- args IamOrgPolicyArgs
- 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 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 string
- The unique name of the resource.
- args IamOrgPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamOrgPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
    },
});
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"),
	},
})
var iamOrgPolicyResource = new IamOrgPolicy("iamOrgPolicyResource", IamOrgPolicyArgs.builder()
    .defaultServiceStrategy("string")
    .services(Map.of("string", IamOrgPolicyServicesArgs.builder()
        .rules(IamOrgPolicyServicesRuleArgs.builder()
            .action("string")
            .expression("string")
            .build())
        .type("string")
        .build()))
    .timeouts(IamOrgPolicyTimeoutsArgs.builder()
        .read("string")
        .build())
    .build());
iam_org_policy_resource = exoscale.IamOrgPolicy("iamOrgPolicyResource",
    default_service_strategy="string",
    services={
        "string": {
            "rules": [{
                "action": "string",
                "expression": "string",
            }],
            "type": "string",
        },
    },
    timeouts={
        "read": "string",
    })
const iamOrgPolicyResource = new exoscale.IamOrgPolicy("iamOrgPolicyResource", {
    defaultServiceStrategy: "string",
    services: {
        string: {
            rules: [{
                action: "string",
                expression: "string",
            }],
            type: "string",
        },
    },
    timeouts: {
        read: "string",
    },
});
type: exoscale:IamOrgPolicy
properties:
    defaultServiceStrategy: string
    services:
        string:
            rules:
                - action: string
                  expression: string
            type: string
    timeouts:
        read: string
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:
- DefaultService stringStrategy 
- Default service strategy (allowordeny).
- Services
Dictionary<string, Pulumiverse.Exoscale. Inputs. Iam Org Policy Services Args> 
- IAM policy services.
- Timeouts
Pulumiverse.Exoscale. Inputs. Iam Org Policy Timeouts 
- DefaultService stringStrategy 
- Default service strategy (allowordeny).
- Services
map[string]IamOrg Policy Services Args 
- IAM policy services.
- Timeouts
IamOrg Policy Timeouts Args 
- defaultService StringStrategy 
- Default service strategy (allowordeny).
- services
Map<String,IamOrg Policy Services Args> 
- IAM policy services.
- timeouts
IamOrg Policy Timeouts 
- defaultService stringStrategy 
- Default service strategy (allowordeny).
- services
{[key: string]: IamOrg Policy Services Args} 
- IAM policy services.
- timeouts
IamOrg Policy Timeouts 
- default_service_ strstrategy 
- Default service strategy (allowordeny).
- services
Mapping[str, IamOrg Policy Services Args] 
- IAM policy services.
- timeouts
IamOrg Policy Timeouts Args 
- defaultService StringStrategy 
- Default service strategy (allowordeny).
- services 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) -> IamOrgPolicyfunc 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
- 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.
- DefaultService stringStrategy 
- Default service strategy (allowordeny).
- Services
Dictionary<string, Pulumiverse.Exoscale. Inputs. Iam Org Policy Services Args> 
- IAM policy services.
- Timeouts
Pulumiverse.Exoscale. Inputs. Iam Org Policy Timeouts 
- DefaultService stringStrategy 
- Default service strategy (allowordeny).
- Services
map[string]IamOrg Policy Services Args 
- IAM policy services.
- Timeouts
IamOrg Policy Timeouts Args 
- defaultService StringStrategy 
- Default service strategy (allowordeny).
- services
Map<String,IamOrg Policy Services Args> 
- IAM policy services.
- timeouts
IamOrg Policy Timeouts 
- defaultService stringStrategy 
- Default service strategy (allowordeny).
- services
{[key: string]: IamOrg Policy Services Args} 
- IAM policy services.
- timeouts
IamOrg Policy Timeouts 
- default_service_ strstrategy 
- Default service strategy (allowordeny).
- services
Mapping[str, IamOrg Policy Services Args] 
- IAM policy services.
- timeouts
IamOrg Policy Timeouts Args 
- defaultService StringStrategy 
- Default service strategy (allowordeny).
- services Map<Property Map>
- IAM policy services.
- timeouts Property Map
Supporting Types
IamOrgPolicyServices, IamOrgPolicyServicesArgs        
- Rules
List<Pulumiverse.Exoscale. Inputs. Iam Org Policy Services Rule> 
- List of IAM service rules (if type is rules).
- Type string
- Service type (rules,allow, ordeny).
- Rules
[]IamOrg Policy Services Rule 
- List of IAM service rules (if type is rules).
- Type string
- Service type (rules,allow, ordeny).
- rules
List<IamOrg Policy Services Rule> 
- List of IAM service rules (if type is rules).
- type String
- Service type (rules,allow, ordeny).
- rules
IamOrg Policy Services Rule[] 
- List of IAM service rules (if type is rules).
- type string
- Service type (rules,allow, ordeny).
- rules
Sequence[IamOrg Policy Services Rule] 
- List of IAM service rules (if type is rules).
- type str
- Service type (rules,allow, ordeny).
- rules List<Property Map>
- List of IAM service rules (if type is rules).
- type String
- Service type (rules,allow, ordeny).
IamOrgPolicyServicesRule, IamOrgPolicyServicesRuleArgs          
- Action string
- IAM policy rule action (allowordeny).
- Expression string
- IAM policy rule expression.
- Resources List<string>
- Action string
- IAM policy rule action (allowordeny).
- Expression string
- IAM policy rule expression.
- Resources []string
- action String
- IAM policy rule action (allowordeny).
- expression String
- IAM policy rule expression.
- resources List<String>
- action string
- IAM policy rule action (allowordeny).
- expression string
- IAM policy rule expression.
- resources string[]
- action str
- IAM policy rule action (allowordeny).
- expression str
- IAM policy rule expression.
- resources Sequence[str]
- action String
- IAM policy rule action (allowordeny).
- expression String
- IAM policy rule expression.
- resources List<String>
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 exoscaleTerraform Provider.