1. Packages
  2. Exoscale
  3. API Docs
  4. IamOrgPolicy
Exoscale v0.59.2 published on Monday, Jul 22, 2024 by Pulumiverse

exoscale.IamOrgPolicy

Explore with Pulumi AI

exoscale logo
Exoscale v0.59.2 published on Monday, Jul 22, 2024 by Pulumiverse

    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", 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());
    
    iam_org_policy_resource = exoscale.IamOrgPolicy("iamOrgPolicyResource",
        default_service_strategy="string",
        services={
            "string": exoscale.IamOrgPolicyServicesArgs(
                rules=[exoscale.IamOrgPolicyServicesRuleArgs(
                    action="string",
                    expression="string",
                )],
                type="string",
            ),
        },
        timeouts=exoscale.IamOrgPolicyTimeoutsArgs(
            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

    The IamOrgPolicy resource accepts the following input properties:

    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

    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)
    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:
    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.
    exoscale logo
    Exoscale v0.59.2 published on Monday, Jul 22, 2024 by Pulumiverse