GetAwsRoleByIdResponse

pydantic model openapi_client.models.get_aws_role_by_id_response.GetAwsRoleByIdResponse

GET /aws-roles/{id} 200 body. Role fields plus RolePermissions when switch-console is omitted. PresignedUrl only when switch-console=true.

Fields:
field role_id: Optional[StrictStr] = None (alias 'RoleId')
field role_name: Optional[StrictStr] = None (alias 'RoleName')
field role_description: Optional[StrictStr] = None (alias 'RoleDescription')
field role_arn: Optional[StrictStr] = None (alias 'RoleArn')
field users_attached: Optional[List[StrictStr]] = None (alias 'UsersAttached')
field created_by: Optional[StrictStr] = None (alias 'CreatedBy')
field last_modified_by: Optional[StrictStr] = None (alias 'LastModifiedBy')
field last_modified_time: Optional[StrictStr] = None (alias 'LastModifiedTime')
field is_system_generated_role: Optional[StrictBool] = None (alias 'IsSystemGeneratedRole')
field s3_location: Optional[StrictStr] = None (alias 'S3Location')
field s3_file_modified_date: Optional[StrictStr] = None (alias 'S3FileModifiedDate')
field role_permissions: Optional[Dict[str, Any]] = None (alias 'RolePermissions')
field presigned_url: Optional[StrictStr] = None (alias 'PresignedUrl')

Federated sign-in URL when switch-console=true.

to_str()

Returns the string representation of the model using alias

Return type:

str

to_json()

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)

Create an instance of GetAwsRoleByIdResponse from a JSON string

Return type:

Optional[Self]

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)

Create an instance of GetAwsRoleByIdResponse from a dict

Return type:

Optional[Self]