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

exoscale.getIamRole

Explore with Pulumi AI

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

    Fetch Exoscale IAM Role.

    Corresponding resource: exoscale_iam_role.

    Using getIamRole

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getIamRole(args: GetIamRoleArgs, opts?: InvokeOptions): Promise<GetIamRoleResult>
    function getIamRoleOutput(args: GetIamRoleOutputArgs, opts?: InvokeOptions): Output<GetIamRoleResult>
    def get_iam_role(id: Optional[str] = None,
                     name: Optional[str] = None,
                     timeouts: Optional[GetIamRoleTimeouts] = None,
                     opts: Optional[InvokeOptions] = None) -> GetIamRoleResult
    def get_iam_role_output(id: Optional[pulumi.Input[str]] = None,
                     name: Optional[pulumi.Input[str]] = None,
                     timeouts: Optional[pulumi.Input[GetIamRoleTimeoutsArgs]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetIamRoleResult]
    func LookupIamRole(ctx *Context, args *LookupIamRoleArgs, opts ...InvokeOption) (*LookupIamRoleResult, error)
    func LookupIamRoleOutput(ctx *Context, args *LookupIamRoleOutputArgs, opts ...InvokeOption) LookupIamRoleResultOutput

    > Note: This function is named LookupIamRole in the Go SDK.

    public static class GetIamRole 
    {
        public static Task<GetIamRoleResult> InvokeAsync(GetIamRoleArgs args, InvokeOptions? opts = null)
        public static Output<GetIamRoleResult> Invoke(GetIamRoleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetIamRoleResult> getIamRole(GetIamRoleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: exoscale:index/getIamRole:getIamRole
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The role ID to match (conflicts with name).
    Name string
    the role name to match (conflicts with id).
    Timeouts Pulumiverse.Exoscale.Inputs.GetIamRoleTimeouts
    Id string
    The role ID to match (conflicts with name).
    Name string
    the role name to match (conflicts with id).
    Timeouts GetIamRoleTimeouts
    id String
    The role ID to match (conflicts with name).
    name String
    the role name to match (conflicts with id).
    timeouts GetIamRoleTimeouts
    id string
    The role ID to match (conflicts with name).
    name string
    the role name to match (conflicts with id).
    timeouts GetIamRoleTimeouts
    id str
    The role ID to match (conflicts with name).
    name str
    the role name to match (conflicts with id).
    timeouts GetIamRoleTimeouts
    id String
    The role ID to match (conflicts with name).
    name String
    the role name to match (conflicts with id).
    timeouts Property Map

    getIamRole Result

    The following output properties are available:

    Description string
    A free-form text describing the IAM Role
    Editable bool
    Defines if IAM Role Policy is editable or not.
    Id string
    The role ID to match (conflicts with name).
    Labels Dictionary<string, string>
    IAM Role labels.
    Name string
    the role name to match (conflicts with id).
    Permissions List<string>
    IAM Role permissions.
    Policy Pulumiverse.Exoscale.Outputs.GetIamRolePolicy
    IAM Policy.
    Timeouts Pulumiverse.Exoscale.Outputs.GetIamRoleTimeouts
    Description string
    A free-form text describing the IAM Role
    Editable bool
    Defines if IAM Role Policy is editable or not.
    Id string
    The role ID to match (conflicts with name).
    Labels map[string]string
    IAM Role labels.
    Name string
    the role name to match (conflicts with id).
    Permissions []string
    IAM Role permissions.
    Policy GetIamRolePolicy
    IAM Policy.
    Timeouts GetIamRoleTimeouts
    description String
    A free-form text describing the IAM Role
    editable Boolean
    Defines if IAM Role Policy is editable or not.
    id String
    The role ID to match (conflicts with name).
    labels Map<String,String>
    IAM Role labels.
    name String
    the role name to match (conflicts with id).
    permissions List<String>
    IAM Role permissions.
    policy GetIamRolePolicy
    IAM Policy.
    timeouts GetIamRoleTimeouts
    description string
    A free-form text describing the IAM Role
    editable boolean
    Defines if IAM Role Policy is editable or not.
    id string
    The role ID to match (conflicts with name).
    labels {[key: string]: string}
    IAM Role labels.
    name string
    the role name to match (conflicts with id).
    permissions string[]
    IAM Role permissions.
    policy GetIamRolePolicy
    IAM Policy.
    timeouts GetIamRoleTimeouts
    description str
    A free-form text describing the IAM Role
    editable bool
    Defines if IAM Role Policy is editable or not.
    id str
    The role ID to match (conflicts with name).
    labels Mapping[str, str]
    IAM Role labels.
    name str
    the role name to match (conflicts with id).
    permissions Sequence[str]
    IAM Role permissions.
    policy GetIamRolePolicy
    IAM Policy.
    timeouts GetIamRoleTimeouts
    description String
    A free-form text describing the IAM Role
    editable Boolean
    Defines if IAM Role Policy is editable or not.
    id String
    The role ID to match (conflicts with name).
    labels Map<String>
    IAM Role labels.
    name String
    the role name to match (conflicts with id).
    permissions List<String>
    IAM Role permissions.
    policy Property Map
    IAM Policy.
    timeouts Property Map

    Supporting Types

    GetIamRolePolicy

    DefaultServiceStrategy string
    Default service strategy (allow or deny).
    Services Dictionary<string, Pulumiverse.Exoscale.Inputs.GetIamRolePolicyServices>
    IAM policy services.
    DefaultServiceStrategy string
    Default service strategy (allow or deny).
    Services map[string]GetIamRolePolicyServices
    IAM policy services.
    defaultServiceStrategy String
    Default service strategy (allow or deny).
    services Map<String,GetIamRolePolicyServices>
    IAM policy services.
    defaultServiceStrategy string
    Default service strategy (allow or deny).
    services {[key: string]: GetIamRolePolicyServices}
    IAM policy services.
    default_service_strategy str
    Default service strategy (allow or deny).
    services Mapping[str, GetIamRolePolicyServices]
    IAM policy services.
    defaultServiceStrategy String
    Default service strategy (allow or deny).
    services Map<Property Map>
    IAM policy services.

    GetIamRolePolicyServices

    Rules List<Pulumiverse.Exoscale.Inputs.GetIamRolePolicyServicesRule>
    List of IAM service rules (if type is rules).
    Type string
    Service type (rules, allow, or deny).
    Rules []GetIamRolePolicyServicesRule
    List of IAM service rules (if type is rules).
    Type string
    Service type (rules, allow, or deny).
    rules List<GetIamRolePolicyServicesRule>
    List of IAM service rules (if type is rules).
    type String
    Service type (rules, allow, or deny).
    rules GetIamRolePolicyServicesRule[]
    List of IAM service rules (if type is rules).
    type string
    Service type (rules, allow, or deny).
    rules Sequence[GetIamRolePolicyServicesRule]
    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).

    GetIamRolePolicyServicesRule

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

    Deprecated: This field is no longer suported.

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

    Deprecated: This field is no longer suported.

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

    Deprecated: This field is no longer suported.

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

    Deprecated: This field is no longer suported.

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

    Deprecated: This field is no longer suported.

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

    Deprecated: This field is no longer suported.

    GetIamRoleTimeouts

    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