Class RoleState.Builder

  • Enclosing class:
    RoleState

    public static final class RoleState.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
      • Builder

        public Builder​(RoleState defaults)
    • Method Detail

      • arn

        public RoleState.Builder arn​(@Nullable
                                     com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - The role arn.
        Returns:
        builder
      • arn

        public RoleState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - The role arn.
        Returns:
        builder
      • description

        public RoleState.Builder description​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Description of the RAM role. This name can have a string of 1 to 1024 characters. **NOTE:** The `description` supports modification since V1.144.0.
        Returns:
        builder
      • description

        public RoleState.Builder description​(java.lang.String description)
        Parameters:
        description - Description of the RAM role. This name can have a string of 1 to 1024 characters. **NOTE:** The `description` supports modification since V1.144.0.
        Returns:
        builder
      • document

        public RoleState.Builder document​(@Nullable
                                          com.pulumi.core.Output<java.lang.String> document)
        Parameters:
        document - Authorization strategy of the RAM role. It is required when the `services` and `ram_users` are not specified.
        Returns:
        builder
      • document

        public RoleState.Builder document​(java.lang.String document)
        Parameters:
        document - Authorization strategy of the RAM role. It is required when the `services` and `ram_users` are not specified.
        Returns:
        builder
      • force

        public RoleState.Builder force​(@Nullable
                                       com.pulumi.core.Output<java.lang.Boolean> force)
        Parameters:
        force - This parameter is used for resource destroy. Default value is `false`.
        Returns:
        builder
      • force

        public RoleState.Builder force​(java.lang.Boolean force)
        Parameters:
        force - This parameter is used for resource destroy. Default value is `false`.
        Returns:
        builder
      • maxSessionDuration

        public RoleState.Builder maxSessionDuration​(@Nullable
                                                    com.pulumi.core.Output<java.lang.Integer> maxSessionDuration)
        Parameters:
        maxSessionDuration - The maximum session duration of the RAM role. Valid values: 3600 to 43200. Unit: seconds. Default value: 3600. The default value is used if the parameter is not specified.
        Returns:
        builder
      • maxSessionDuration

        public RoleState.Builder maxSessionDuration​(java.lang.Integer maxSessionDuration)
        Parameters:
        maxSessionDuration - The maximum session duration of the RAM role. Valid values: 3600 to 43200. Unit: seconds. Default value: 3600. The default value is used if the parameter is not specified.
        Returns:
        builder
      • name

        public RoleState.Builder name​(@Nullable
                                      com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - Name of the RAM role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen.
        Returns:
        builder
      • name

        public RoleState.Builder name​(java.lang.String name)
        Parameters:
        name - Name of the RAM role. This name can have a string of 1 to 64 characters, must contain only alphanumeric characters or hyphens, such as "-", "_", and must not begin with a hyphen.
        Returns:
        builder
      • ramUsers

        @Deprecated
        public RoleState.Builder ramUsers​(@Nullable
                                          com.pulumi.core.Output<java.util.List<java.lang.String>> ramUsers)
        Deprecated.
        Field 'ram_users' has been deprecated from version 1.49.0, and use field 'document' to replace.
        Parameters:
        ramUsers - (It has been deprecated since version 1.49.0, and use field 'document' to replace.) List of ram users who can assume the RAM role. The format of each item in this list is `acs:ram::${account_id}:root` or `acs:ram::${account_id}:user/${user_name}`, such as `acs:ram::1234567890000:root` and `acs:ram::1234567890001:user/Mary`. The `${user_name}` is the name of a RAM user which must exists in the Alicloud account indicated by the `${account_id}`.
        Returns:
        builder
      • ramUsers

        @Deprecated
        public RoleState.Builder ramUsers​(java.util.List<java.lang.String> ramUsers)
        Deprecated.
        Field 'ram_users' has been deprecated from version 1.49.0, and use field 'document' to replace.
        Parameters:
        ramUsers - (It has been deprecated since version 1.49.0, and use field 'document' to replace.) List of ram users who can assume the RAM role. The format of each item in this list is `acs:ram::${account_id}:root` or `acs:ram::${account_id}:user/${user_name}`, such as `acs:ram::1234567890000:root` and `acs:ram::1234567890001:user/Mary`. The `${user_name}` is the name of a RAM user which must exists in the Alicloud account indicated by the `${account_id}`.
        Returns:
        builder
      • ramUsers

        @Deprecated
        public RoleState.Builder ramUsers​(java.lang.String... ramUsers)
        Deprecated.
        Field 'ram_users' has been deprecated from version 1.49.0, and use field 'document' to replace.
        Parameters:
        ramUsers - (It has been deprecated since version 1.49.0, and use field 'document' to replace.) List of ram users who can assume the RAM role. The format of each item in this list is `acs:ram::${account_id}:root` or `acs:ram::${account_id}:user/${user_name}`, such as `acs:ram::1234567890000:root` and `acs:ram::1234567890001:user/Mary`. The `${user_name}` is the name of a RAM user which must exists in the Alicloud account indicated by the `${account_id}`.
        Returns:
        builder
      • roleId

        public RoleState.Builder roleId​(@Nullable
                                        com.pulumi.core.Output<java.lang.String> roleId)
        Parameters:
        roleId - The role ID.
        Returns:
        builder
      • roleId

        public RoleState.Builder roleId​(java.lang.String roleId)
        Parameters:
        roleId - The role ID.
        Returns:
        builder
      • services

        @Deprecated
        public RoleState.Builder services​(@Nullable
                                          com.pulumi.core.Output<java.util.List<java.lang.String>> services)
        Deprecated.
        Field 'services' has been deprecated from version 1.49.0, and use field 'document' to replace.
        Parameters:
        services - (It has been deprecated since version 1.49.0, and use field 'document' to replace.) List of services which can assume the RAM role. The format of each item in this list is `${service}.aliyuncs.com` or `${account_id}@${service}.aliyuncs.com`, such as `ecs.aliyuncs.com` and `[email protected]`. The `${service}` can be `ecs`, `log`, `apigateway` and so on, the `${account_id}` refers to someone's Alicloud account id.
        Returns:
        builder
      • services

        @Deprecated
        public RoleState.Builder services​(java.util.List<java.lang.String> services)
        Deprecated.
        Field 'services' has been deprecated from version 1.49.0, and use field 'document' to replace.
        Parameters:
        services - (It has been deprecated since version 1.49.0, and use field 'document' to replace.) List of services which can assume the RAM role. The format of each item in this list is `${service}.aliyuncs.com` or `${account_id}@${service}.aliyuncs.com`, such as `ecs.aliyuncs.com` and `[email protected]`. The `${service}` can be `ecs`, `log`, `apigateway` and so on, the `${account_id}` refers to someone's Alicloud account id.
        Returns:
        builder
      • services

        @Deprecated
        public RoleState.Builder services​(java.lang.String... services)
        Deprecated.
        Field 'services' has been deprecated from version 1.49.0, and use field 'document' to replace.
        Parameters:
        services - (It has been deprecated since version 1.49.0, and use field 'document' to replace.) List of services which can assume the RAM role. The format of each item in this list is `${service}.aliyuncs.com` or `${account_id}@${service}.aliyuncs.com`, such as `ecs.aliyuncs.com` and `[email protected]`. The `${service}` can be `ecs`, `log`, `apigateway` and so on, the `${account_id}` refers to someone's Alicloud account id.
        Returns:
        builder
      • version

        @Deprecated
        public RoleState.Builder version​(@Nullable
                                         com.pulumi.core.Output<java.lang.String> version)
        Deprecated.
        Field 'version' has been deprecated from version 1.49.0, and use field 'document' to replace.
        Parameters:
        version - (It has been deprecated since version 1.49.0, and use field 'document' to replace.) Version of the RAM role policy document. Valid value is `1`. Default value is `1`.
        Returns:
        builder
      • version

        @Deprecated
        public RoleState.Builder version​(java.lang.String version)
        Deprecated.
        Field 'version' has been deprecated from version 1.49.0, and use field 'document' to replace.
        Parameters:
        version - (It has been deprecated since version 1.49.0, and use field 'document' to replace.) Version of the RAM role policy document. Valid value is `1`. Default value is `1`.
        Returns:
        builder