def _create_instance_profile_with_role(self, instance_profile_name,
                                           role_name):
        # Setting the value for instance profile name
        # Client call to create an instance profile
        self._iam_client.create_instance_profile(
            InstanceProfileName=instance_profile_name)

        # Adding the role to the Instance Profile
        self._iam_client.add_role_to_instance_profile(
            InstanceProfileName=instance_profile_name, RoleName=role_name)
Sets the user's time zone string.
dataset/ETHPy150Open aws/aws-cli/awscli/customizations/datapipeline/createdefaultroles.py/CreateDefaultRoles._create_instance_profile_with_role--crossover with--dataset/ETHPy150Open livid/v2ex/twitter/twitter.py/User.SetTimeZone