Method: Aws::Batch::Types::ComputeResource#instance_role
- Defined in:
- lib/aws-sdk-batch/types.rb
#instance_role ⇒ String
The Amazon ECS instance profile applied to Amazon EC2 instances in a compute environment. This parameter is required for Amazon EC2 instances types. You can specify the short name or full Amazon Resource Name (ARN) of an instance profile. For example, ‘ ecsInstanceRole ` or `arn:aws:iam::<aws_account_id>:instance-profile/ecsInstanceRole `. For more information, see [Amazon ECS instance role] in the *Batch User Guide*.
<note markdown=“1”> This parameter isn’t applicable to jobs that are running on Fargate resources. Don’t specify it.
</note>
[1]: docs.aws.amazon.com/batch/latest/userguide/instance_IAM_role.html
822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 |
# File 'lib/aws-sdk-batch/types.rb', line 822 class ComputeResource < Struct.new( :type, :allocation_strategy, :minv_cpus, :maxv_cpus, :desiredv_cpus, :instance_types, :image_id, :subnets, :security_group_ids, :ec2_key_pair, :instance_role, :tags, :placement_group, :bid_percentage, :spot_iam_fleet_role, :launch_template, :ec2_configuration) SENSITIVE = [] include Aws::Structure end |