AwsRoleBasicDetails

pydantic model openapi_client.models.aws_role_basic_details.AwsRoleBasicDetails

Console-access role item from DynamoDB (list/details without RolePermissions).

Fields:
field role_id: Optional[StrictStr] = None (alias 'RoleId')

Unique ID of the AWS console access role.

field role_name: Optional[StrictStr] = None (alias 'RoleName')

Display name, e.g. SystemRole-readonly or custom role name from the S3 template.

field role_description: Optional[StrictStr] = None (alias 'RoleDescription')

Human-readable description of the role.

field role_arn: Optional[StrictStr] = None (alias 'RoleArn')

ARN of the underlying IAM role used for console sessions.

field users_attached: Optional[List[StrictStr]] = None (alias 'UsersAttached')

User IDs allowed to use this role for AWS console access.

field created_by: Optional[StrictStr] = None (alias 'CreatedBy')

User ID that created the role. System roles use the system runner ID.

field last_modified_by: Optional[StrictStr] = None (alias 'LastModifiedBy')

User ID that last updated the role.

field last_modified_time: Optional[StrictStr] = None (alias 'LastModifiedTime')

When the role was last updated (default sortby).

field policy_doc_file_name: Optional[StrictStr] = None (alias 'PolicyDocFileName')

Policy template file name used to build the role permissions.

field is_system_generated_role: Optional[StrictBool] = None (alias 'IsSystemGeneratedRole')

True for platform system roles. False for custom roles from S3 policy templates.

field s3_location: Optional[StrictStr] = None (alias 'S3Location')

S3 URI of the custom role policy template. Present for custom roles.

field s3_file_modified_date: Optional[StrictStr] = None (alias 'S3FileModifiedDate')

Last modified time of the custom role policy object in S3. Present for custom roles.

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 AwsRoleBasicDetails 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 AwsRoleBasicDetails from a dict

Return type:

Optional[Self]