1. Registry
  2. Packages
  3. Akeyless Provider
  4. API Docs
  5. AuthMethodAwsIam
Viewing docs for akeyless 2.1.0
published on Thursday, Nov 19, 2026 by akeyless-community
akeyless
Viewing docs for akeyless 2.1.0
published on Thursday, Nov 19, 2026 by akeyless-community

    AWS IAM Auth Method Resource

    Create AuthMethodAwsIam Resource

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

    Constructor syntax

    new AuthMethodAwsIam(name: string, args: AuthMethodAwsIamArgs, opts?: CustomResourceOptions);
    @overload
    def AuthMethodAwsIam(resource_name: str,
                         args: AuthMethodAwsIamArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AuthMethodAwsIam(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         bound_aws_account_ids: Optional[Sequence[str]] = None,
                         bound_user_ids: Optional[Sequence[str]] = None,
                         delete_protection: Optional[str] = None,
                         auth_method_aws_iam_id: Optional[str] = None,
                         bound_arns: Optional[Sequence[str]] = None,
                         allowed_client_types: Optional[Sequence[str]] = None,
                         bound_ips: Optional[Sequence[str]] = None,
                         bound_resource_ids: Optional[Sequence[str]] = None,
                         bound_role_ids: Optional[Sequence[str]] = None,
                         bound_role_names: Optional[Sequence[str]] = None,
                         description: Optional[str] = None,
                         audit_logs_claims: Optional[Sequence[str]] = None,
                         bound_user_names: Optional[Sequence[str]] = None,
                         access_expires: Optional[float] = None,
                         expiration_event_ins: Optional[Sequence[str]] = None,
                         force_sub_claims: Optional[bool] = None,
                         gw_bound_ips: Optional[Sequence[str]] = None,
                         jwt_ttl: Optional[float] = None,
                         name: Optional[str] = None,
                         product_types: Optional[Sequence[str]] = None,
                         retry: Optional[AuthMethodAwsIamRetryArgs] = None,
                         sts_url: Optional[str] = None,
                         unique_identifier: Optional[str] = None)
    func NewAuthMethodAwsIam(ctx *Context, name string, args AuthMethodAwsIamArgs, opts ...ResourceOption) (*AuthMethodAwsIam, error)
    public AuthMethodAwsIam(string name, AuthMethodAwsIamArgs args, CustomResourceOptions? opts = null)
    public AuthMethodAwsIam(String name, AuthMethodAwsIamArgs args)
    public AuthMethodAwsIam(String name, AuthMethodAwsIamArgs args, CustomResourceOptions options)
    
    type: akeyless:AuthMethodAwsIam
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "akeyless_auth_method_aws_iam" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args AuthMethodAwsIamArgs
    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 AuthMethodAwsIamArgs
    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 AuthMethodAwsIamArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AuthMethodAwsIamArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AuthMethodAwsIamArgs
    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 authMethodAwsIamResource = new Akeyless.AuthMethodAwsIam("authMethodAwsIamResource", new()
    {
        BoundAwsAccountIds = new[]
        {
            "string",
        },
        BoundUserIds = new[]
        {
            "string",
        },
        DeleteProtection = "string",
        AuthMethodAwsIamId = "string",
        BoundArns = new[]
        {
            "string",
        },
        AllowedClientTypes = new[]
        {
            "string",
        },
        BoundIps = new[]
        {
            "string",
        },
        BoundResourceIds = new[]
        {
            "string",
        },
        BoundRoleIds = new[]
        {
            "string",
        },
        BoundRoleNames = new[]
        {
            "string",
        },
        Description = "string",
        AuditLogsClaims = new[]
        {
            "string",
        },
        BoundUserNames = new[]
        {
            "string",
        },
        AccessExpires = 0.0,
        ExpirationEventIns = new[]
        {
            "string",
        },
        ForceSubClaims = false,
        GwBoundIps = new[]
        {
            "string",
        },
        JwtTtl = 0.0,
        Name = "string",
        ProductTypes = new[]
        {
            "string",
        },
        Retry = new Akeyless.Inputs.AuthMethodAwsIamRetryArgs
        {
            ErrorMessageRegexes = new[]
            {
                "string",
            },
            IntervalSeconds = 0.0,
            MaxIntervalSeconds = 0.0,
            MaxRetries = 0.0,
            RetryOnStatusCodes = new[]
            {
                0.0,
            },
        },
        StsUrl = "string",
        UniqueIdentifier = "string",
    });
    
    example, err := akeyless.NewAuthMethodAwsIam(ctx, "authMethodAwsIamResource", &akeyless.AuthMethodAwsIamArgs{
    	BoundAwsAccountIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	BoundUserIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DeleteProtection:   pulumi.String("string"),
    	AuthMethodAwsIamId: pulumi.String("string"),
    	BoundArns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	AllowedClientTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	BoundIps: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	BoundResourceIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	BoundRoleIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	BoundRoleNames: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Description: pulumi.String("string"),
    	AuditLogsClaims: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	BoundUserNames: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	AccessExpires: pulumi.Float64(0),
    	ExpirationEventIns: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ForceSubClaims: pulumi.Bool(false),
    	GwBoundIps: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	JwtTtl: pulumi.Float64(0),
    	Name:   pulumi.String("string"),
    	ProductTypes: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Retry: &akeyless.AuthMethodAwsIamRetryArgs{
    		ErrorMessageRegexes: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		IntervalSeconds:    pulumi.Float64(0),
    		MaxIntervalSeconds: pulumi.Float64(0),
    		MaxRetries:         pulumi.Float64(0),
    		RetryOnStatusCodes: pulumi.Float64Array{
    			pulumi.Float64(0),
    		},
    	},
    	StsUrl:           pulumi.String("string"),
    	UniqueIdentifier: pulumi.String("string"),
    })
    
    resource "akeyless_auth_method_aws_iam" "authMethodAwsIamResource" {
      lifecycle {
        create_before_destroy = true
      }
      bound_aws_account_ids  = ["string"]
      bound_user_ids         = ["string"]
      delete_protection      = "string"
      auth_method_aws_iam_id = "string"
      bound_arns             = ["string"]
      allowed_client_types   = ["string"]
      bound_ips              = ["string"]
      bound_resource_ids     = ["string"]
      bound_role_ids         = ["string"]
      bound_role_names       = ["string"]
      description            = "string"
      audit_logs_claims      = ["string"]
      bound_user_names       = ["string"]
      access_expires         = 0
      expiration_event_ins   = ["string"]
      force_sub_claims       = false
      gw_bound_ips           = ["string"]
      jwt_ttl                = 0
      name                   = "string"
      product_types          = ["string"]
      retry = {
        error_message_regexes = ["string"]
        interval_seconds      = 0
        max_interval_seconds  = 0
        max_retries           = 0
        retry_on_status_codes = [0]
      }
      sts_url           = "string"
      unique_identifier = "string"
    }
    
    var authMethodAwsIamResource = new AuthMethodAwsIam("authMethodAwsIamResource", AuthMethodAwsIamArgs.builder()
        .boundAwsAccountIds("string")
        .boundUserIds("string")
        .deleteProtection("string")
        .authMethodAwsIamId("string")
        .boundArns("string")
        .allowedClientTypes("string")
        .boundIps("string")
        .boundResourceIds("string")
        .boundRoleIds("string")
        .boundRoleNames("string")
        .description("string")
        .auditLogsClaims("string")
        .boundUserNames("string")
        .accessExpires(0.0)
        .expirationEventIns("string")
        .forceSubClaims(false)
        .gwBoundIps("string")
        .jwtTtl(0.0)
        .name("string")
        .productTypes("string")
        .retry(AuthMethodAwsIamRetryArgs.builder()
            .errorMessageRegexes("string")
            .intervalSeconds(0.0)
            .maxIntervalSeconds(0.0)
            .maxRetries(0.0)
            .retryOnStatusCodes(0.0)
            .build())
        .stsUrl("string")
        .uniqueIdentifier("string")
        .build());
    
    auth_method_aws_iam_resource = akeyless.AuthMethodAwsIam("authMethodAwsIamResource",
        bound_aws_account_ids=["string"],
        bound_user_ids=["string"],
        delete_protection="string",
        auth_method_aws_iam_id="string",
        bound_arns=["string"],
        allowed_client_types=["string"],
        bound_ips=["string"],
        bound_resource_ids=["string"],
        bound_role_ids=["string"],
        bound_role_names=["string"],
        description="string",
        audit_logs_claims=["string"],
        bound_user_names=["string"],
        access_expires=float(0),
        expiration_event_ins=["string"],
        force_sub_claims=False,
        gw_bound_ips=["string"],
        jwt_ttl=float(0),
        name="string",
        product_types=["string"],
        retry={
            "error_message_regexes": ["string"],
            "interval_seconds": float(0),
            "max_interval_seconds": float(0),
            "max_retries": float(0),
            "retry_on_status_codes": [float(0)],
        },
        sts_url="string",
        unique_identifier="string")
    
    const authMethodAwsIamResource = new akeyless.AuthMethodAwsIam("authMethodAwsIamResource", {
        boundAwsAccountIds: ["string"],
        boundUserIds: ["string"],
        deleteProtection: "string",
        authMethodAwsIamId: "string",
        boundArns: ["string"],
        allowedClientTypes: ["string"],
        boundIps: ["string"],
        boundResourceIds: ["string"],
        boundRoleIds: ["string"],
        boundRoleNames: ["string"],
        description: "string",
        auditLogsClaims: ["string"],
        boundUserNames: ["string"],
        accessExpires: 0,
        expirationEventIns: ["string"],
        forceSubClaims: false,
        gwBoundIps: ["string"],
        jwtTtl: 0,
        name: "string",
        productTypes: ["string"],
        retry: {
            errorMessageRegexes: ["string"],
            intervalSeconds: 0,
            maxIntervalSeconds: 0,
            maxRetries: 0,
            retryOnStatusCodes: [0],
        },
        stsUrl: "string",
        uniqueIdentifier: "string",
    });
    
    type: akeyless:AuthMethodAwsIam
    properties:
        accessExpires: 0
        allowedClientTypes:
            - string
        auditLogsClaims:
            - string
        authMethodAwsIamId: string
        boundArns:
            - string
        boundAwsAccountIds:
            - string
        boundIps:
            - string
        boundResourceIds:
            - string
        boundRoleIds:
            - string
        boundRoleNames:
            - string
        boundUserIds:
            - string
        boundUserNames:
            - string
        deleteProtection: string
        description: string
        expirationEventIns:
            - string
        forceSubClaims: false
        gwBoundIps:
            - string
        jwtTtl: 0
        name: string
        productTypes:
            - string
        retry:
            errorMessageRegexes:
                - string
            intervalSeconds: 0
            maxIntervalSeconds: 0
            maxRetries: 0
            retryOnStatusCodes:
                - 0
        stsUrl: string
        uniqueIdentifier: string
    

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

    BoundAwsAccountIds List<string>
    A list of AWS account-IDs that the access is restricted to
    AccessExpires double
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    AllowedClientTypes List<string>
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    AuditLogsClaims List<string>
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    AuthMethodAwsIamId string
    The ID of this resource.
    BoundArns List<string>
    A list of full arns that the access is restricted to
    BoundIps List<string>
    A CIDR whitelist with the IPs that the access is restricted to
    BoundResourceIds List<string>
    A list of full resource ids that the access is restricted to
    BoundRoleIds List<string>
    A list of full role ids that the access is restricted to
    BoundRoleNames List<string>
    A list of full role-name that the access is restricted to
    BoundUserIds List<string>
    A list of full user ids that the access is restricted to
    BoundUserNames List<string>
    A list of full user-name that the access is restricted to
    DeleteProtection string
    Protection from accidental deletion of this auth method, [true/false]
    Description string
    Auth Method description
    ExpirationEventIns List<string>
    How many days before the expiration of the auth method would you like to be notified.
    ForceSubClaims bool
    if true: enforce role-association must include sub claims
    GwBoundIps List<string>
    A CIDR whitelist with the GW IPs that the access is restricted to
    JwtTtl double
    Jwt TTL
    Name string
    Auth Method name
    ProductTypes List<string>
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    Retry AuthMethodAwsIamRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    StsUrl string
    sts URL
    UniqueIdentifier string
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    BoundAwsAccountIds []string
    A list of AWS account-IDs that the access is restricted to
    AccessExpires float64
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    AllowedClientTypes []string
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    AuditLogsClaims []string
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    AuthMethodAwsIamId string
    The ID of this resource.
    BoundArns []string
    A list of full arns that the access is restricted to
    BoundIps []string
    A CIDR whitelist with the IPs that the access is restricted to
    BoundResourceIds []string
    A list of full resource ids that the access is restricted to
    BoundRoleIds []string
    A list of full role ids that the access is restricted to
    BoundRoleNames []string
    A list of full role-name that the access is restricted to
    BoundUserIds []string
    A list of full user ids that the access is restricted to
    BoundUserNames []string
    A list of full user-name that the access is restricted to
    DeleteProtection string
    Protection from accidental deletion of this auth method, [true/false]
    Description string
    Auth Method description
    ExpirationEventIns []string
    How many days before the expiration of the auth method would you like to be notified.
    ForceSubClaims bool
    if true: enforce role-association must include sub claims
    GwBoundIps []string
    A CIDR whitelist with the GW IPs that the access is restricted to
    JwtTtl float64
    Jwt TTL
    Name string
    Auth Method name
    ProductTypes []string
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    Retry AuthMethodAwsIamRetryArgs
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    StsUrl string
    sts URL
    UniqueIdentifier string
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    bound_aws_account_ids list(string)
    A list of AWS account-IDs that the access is restricted to
    access_expires number
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    allowed_client_types list(string)
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    audit_logs_claims list(string)
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    auth_method_aws_iam_id string
    The ID of this resource.
    bound_arns list(string)
    A list of full arns that the access is restricted to
    bound_ips list(string)
    A CIDR whitelist with the IPs that the access is restricted to
    bound_resource_ids list(string)
    A list of full resource ids that the access is restricted to
    bound_role_ids list(string)
    A list of full role ids that the access is restricted to
    bound_role_names list(string)
    A list of full role-name that the access is restricted to
    bound_user_ids list(string)
    A list of full user ids that the access is restricted to
    bound_user_names list(string)
    A list of full user-name that the access is restricted to
    delete_protection string
    Protection from accidental deletion of this auth method, [true/false]
    description string
    Auth Method description
    expiration_event_ins list(string)
    How many days before the expiration of the auth method would you like to be notified.
    force_sub_claims bool
    if true: enforce role-association must include sub claims
    gw_bound_ips list(string)
    A CIDR whitelist with the GW IPs that the access is restricted to
    jwt_ttl number
    Jwt TTL
    name string
    Auth Method name
    product_types list(string)
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    retry object
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    sts_url string
    sts URL
    unique_identifier string
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    boundAwsAccountIds List<String>
    A list of AWS account-IDs that the access is restricted to
    accessExpires Double
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    allowedClientTypes List<String>
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    auditLogsClaims List<String>
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    authMethodAwsIamId String
    The ID of this resource.
    boundArns List<String>
    A list of full arns that the access is restricted to
    boundIps List<String>
    A CIDR whitelist with the IPs that the access is restricted to
    boundResourceIds List<String>
    A list of full resource ids that the access is restricted to
    boundRoleIds List<String>
    A list of full role ids that the access is restricted to
    boundRoleNames List<String>
    A list of full role-name that the access is restricted to
    boundUserIds List<String>
    A list of full user ids that the access is restricted to
    boundUserNames List<String>
    A list of full user-name that the access is restricted to
    deleteProtection String
    Protection from accidental deletion of this auth method, [true/false]
    description String
    Auth Method description
    expirationEventIns List<String>
    How many days before the expiration of the auth method would you like to be notified.
    forceSubClaims Boolean
    if true: enforce role-association must include sub claims
    gwBoundIps List<String>
    A CIDR whitelist with the GW IPs that the access is restricted to
    jwtTtl Double
    Jwt TTL
    name String
    Auth Method name
    productTypes List<String>
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    retry AuthMethodAwsIamRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    stsUrl String
    sts URL
    uniqueIdentifier String
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    boundAwsAccountIds string[]
    A list of AWS account-IDs that the access is restricted to
    accessExpires number
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    allowedClientTypes string[]
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    auditLogsClaims string[]
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    authMethodAwsIamId string
    The ID of this resource.
    boundArns string[]
    A list of full arns that the access is restricted to
    boundIps string[]
    A CIDR whitelist with the IPs that the access is restricted to
    boundResourceIds string[]
    A list of full resource ids that the access is restricted to
    boundRoleIds string[]
    A list of full role ids that the access is restricted to
    boundRoleNames string[]
    A list of full role-name that the access is restricted to
    boundUserIds string[]
    A list of full user ids that the access is restricted to
    boundUserNames string[]
    A list of full user-name that the access is restricted to
    deleteProtection string
    Protection from accidental deletion of this auth method, [true/false]
    description string
    Auth Method description
    expirationEventIns string[]
    How many days before the expiration of the auth method would you like to be notified.
    forceSubClaims boolean
    if true: enforce role-association must include sub claims
    gwBoundIps string[]
    A CIDR whitelist with the GW IPs that the access is restricted to
    jwtTtl number
    Jwt TTL
    name string
    Auth Method name
    productTypes string[]
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    retry AuthMethodAwsIamRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    stsUrl string
    sts URL
    uniqueIdentifier string
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    bound_aws_account_ids Sequence[str]
    A list of AWS account-IDs that the access is restricted to
    access_expires float
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    allowed_client_types Sequence[str]
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    audit_logs_claims Sequence[str]
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    auth_method_aws_iam_id str
    The ID of this resource.
    bound_arns Sequence[str]
    A list of full arns that the access is restricted to
    bound_ips Sequence[str]
    A CIDR whitelist with the IPs that the access is restricted to
    bound_resource_ids Sequence[str]
    A list of full resource ids that the access is restricted to
    bound_role_ids Sequence[str]
    A list of full role ids that the access is restricted to
    bound_role_names Sequence[str]
    A list of full role-name that the access is restricted to
    bound_user_ids Sequence[str]
    A list of full user ids that the access is restricted to
    bound_user_names Sequence[str]
    A list of full user-name that the access is restricted to
    delete_protection str
    Protection from accidental deletion of this auth method, [true/false]
    description str
    Auth Method description
    expiration_event_ins Sequence[str]
    How many days before the expiration of the auth method would you like to be notified.
    force_sub_claims bool
    if true: enforce role-association must include sub claims
    gw_bound_ips Sequence[str]
    A CIDR whitelist with the GW IPs that the access is restricted to
    jwt_ttl float
    Jwt TTL
    name str
    Auth Method name
    product_types Sequence[str]
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    retry AuthMethodAwsIamRetryArgs
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    sts_url str
    sts URL
    unique_identifier str
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    boundAwsAccountIds List<String>
    A list of AWS account-IDs that the access is restricted to
    accessExpires Number
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    allowedClientTypes List<String>
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    auditLogsClaims List<String>
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    authMethodAwsIamId String
    The ID of this resource.
    boundArns List<String>
    A list of full arns that the access is restricted to
    boundIps List<String>
    A CIDR whitelist with the IPs that the access is restricted to
    boundResourceIds List<String>
    A list of full resource ids that the access is restricted to
    boundRoleIds List<String>
    A list of full role ids that the access is restricted to
    boundRoleNames List<String>
    A list of full role-name that the access is restricted to
    boundUserIds List<String>
    A list of full user ids that the access is restricted to
    boundUserNames List<String>
    A list of full user-name that the access is restricted to
    deleteProtection String
    Protection from accidental deletion of this auth method, [true/false]
    description String
    Auth Method description
    expirationEventIns List<String>
    How many days before the expiration of the auth method would you like to be notified.
    forceSubClaims Boolean
    if true: enforce role-association must include sub claims
    gwBoundIps List<String>
    A CIDR whitelist with the GW IPs that the access is restricted to
    jwtTtl Number
    Jwt TTL
    name String
    Auth Method name
    productTypes List<String>
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    retry Property Map
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    stsUrl String
    sts URL
    uniqueIdentifier String
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.

    Outputs

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

    AccessId string
    Auth Method access ID
    Id string
    The provider-assigned unique ID for this managed resource.
    AccessId string
    Auth Method access ID
    Id string
    The provider-assigned unique ID for this managed resource.
    access_id string
    Auth Method access ID
    id string
    The provider-assigned unique ID for this managed resource.
    accessId String
    Auth Method access ID
    id String
    The provider-assigned unique ID for this managed resource.
    accessId string
    Auth Method access ID
    id string
    The provider-assigned unique ID for this managed resource.
    access_id str
    Auth Method access ID
    id str
    The provider-assigned unique ID for this managed resource.
    accessId String
    Auth Method access ID
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AuthMethodAwsIam Resource

    Get an existing AuthMethodAwsIam 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?: AuthMethodAwsIamState, opts?: CustomResourceOptions): AuthMethodAwsIam
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_expires: Optional[float] = None,
            access_id: Optional[str] = None,
            allowed_client_types: Optional[Sequence[str]] = None,
            audit_logs_claims: Optional[Sequence[str]] = None,
            auth_method_aws_iam_id: Optional[str] = None,
            bound_arns: Optional[Sequence[str]] = None,
            bound_aws_account_ids: Optional[Sequence[str]] = None,
            bound_ips: Optional[Sequence[str]] = None,
            bound_resource_ids: Optional[Sequence[str]] = None,
            bound_role_ids: Optional[Sequence[str]] = None,
            bound_role_names: Optional[Sequence[str]] = None,
            bound_user_ids: Optional[Sequence[str]] = None,
            bound_user_names: Optional[Sequence[str]] = None,
            delete_protection: Optional[str] = None,
            description: Optional[str] = None,
            expiration_event_ins: Optional[Sequence[str]] = None,
            force_sub_claims: Optional[bool] = None,
            gw_bound_ips: Optional[Sequence[str]] = None,
            jwt_ttl: Optional[float] = None,
            name: Optional[str] = None,
            product_types: Optional[Sequence[str]] = None,
            retry: Optional[AuthMethodAwsIamRetryArgs] = None,
            sts_url: Optional[str] = None,
            unique_identifier: Optional[str] = None) -> AuthMethodAwsIam
    func GetAuthMethodAwsIam(ctx *Context, name string, id IDInput, state *AuthMethodAwsIamState, opts ...ResourceOption) (*AuthMethodAwsIam, error)
    public static AuthMethodAwsIam Get(string name, Input<string> id, AuthMethodAwsIamState? state, CustomResourceOptions? opts = null)
    public static AuthMethodAwsIam get(String name, Output<String> id, AuthMethodAwsIamState state, CustomResourceOptions options)
    resources:  existingAuthMethodAwsIam:    type: akeyless:AuthMethodAwsIam    get:      id: ${id}
    import {
      to = akeyless_auth_method_aws_iam.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state AuthMethodAwsIamState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state AuthMethodAwsIamState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state AuthMethodAwsIamState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state AuthMethodAwsIamState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    AccessExpires double
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    AccessId string
    Auth Method access ID
    AllowedClientTypes List<string>
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    AuditLogsClaims List<string>
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    AuthMethodAwsIamId string
    The ID of this resource.
    BoundArns List<string>
    A list of full arns that the access is restricted to
    BoundAwsAccountIds List<string>
    A list of AWS account-IDs that the access is restricted to
    BoundIps List<string>
    A CIDR whitelist with the IPs that the access is restricted to
    BoundResourceIds List<string>
    A list of full resource ids that the access is restricted to
    BoundRoleIds List<string>
    A list of full role ids that the access is restricted to
    BoundRoleNames List<string>
    A list of full role-name that the access is restricted to
    BoundUserIds List<string>
    A list of full user ids that the access is restricted to
    BoundUserNames List<string>
    A list of full user-name that the access is restricted to
    DeleteProtection string
    Protection from accidental deletion of this auth method, [true/false]
    Description string
    Auth Method description
    ExpirationEventIns List<string>
    How many days before the expiration of the auth method would you like to be notified.
    ForceSubClaims bool
    if true: enforce role-association must include sub claims
    GwBoundIps List<string>
    A CIDR whitelist with the GW IPs that the access is restricted to
    JwtTtl double
    Jwt TTL
    Name string
    Auth Method name
    ProductTypes List<string>
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    Retry AuthMethodAwsIamRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    StsUrl string
    sts URL
    UniqueIdentifier string
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    AccessExpires float64
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    AccessId string
    Auth Method access ID
    AllowedClientTypes []string
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    AuditLogsClaims []string
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    AuthMethodAwsIamId string
    The ID of this resource.
    BoundArns []string
    A list of full arns that the access is restricted to
    BoundAwsAccountIds []string
    A list of AWS account-IDs that the access is restricted to
    BoundIps []string
    A CIDR whitelist with the IPs that the access is restricted to
    BoundResourceIds []string
    A list of full resource ids that the access is restricted to
    BoundRoleIds []string
    A list of full role ids that the access is restricted to
    BoundRoleNames []string
    A list of full role-name that the access is restricted to
    BoundUserIds []string
    A list of full user ids that the access is restricted to
    BoundUserNames []string
    A list of full user-name that the access is restricted to
    DeleteProtection string
    Protection from accidental deletion of this auth method, [true/false]
    Description string
    Auth Method description
    ExpirationEventIns []string
    How many days before the expiration of the auth method would you like to be notified.
    ForceSubClaims bool
    if true: enforce role-association must include sub claims
    GwBoundIps []string
    A CIDR whitelist with the GW IPs that the access is restricted to
    JwtTtl float64
    Jwt TTL
    Name string
    Auth Method name
    ProductTypes []string
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    Retry AuthMethodAwsIamRetryArgs
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    StsUrl string
    sts URL
    UniqueIdentifier string
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    access_expires number
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    access_id string
    Auth Method access ID
    allowed_client_types list(string)
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    audit_logs_claims list(string)
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    auth_method_aws_iam_id string
    The ID of this resource.
    bound_arns list(string)
    A list of full arns that the access is restricted to
    bound_aws_account_ids list(string)
    A list of AWS account-IDs that the access is restricted to
    bound_ips list(string)
    A CIDR whitelist with the IPs that the access is restricted to
    bound_resource_ids list(string)
    A list of full resource ids that the access is restricted to
    bound_role_ids list(string)
    A list of full role ids that the access is restricted to
    bound_role_names list(string)
    A list of full role-name that the access is restricted to
    bound_user_ids list(string)
    A list of full user ids that the access is restricted to
    bound_user_names list(string)
    A list of full user-name that the access is restricted to
    delete_protection string
    Protection from accidental deletion of this auth method, [true/false]
    description string
    Auth Method description
    expiration_event_ins list(string)
    How many days before the expiration of the auth method would you like to be notified.
    force_sub_claims bool
    if true: enforce role-association must include sub claims
    gw_bound_ips list(string)
    A CIDR whitelist with the GW IPs that the access is restricted to
    jwt_ttl number
    Jwt TTL
    name string
    Auth Method name
    product_types list(string)
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    retry object
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    sts_url string
    sts URL
    unique_identifier string
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    accessExpires Double
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    accessId String
    Auth Method access ID
    allowedClientTypes List<String>
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    auditLogsClaims List<String>
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    authMethodAwsIamId String
    The ID of this resource.
    boundArns List<String>
    A list of full arns that the access is restricted to
    boundAwsAccountIds List<String>
    A list of AWS account-IDs that the access is restricted to
    boundIps List<String>
    A CIDR whitelist with the IPs that the access is restricted to
    boundResourceIds List<String>
    A list of full resource ids that the access is restricted to
    boundRoleIds List<String>
    A list of full role ids that the access is restricted to
    boundRoleNames List<String>
    A list of full role-name that the access is restricted to
    boundUserIds List<String>
    A list of full user ids that the access is restricted to
    boundUserNames List<String>
    A list of full user-name that the access is restricted to
    deleteProtection String
    Protection from accidental deletion of this auth method, [true/false]
    description String
    Auth Method description
    expirationEventIns List<String>
    How many days before the expiration of the auth method would you like to be notified.
    forceSubClaims Boolean
    if true: enforce role-association must include sub claims
    gwBoundIps List<String>
    A CIDR whitelist with the GW IPs that the access is restricted to
    jwtTtl Double
    Jwt TTL
    name String
    Auth Method name
    productTypes List<String>
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    retry AuthMethodAwsIamRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    stsUrl String
    sts URL
    uniqueIdentifier String
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    accessExpires number
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    accessId string
    Auth Method access ID
    allowedClientTypes string[]
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    auditLogsClaims string[]
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    authMethodAwsIamId string
    The ID of this resource.
    boundArns string[]
    A list of full arns that the access is restricted to
    boundAwsAccountIds string[]
    A list of AWS account-IDs that the access is restricted to
    boundIps string[]
    A CIDR whitelist with the IPs that the access is restricted to
    boundResourceIds string[]
    A list of full resource ids that the access is restricted to
    boundRoleIds string[]
    A list of full role ids that the access is restricted to
    boundRoleNames string[]
    A list of full role-name that the access is restricted to
    boundUserIds string[]
    A list of full user ids that the access is restricted to
    boundUserNames string[]
    A list of full user-name that the access is restricted to
    deleteProtection string
    Protection from accidental deletion of this auth method, [true/false]
    description string
    Auth Method description
    expirationEventIns string[]
    How many days before the expiration of the auth method would you like to be notified.
    forceSubClaims boolean
    if true: enforce role-association must include sub claims
    gwBoundIps string[]
    A CIDR whitelist with the GW IPs that the access is restricted to
    jwtTtl number
    Jwt TTL
    name string
    Auth Method name
    productTypes string[]
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    retry AuthMethodAwsIamRetry
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    stsUrl string
    sts URL
    uniqueIdentifier string
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    access_expires float
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    access_id str
    Auth Method access ID
    allowed_client_types Sequence[str]
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    audit_logs_claims Sequence[str]
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    auth_method_aws_iam_id str
    The ID of this resource.
    bound_arns Sequence[str]
    A list of full arns that the access is restricted to
    bound_aws_account_ids Sequence[str]
    A list of AWS account-IDs that the access is restricted to
    bound_ips Sequence[str]
    A CIDR whitelist with the IPs that the access is restricted to
    bound_resource_ids Sequence[str]
    A list of full resource ids that the access is restricted to
    bound_role_ids Sequence[str]
    A list of full role ids that the access is restricted to
    bound_role_names Sequence[str]
    A list of full role-name that the access is restricted to
    bound_user_ids Sequence[str]
    A list of full user ids that the access is restricted to
    bound_user_names Sequence[str]
    A list of full user-name that the access is restricted to
    delete_protection str
    Protection from accidental deletion of this auth method, [true/false]
    description str
    Auth Method description
    expiration_event_ins Sequence[str]
    How many days before the expiration of the auth method would you like to be notified.
    force_sub_claims bool
    if true: enforce role-association must include sub claims
    gw_bound_ips Sequence[str]
    A CIDR whitelist with the GW IPs that the access is restricted to
    jwt_ttl float
    Jwt TTL
    name str
    Auth Method name
    product_types Sequence[str]
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    retry AuthMethodAwsIamRetryArgs
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    sts_url str
    sts URL
    unique_identifier str
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.
    accessExpires Number
    Access expiration date in Unix timestamp (select 0 for access without expiry date)
    accessId String
    Auth Method access ID
    allowedClientTypes List<String>
    limit the auth method usage for specific client types [cli,ui,gateway-admin,sdk,mobile,extension]
    auditLogsClaims List<String>
    Subclaims to include in audit logs, e.g "--audit-logs-claims email --audit-logs-claims username"
    authMethodAwsIamId String
    The ID of this resource.
    boundArns List<String>
    A list of full arns that the access is restricted to
    boundAwsAccountIds List<String>
    A list of AWS account-IDs that the access is restricted to
    boundIps List<String>
    A CIDR whitelist with the IPs that the access is restricted to
    boundResourceIds List<String>
    A list of full resource ids that the access is restricted to
    boundRoleIds List<String>
    A list of full role ids that the access is restricted to
    boundRoleNames List<String>
    A list of full role-name that the access is restricted to
    boundUserIds List<String>
    A list of full user ids that the access is restricted to
    boundUserNames List<String>
    A list of full user-name that the access is restricted to
    deleteProtection String
    Protection from accidental deletion of this auth method, [true/false]
    description String
    Auth Method description
    expirationEventIns List<String>
    How many days before the expiration of the auth method would you like to be notified.
    forceSubClaims Boolean
    if true: enforce role-association must include sub claims
    gwBoundIps List<String>
    A CIDR whitelist with the GW IPs that the access is restricted to
    jwtTtl Number
    Jwt TTL
    name String
    Auth Method name
    productTypes List<String>
    Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
    retry Property Map
    Retry this resource's operations when the error matches errormessageregex or the HTTP status is in retryonstatus_codes. Overrides the provider retry block. See the Customized Retry guide.
    stsUrl String
    sts URL
    uniqueIdentifier String
    A unique identifier (ID) value which is a "sub claim" name that contains details uniquely identifying that resource. This "sub claim" is used to distinguish between different identities.

    Supporting Types

    AuthMethodAwsIamRetry, AuthMethodAwsIamRetryArgs

    ErrorMessageRegexes List<string>
    Regular expressions matched against the error message. If any matches, the operation is retried.
    IntervalSeconds double
    Wait before the first retry, in seconds. The wait doubles on each retry.
    MaxIntervalSeconds double
    Maximum wait between retries, in seconds.
    MaxRetries double
    Maximum number of retries after the first attempt.
    RetryOnStatusCodes List<double>
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    ErrorMessageRegexes []string
    Regular expressions matched against the error message. If any matches, the operation is retried.
    IntervalSeconds float64
    Wait before the first retry, in seconds. The wait doubles on each retry.
    MaxIntervalSeconds float64
    Maximum wait between retries, in seconds.
    MaxRetries float64
    Maximum number of retries after the first attempt.
    RetryOnStatusCodes []float64
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    error_message_regexes list(string)
    Regular expressions matched against the error message. If any matches, the operation is retried.
    interval_seconds number
    Wait before the first retry, in seconds. The wait doubles on each retry.
    max_interval_seconds number
    Maximum wait between retries, in seconds.
    max_retries number
    Maximum number of retries after the first attempt.
    retry_on_status_codes list(number)
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    errorMessageRegexes List<String>
    Regular expressions matched against the error message. If any matches, the operation is retried.
    intervalSeconds Double
    Wait before the first retry, in seconds. The wait doubles on each retry.
    maxIntervalSeconds Double
    Maximum wait between retries, in seconds.
    maxRetries Double
    Maximum number of retries after the first attempt.
    retryOnStatusCodes List<Double>
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    errorMessageRegexes string[]
    Regular expressions matched against the error message. If any matches, the operation is retried.
    intervalSeconds number
    Wait before the first retry, in seconds. The wait doubles on each retry.
    maxIntervalSeconds number
    Maximum wait between retries, in seconds.
    maxRetries number
    Maximum number of retries after the first attempt.
    retryOnStatusCodes number[]
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    error_message_regexes Sequence[str]
    Regular expressions matched against the error message. If any matches, the operation is retried.
    interval_seconds float
    Wait before the first retry, in seconds. The wait doubles on each retry.
    max_interval_seconds float
    Maximum wait between retries, in seconds.
    max_retries float
    Maximum number of retries after the first attempt.
    retry_on_status_codes Sequence[float]
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.
    errorMessageRegexes List<String>
    Regular expressions matched against the error message. If any matches, the operation is retried.
    intervalSeconds Number
    Wait before the first retry, in seconds. The wait doubles on each retry.
    maxIntervalSeconds Number
    Maximum wait between retries, in seconds.
    maxRetries Number
    Maximum number of retries after the first attempt.
    retryOnStatusCodes List<Number>
    HTTP status codes of the failed API call that trigger a retry, for example 429 or 503.

    Package Details

    Repository
    akeyless akeyless-community/terraform-provider-akeyless
    License
    Notes
    This Pulumi package is based on the akeyless Terraform Provider.
    akeyless
    Viewing docs for akeyless 2.1.0
    published on Thursday, Nov 19, 2026 by akeyless-community

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial