create_studio
¶
create_studio(
*,
config_overrides: Optional[EMRClientConfig] = None,
name: Optional[XmlStringMaxLen256] = None,
description: Optional[XmlStringMaxLen256] = None,
auth_mode: Optional[AuthMode] = None,
vpc_id: Optional[XmlStringMaxLen256] = None,
subnet_ids: Optional[SubnetIdList] = None,
service_role: Optional[XmlString] = None,
user_role: Optional[XmlString] = None,
workspace_security_group_id: Optional[XmlStringMaxLen256] = None,
engine_security_group_id: Optional[XmlStringMaxLen256] = None,
default_s3_location: Optional[XmlString] = None,
idp_auth_url: Optional[XmlString] = None,
idp_relay_state_parameter_name: Optional[XmlStringMaxLen256] = None,
tags: Optional[TagList] = None,
trusted_identity_propagation_enabled: Optional[BooleanObject] = None,
idc_user_assignment: Optional[IdcUserAssignment] = None,
idc_instance_arn: Optional[ArnType] = None,
encryption_key_arn: Optional[XmlString] = None,
) -> CreateStudioOutput
Creates a new Amazon EMR Studio.
Parameters:
-
name(Optional[XmlStringMaxLen256], default:None) –A descriptive name for the Amazon EMR Studio.
-
description(Optional[XmlStringMaxLen256], default:None) –A detailed description of the Amazon EMR Studio.
-
auth_mode(Optional[AuthMode], default:None) –Specifies whether the Studio authenticates users using IAM or IAM Identity Center.
-
vpc_id(Optional[XmlStringMaxLen256], default:None) –The ID of the Amazon Virtual Private Cloud (Amazon VPC) to associate with the Studio.
-
subnet_ids(Optional[SubnetIdList], default:None) –A list of subnet IDs to associate with the Amazon EMR Studio. A Studio can have a maximum of 5 subnets. The subnets must belong to the VPC specified by
VpcId. Studio users can create a Workspace in any of the specified subnets. -
service_role(Optional[XmlString], default:None) –The IAM role that the Amazon EMR Studio assumes. The service role provides a way for Amazon EMR Studio to interoperate with other Amazon Web Services services.
-
user_role(Optional[XmlString], default:None) –The IAM user role that users and groups assume when logged in to an Amazon EMR Studio. Only specify a
UserRolewhen you use IAM Identity Center authentication. The permissions attached to theUserRolecan be scoped down for each user or group using session policies. -
workspace_security_group_id(Optional[XmlStringMaxLen256], default:None) –The ID of the Amazon EMR Studio Workspace security group. The Workspace security group allows outbound network traffic to resources in the Engine security group, and it must be in the same VPC specified by
VpcId. -
engine_security_group_id(Optional[XmlStringMaxLen256], default:None) –The ID of the Amazon EMR Studio Engine security group. The Engine security group allows inbound network traffic from the Workspace security group, and it must be in the same VPC specified by
VpcId. -
default_s3_location(Optional[XmlString], default:None) –The Amazon S3 location to back up Amazon EMR Studio Workspaces and notebook files.
-
idp_auth_url(Optional[XmlString], default:None) –The authentication endpoint of your identity provider (IdP). Specify this value when you use IAM authentication and want to let federated users log in to a Studio with the Studio URL and credentials from your IdP. Amazon EMR Studio redirects users to this endpoint to enter credentials.
-
idp_relay_state_parameter_name(Optional[XmlStringMaxLen256], default:None) –The name that your identity provider (IdP) uses for its
RelayStateparameter. For example,RelayStateorTargetSource. Specify this value when you use IAM authentication and want to let federated users log in to a Studio using the Studio URL. TheRelayStateparameter differs by IdP. -
tags(Optional[TagList], default:None) –A list of tags to associate with the Amazon EMR Studio. Tags are user-defined key-value pairs that consist of a required key string with a maximum of 128 characters, and an optional value string with a maximum of 256 characters.
-
trusted_identity_propagation_enabled(Optional[BooleanObject], default:None) –A Boolean indicating whether to enable Trusted identity propagation for the Studio. The default value is
false. -
idc_user_assignment(Optional[IdcUserAssignment], default:None) –Specifies whether IAM Identity Center user assignment is
REQUIREDorOPTIONAL. If the value is set toREQUIRED, users must be explicitly assigned to the Studio application to access the Studio. -
idc_instance_arn(Optional[ArnType], default:None) –The ARN of the IAM Identity Center instance to create the Studio application.
-
encryption_key_arn(Optional[XmlString], default:None) –The KMS key identifier (ARN) used to encrypt Amazon EMR Studio workspace and notebook files when backed up to Amazon S3.
Raises:
-
InternalServerException–This exception occurs when there is an internal failure in the Amazon EMR service.
-
InvalidRequestException–This exception occurs when there is something wrong with user input.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_emr/_services/emr.py
724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 | |