corrected arg types
@@ -117,19 +117,19 @@ def main():
argspec['name'] = dict(required=True, type='str')
argspec['bound_ami_id'] = dict(required=False, type='str')
argspec['bound_vpc_id'] = dict(required=False, type='str')
- argspec['inferred_entity_type'] = dict(required=False, type='str')
+ argspec['inferred_entity_type'] = dict(required=True, type='str')
argspec['inferred_aws_region'] = dict(required=False, type='str')
- argspec['auth_type'] = dict(required=False, type='str')
+ argspec['auth_type'] = dict(required=True, type='str')
argspec['bound_account_id'] = dict(required=False, type='str')
- argspec['bound_iam_role_arn'] = dict(required=True, type='str')
+ argspec['bound_iam_role_arn'] = dict(required=False, type='str')
argspec['bound_iam_instance_profile_arn'] = dict(required=False, type='str')
argspec['bound_ec2_instance_id'] = dict(required=False, type='str')
argspec['bound_subnet_id'] = dict(required=False, type='str')
argspec['allow_instance_migration'] = dict(required=False, type='bool')
argspec['disallow_reauthentication'] = dict(required=False, type='bool')
- argspec['resolve_aws_unique_ids'] = dict(required=False, type='str')
- argspec['token_max_ttl'] = dict(required=False, type='str')
- argspec['token_ttl'] = dict(required=False, type='str')
+ argspec['resolve_aws_unique_ids'] = dict(required=False, type='bool')
+ argspec['token_max_ttl'] = dict(required=False, type='int')
+ argspec['token_ttl'] = dict(required=False, type='int')
module = hashivault_init(argspec)
result = hashivault_iam_role_create(module.params)
