Exoscale v0.59.2 published on Monday, Jul 22, 2024 by Pulumiverse
exoscale.getIamRole
Explore with Pulumi AI
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. Get Iam Role Timeouts
- Id string
- The role ID to match (conflicts with
name
). - Name string
- the role name to match (conflicts with
id
). - Timeouts
Get
Iam Role Timeouts
- id String
- The role ID to match (conflicts with
name
). - name String
- the role name to match (conflicts with
id
). - timeouts
Get
Iam Role Timeouts
- id string
- The role ID to match (conflicts with
name
). - name string
- the role name to match (conflicts with
id
). - timeouts
Get
Iam Role Timeouts
- id str
- The role ID to match (conflicts with
name
). - name str
- the role name to match (conflicts with
id
). - timeouts
Get
Iam Role Timeouts
- 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. Get Iam Role Policy - IAM Policy.
- Timeouts
Pulumiverse.
Exoscale. Outputs. Get Iam Role Timeouts
- 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
Get
Iam Role Policy - IAM Policy.
- Timeouts
Get
Iam Role Timeouts
- 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
Get
Iam Role Policy - IAM Policy.
- timeouts
Get
Iam Role Timeouts
- 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
Get
Iam Role Policy - IAM Policy.
- timeouts
Get
Iam Role Timeouts
- 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
Get
Iam Role Policy - IAM Policy.
- timeouts
Get
Iam Role Timeouts
- 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
- Default
Service stringStrategy - Default service strategy (
allow
ordeny
). - Services
Dictionary<string, Pulumiverse.
Exoscale. Inputs. Get Iam Role Policy Services> - IAM policy services.
- Default
Service stringStrategy - Default service strategy (
allow
ordeny
). - Services
map[string]Get
Iam Role Policy Services - IAM policy services.
- default
Service StringStrategy - Default service strategy (
allow
ordeny
). - services
Map<String,Get
Iam Role Policy Services> - IAM policy services.
- default
Service stringStrategy - Default service strategy (
allow
ordeny
). - services
{[key: string]: Get
Iam Role Policy Services} - IAM policy services.
- default_
service_ strstrategy - Default service strategy (
allow
ordeny
). - services
Mapping[str, Get
Iam Role Policy Services] - IAM policy services.
- default
Service StringStrategy - Default service strategy (
allow
ordeny
). - services Map<Property Map>
- IAM policy services.
GetIamRolePolicyServices
- Rules
List<Pulumiverse.
Exoscale. Inputs. Get Iam Role Policy Services Rule> - List of IAM service rules (if type is
rules
). - Type string
- Service type (
rules
,allow
, ordeny
).
- Rules
[]Get
Iam Role Policy Services Rule - List of IAM service rules (if type is
rules
). - Type string
- Service type (
rules
,allow
, ordeny
).
- rules
List<Get
Iam Role Policy Services Rule> - List of IAM service rules (if type is
rules
). - type String
- Service type (
rules
,allow
, ordeny
).
- rules
Get
Iam Role Policy Services Rule[] - List of IAM service rules (if type is
rules
). - type string
- Service type (
rules
,allow
, ordeny
).
- rules
Sequence[Get
Iam Role 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
).
GetIamRolePolicyServicesRule
- Action string
- IAM policy rule action (
allow
ordeny
). - Expression string
- IAM policy rule expression.
- Resources List<string>
- Action string
- IAM policy rule action (
allow
ordeny
). - Expression string
- IAM policy rule expression.
- Resources []string
- action String
- IAM policy rule action (
allow
ordeny
). - expression String
- IAM policy rule expression.
- resources List<String>
- action string
- IAM policy rule action (
allow
ordeny
). - expression string
- IAM policy rule expression.
- resources string[]
- action str
- IAM policy rule action (
allow
ordeny
). - expression str
- IAM policy rule expression.
- resources Sequence[str]
- action String
- IAM policy rule action (
allow
ordeny
). - expression String
- IAM policy rule expression.
- resources List<String>
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.